Class PermissionController
Inheritance
PermissionController
Assembly: DotNetNuke.dll
Syntax
public class PermissionController : IPermissionDefinitionService
Constructors
PermissionController()
Declaration
public PermissionController()
Methods
AddPermission(IPermissionDefinitionInfo)
Declaration
public int AddPermission(IPermissionDefinitionInfo permission)
Parameters
Returns
AddPermission(PermissionInfo)
Declaration
public int AddPermission(PermissionInfo permission)
Parameters
Returns
BuildPermissions(IList, string)
Declaration
public static string BuildPermissions(IList permissions, string permissionKey)
Parameters
Type |
Name |
Description |
IList |
permissions |
|
string |
permissionKey |
|
Returns
DeletePermission(int)
Declaration
public void DeletePermission(int permissionID)
Parameters
Type |
Name |
Description |
int |
permissionID |
|
GetPermission(int)
Declaration
public PermissionInfo GetPermission(int permissionID)
Parameters
Type |
Name |
Description |
int |
permissionID |
|
Returns
GetPermissionByCodeAndKey(string, string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.13.1. Use IPermissionDefinitionService.GetDefinitionsByCodeAndKey instead. Scheduled for removal in v11.0.0.")]
public ArrayList GetPermissionByCodeAndKey(string permissionCode, string permissionKey)
Parameters
Type |
Name |
Description |
string |
permissionCode |
|
string |
permissionKey |
|
Returns
GetPermissionsByFolder()
Declaration
[Obsolete("Deprecated in DotNetNuke 9.13.1. Use IPermissionDefinitionService.GetDefinitionsByFolder instead. Scheduled for removal in v11.0.0.")]
public static ArrayList GetPermissionsByFolder()
Returns
GetPermissionsByModule(int, int)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.13.1. Use IPermissionDefinitionService.GetDefinitionsByModule instead. Scheduled for removal in v11.0.0.")]
public ArrayList GetPermissionsByModule(int moduleId, int tabId)
Parameters
Type |
Name |
Description |
int |
moduleId |
|
int |
tabId |
|
Returns
GetPermissionsByModuleDefID(int)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.13.1. Use IPermissionDefinitionService.GetDefinitionsByModuleDefId instead. Scheduled for removal in v11.0.0.")]
public ArrayList GetPermissionsByModuleDefID(int moduleDefID)
Parameters
Type |
Name |
Description |
int |
moduleDefID |
|
Returns
GetPermissionsByModuleID(int)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.3.0. Replaced by GetPermissionsByModule(int, int). Scheduled for removal in v10.0.0.")]
public ArrayList GetPermissionsByModuleID(int moduleId)
Parameters
Type |
Name |
Description |
int |
moduleId |
|
Returns
GetPermissionsByPortalDesktopModule()
Declaration
[Obsolete("Deprecated in DotNetNuke 9.13.1. Use IPermissionDefinitionService.GetDefinitionsByPortalDesktopModule instead. Scheduled for removal in v11.0.0.")]
public static ArrayList GetPermissionsByPortalDesktopModule()
Returns
GetPermissionsByTab()
Declaration
[Obsolete("Deprecated in DotNetNuke 9.13.1. Use IPermissionDefinitionService.GetDefinitionsByTab instead. Scheduled for removal in v11.0.0.")]
public static ArrayList GetPermissionsByTab()
Returns
RemapPermission<T>(T, int)
Declaration
public T RemapPermission<T>(T permission, int portalId) where T : PermissionInfoBase
Parameters
Type |
Name |
Description |
T |
permission |
|
int |
portalId |
|
Returns
Type Parameters
UpdatePermission(IPermissionDefinitionInfo)
Declaration
public void UpdatePermission(IPermissionDefinitionInfo permission)
Parameters
UpdatePermission(PermissionInfo)
Declaration
public void UpdatePermission(PermissionInfo permission)
Parameters
Implements
Extension Methods