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

Class UserSecurityController

Inheritance
System.Object
ServiceLocator<IUserSecurityController, UserSecurityController>
UserSecurityController
Implements
IUserSecurityController
Inherited Members
ServiceLocator<IUserSecurityController, UserSecurityController>.Instance
ServiceLocator<IUserSecurityController, UserSecurityController>.Factory
ServiceLocator<IUserSecurityController, UserSecurityController>.SetTestableInstance(IUserSecurityController)
ServiceLocator<IUserSecurityController, UserSecurityController>.ClearInstance()
ServiceLocator<IUserSecurityController, UserSecurityController>.GetFactory()
Namespace: DotNetNuke.Services.FileSystem.Internal
Assembly: DotNetNuke.dll
Syntax
public class UserSecurityController : ServiceLocator<IUserSecurityController, UserSecurityController>, IUserSecurityController

Methods

| Improve this Doc View Source

GetFactory()

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Implements

IUserSecurityController

Extension Methods

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