Class UserSecurityController
Inheritance
System.Object
UserSecurityController
Implements
Inherited Members
Namespace: DotNetNuke.Services.FileSystem.Internal
Assembly: DotNetNuke.dll
Syntax
public class UserSecurityController : ServiceLocator<IUserSecurityController, UserSecurityController>, IUserSecurityController
Methods
| Improve this Doc View SourceGetFactory()
Gets the service locator factory.
Declaration
protected override System.Func<IUserSecurityController> GetFactory()
Returns
| Type | Description |
|---|---|
| System.Func<IUserSecurityController> | A factory function. |
Overrides
DotNetNuke.Framework.ServiceLocator<DotNetNuke.Services.FileSystem.Internal.IUserSecurityController, DotNetNuke.Services.FileSystem.Internal.UserSecurityController>.GetFactory()
|
Improve this Doc
View Source
HasFolderPermission(IFolderInfo, String)
Checks if the provided permission is allowed for the current user in the provided folder.
Declaration
public bool HasFolderPermission(IFolderInfo folder, string permissionKey)
Parameters
| Type | Name | Description |
|---|---|---|
| IFolderInfo | folder | Folder to check. |
| System.String | permissionKey | Permission key to check. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the current user has the requested permission, otherwise false. |
IsHostAdminUser(Int32, Int32)
Checks if the provided user is Host user or Admin user of the provided portal.
Declaration
public bool IsHostAdminUser(int portalId, int userId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalId | Portal Id to check Admin users. |
| System.Int32 | userId | User Id to check. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the user is Host user or Admin user. False otherwise. |
IsHostAdminUser(Int32)
Checks if the Current user is Host user or Admin user of the provided portal.
Declaration
public bool IsHostAdminUser(int portalId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalId | Portal Id to check Admin users. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the Current user is Host user or Admin user. False otherwise. |