• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class DesktopModulePermissionController

DesktopModulePermissionController provides the Business Layer for DesktopModule Permissions.

Inheritance
System.Object
DesktopModulePermissionController
Namespace: DotNetNuke.Security.Permissions
Assembly: DotNetNuke.dll
Syntax
public class DesktopModulePermissionController : object

Methods

| Improve this Doc View Source

AddDesktopModulePermission(DesktopModulePermissionInfo)

AddDesktopModulePermission adds a DesktopModule Permission to the Database.

Declaration
public static int AddDesktopModulePermission(DesktopModulePermissionInfo objDesktopModulePermission)
Parameters
Type Name Description
DesktopModulePermissionInfo objDesktopModulePermission

The DesktopModule Permission to add.

Returns
Type Description
System.Int32

The new desktop module permission ID.

| Improve this Doc View Source

DeleteDesktopModulePermission(Int32)

DeleteDesktopModulePermission deletes a DesktopModule Permission in the Database.

Declaration
public static void DeleteDesktopModulePermission(int desktopModulePermissionID)
Parameters
Type Name Description
System.Int32 desktopModulePermissionID

The ID of the DesktopModule Permission to delete.

| Improve this Doc View Source

DeleteDesktopModulePermissionsByPortalDesktopModuleID(Int32)

DeleteDesktopModulePermissionsByPortalDesktopModuleID deletes a DesktopModule's DesktopModule Permission in the Database.

Declaration
public static void DeleteDesktopModulePermissionsByPortalDesktopModuleID(int portalDesktopModuleID)
Parameters
Type Name Description
System.Int32 portalDesktopModuleID

The ID of the DesktopModule to delete.

| Improve this Doc View Source

DeleteDesktopModulePermissionsByUserID(UserInfo)

DeleteDesktopModulePermissionsByUserID deletes a user's DesktopModule Permission in the Database.

Declaration
public static void DeleteDesktopModulePermissionsByUserID(UserInfo objUser)
Parameters
Type Name Description
UserInfo objUser

The user.

| Improve this Doc View Source

GetDesktopModulePermission(Int32)

GetDesktopModulePermission gets a DesktopModule Permission from the Database.

Declaration
public static DesktopModulePermissionInfo GetDesktopModulePermission(int desktopModulePermissionID)
Parameters
Type Name Description
System.Int32 desktopModulePermissionID

The ID of the DesktopModule Permission.

Returns
Type Description
DesktopModulePermissionInfo

A DesktopModulePermissionInfo instance or null.

| Improve this Doc View Source

GetDesktopModulePermissions(Int32)

GetDesktopModulePermissions gets a DesktopModulePermissionCollection.

Declaration
public static DesktopModulePermissionCollection GetDesktopModulePermissions(int portalDesktopModuleID)
Parameters
Type Name Description
System.Int32 portalDesktopModuleID

The ID of the DesktopModule.

Returns
Type Description
DesktopModulePermissionCollection

A DesktopModulePermissionCollection with the desktop module permissions, or an empty DesktopModulePermissionCollection if the desktop module wasn't found.

| Improve this Doc View Source

HasDesktopModulePermission(DesktopModulePermissionCollection, String)

HasDesktopModulePermission checks whether the current user has a specific DesktopModule Permission.

Declaration
public static bool HasDesktopModulePermission(DesktopModulePermissionCollection objDesktopModulePermissions, string permissionKey)
Parameters
Type Name Description
DesktopModulePermissionCollection objDesktopModulePermissions

The Permissions for the DesktopModule.

System.String permissionKey

The Permission to check.

Returns
Type Description
System.Boolean

true if the current user has the requested permission, otherwise false.

| Improve this Doc View Source

UpdateDesktopModulePermission(DesktopModulePermissionInfo)

UpdateDesktopModulePermission updates a DesktopModule Permission in the Database.

Declaration
public static void UpdateDesktopModulePermission(DesktopModulePermissionInfo objDesktopModulePermission)
Parameters
Type Name Description
DesktopModulePermissionInfo objDesktopModulePermission

The DesktopModule Permission to update.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS