Class PermissionProvider
Inheritance
PermissionProvider
Assembly: DotNetNuke.dll
Syntax
public class PermissionProvider
Constructors
PermissionProvider()
Declaration
public PermissionProvider()
Properties
LocalResourceFile
Declaration
public virtual string LocalResourceFile { get; }
Property Value
Methods
CanAddContentToPage(TabInfo)
Declaration
public virtual bool CanAddContentToPage(TabInfo tab)
Parameters
Returns
CanAddFolder(FolderInfo)
Declaration
public virtual bool CanAddFolder(FolderInfo folder)
Parameters
Returns
CanAddPage(TabInfo)
Declaration
public virtual bool CanAddPage(TabInfo tab)
Parameters
Returns
CanAddTopLevel(int)
Declaration
public virtual bool CanAddTopLevel(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
CanAdminFolder(FolderInfo)
Declaration
public virtual bool CanAdminFolder(FolderInfo folder)
Parameters
Returns
CanAdminModule(ModuleInfo)
Declaration
public virtual bool CanAdminModule(ModuleInfo module)
Parameters
Returns
CanAdminPage(TabInfo)
Declaration
public virtual bool CanAdminPage(TabInfo tab)
Parameters
Returns
CanBrowseFolder(FolderInfo)
Declaration
public virtual bool CanBrowseFolder(FolderInfo folder)
Parameters
Returns
CanCopyFolder(FolderInfo)
Declaration
public virtual bool CanCopyFolder(FolderInfo folder)
Parameters
Returns
CanCopyPage(TabInfo)
Declaration
public virtual bool CanCopyPage(TabInfo tab)
Parameters
Returns
CanDeleteFolder(FolderInfo)
Declaration
public virtual bool CanDeleteFolder(FolderInfo folder)
Parameters
Returns
CanDeleteModule(ModuleInfo)
Declaration
public virtual bool CanDeleteModule(ModuleInfo module)
Parameters
Returns
CanDeletePage(TabInfo)
Declaration
public virtual bool CanDeletePage(TabInfo tab)
Parameters
Returns
CanEditModuleContent(ModuleInfo)
Declaration
public virtual bool CanEditModuleContent(ModuleInfo module)
Parameters
Returns
CanExportModule(ModuleInfo)
Declaration
public virtual bool CanExportModule(ModuleInfo module)
Parameters
Returns
CanExportPage(TabInfo)
Declaration
public virtual bool CanExportPage(TabInfo tab)
Parameters
Returns
CanImportModule(ModuleInfo)
Declaration
public virtual bool CanImportModule(ModuleInfo module)
Parameters
Returns
CanImportPage(TabInfo)
Declaration
public virtual bool CanImportPage(TabInfo tab)
Parameters
Returns
CanManageFolder(FolderInfo)
Declaration
public virtual bool CanManageFolder(FolderInfo folder)
Parameters
Returns
CanManageModule(ModuleInfo)
Declaration
public virtual bool CanManageModule(ModuleInfo module)
Parameters
Returns
CanManagePage(TabInfo)
Declaration
public virtual bool CanManagePage(TabInfo tab)
Parameters
Returns
CanNavigateToPage(TabInfo)
Declaration
public virtual bool CanNavigateToPage(TabInfo tab)
Parameters
Returns
CanViewFolder(FolderInfo)
Declaration
public virtual bool CanViewFolder(FolderInfo folder)
Parameters
Returns
CanViewModule(ModuleInfo)
Declaration
public virtual bool CanViewModule(ModuleInfo module)
Parameters
Returns
CanViewPage(TabInfo)
Declaration
public virtual bool CanViewPage(TabInfo tab)
Parameters
Returns
DeleteFolderPermissionsByUser(UserInfo)
Declaration
public virtual void DeleteFolderPermissionsByUser(UserInfo objUser)
Parameters
DeleteModulePermissionsByUser(UserInfo)
Declaration
public virtual void DeleteModulePermissionsByUser(UserInfo user)
Parameters
DeletePortalPermissionsByUser(UserInfo)
Declaration
public virtual void DeletePortalPermissionsByUser(UserInfo user)
Parameters
DeleteTabPermissionsByUser(UserInfo)
Declaration
public virtual void DeleteTabPermissionsByUser(UserInfo user)
Parameters
GetDesktopModulePermission(int)
Declaration
public virtual DesktopModulePermissionInfo GetDesktopModulePermission(int desktopModulePermissionId)
Parameters
Type |
Name |
Description |
int |
desktopModulePermissionId |
|
Returns
GetDesktopModulePermissions(int)
Declaration
public virtual DesktopModulePermissionCollection GetDesktopModulePermissions(int portalDesktopModuleId)
Parameters
Type |
Name |
Description |
int |
portalDesktopModuleId |
|
Returns
GetFolderPermissionsCollectionByFolder(int, string)
Declaration
public virtual FolderPermissionCollection GetFolderPermissionsCollectionByFolder(int portalID, string folder)
Parameters
Type |
Name |
Description |
int |
portalID |
|
string |
folder |
|
Returns
GetModulePermissions(int, int)
Declaration
public virtual ModulePermissionCollection GetModulePermissions(int moduleID, int tabID)
Parameters
Type |
Name |
Description |
int |
moduleID |
|
int |
tabID |
|
Returns
GetPortalPermissions(int)
Declaration
public virtual PortalPermissionCollection GetPortalPermissions(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
GetTabPermissions(int, int)
Declaration
public virtual TabPermissionCollection GetTabPermissions(int tabId, int portalId)
Parameters
Type |
Name |
Description |
int |
tabId |
|
int |
portalId |
|
Returns
HasDesktopModulePermission(DesktopModulePermissionCollection, string)
Declaration
public virtual bool HasDesktopModulePermission(DesktopModulePermissionCollection desktopModulePermissions, string permissionKey)
Parameters
Returns
HasFolderPermission(FolderPermissionCollection, string)
Declaration
public virtual bool HasFolderPermission(FolderPermissionCollection objFolderPermissions, string permissionKey)
Parameters
Returns
HasModuleAccess(SecurityAccessLevel, string, ModuleInfo)
Declaration
public virtual bool HasModuleAccess(SecurityAccessLevel accessLevel, string permissionKey, ModuleInfo moduleConfiguration)
Parameters
Returns
HasModulePermission(ModuleInfo, string)
Declaration
protected bool HasModulePermission(ModuleInfo moduleConfiguration, string permissionKey)
Parameters
Returns
HasModulePermission(ModulePermissionCollection, string)
Declaration
public virtual bool HasModulePermission(ModulePermissionCollection modulePermissions, string permissionKey)
Parameters
Returns
HasPortalPermission(PortalPermissionCollection, string)
Declaration
public virtual bool HasPortalPermission(PortalPermissionCollection portalPermissions, string permissionKey)
Parameters
Returns
HasTabPermission(TabPermissionCollection, string)
Declaration
public virtual bool HasTabPermission(TabPermissionCollection tabPermissions, string permissionKey)
Parameters
Returns
ImplicitRolesForFolders(int)
Declaration
public virtual IEnumerable<RoleInfo> ImplicitRolesForFolders(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
ImplicitRolesForPages(int)
Declaration
public virtual IEnumerable<RoleInfo> ImplicitRolesForPages(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
Instance()
Declaration
public static PermissionProvider Instance()
Returns
IsDeniedModulePermission(ModuleInfo, string)
Declaration
protected bool IsDeniedModulePermission(ModuleInfo moduleConfiguration, string permissionKey)
Parameters
Returns
IsDeniedTabPermission(TabInfo, string)
Declaration
protected bool IsDeniedTabPermission(TabInfo tab, string permissionKey)
Parameters
Returns
IsPageAdmin(int)
Declaration
public virtual bool IsPageAdmin(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
IsPortalEditor()
Declaration
public virtual bool IsPortalEditor()
Returns
SaveFolderPermissions(FolderInfo)
Declaration
public virtual void SaveFolderPermissions(FolderInfo folder)
Parameters
SaveFolderPermissions(IFolderInfo)
Declaration
public virtual void SaveFolderPermissions(IFolderInfo folder)
Parameters
SaveModulePermissions(ModuleInfo)
Declaration
public virtual void SaveModulePermissions(ModuleInfo module)
Parameters
SavePortalPermissions(PortalInfo)
Declaration
public virtual void SavePortalPermissions(PortalInfo portal)
Parameters
SaveTabPermissions(TabInfo)
Declaration
public virtual void SaveTabPermissions(TabInfo tab)
Parameters
SupportsFullControl()
Declaration
public virtual bool SupportsFullControl()
Returns
Extension Methods