Class DesktopModulePermissionController
DesktopModulePermissionController provides the Business Layer for DesktopModule Permissions.
Inheritance
Namespace: DotNetNuke.Security.Permissions
Assembly: DotNetNuke.dll
Syntax
public class DesktopModulePermissionController : object
Methods
| Improve this Doc View SourceAddDesktopModulePermission(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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |