Class Permissions
Permissions page.
public sealed class Permissions : Page<PermissionsTemplateClientProperties>, IPage
- Inheritance
-
objectPermissions
- Implements
- Inherited Members
- Extension Methods
Constructors
Permissions(IInfoProvider<ApplicationPermissionInfo>, IInfoProvider<WorkspaceInfo>, IWorkspacePermissionManager)
Initializes a new instance of Permissions.
public Permissions(IInfoProvider<ApplicationPermissionInfo> infoProvider, IInfoProvider<WorkspaceInfo> workspaceInfoProvider, IWorkspacePermissionManager workspacePermissionManager)
Parameters
infoProvider
IInfoProvider<ApplicationPermissionInfo>workspaceInfoProvider
IInfoProvider<WorkspaceInfo>workspacePermissionManager
IWorkspacePermissionManager
Properties
PageConfiguration
Page configuration.
public PermissionPageConfiguration PageConfiguration { get; set; }
Property Value
RoleID
ID of the role.
[PageParameter(typeof(IntPageModelBinder))]
public int RoleID { get; set; }
Property Value
- int
Methods
ConfigurePage()
Allows configure and share page specific values prior invocation of the ConfigureTemplateProperties(TClientProperties) or command method.
public override Task ConfigurePage()
Returns
- Task
ConfigureTemplateProperties(PermissionsTemplateClientProperties)
Gets the object representing client side template properties.
public override Task<PermissionsTemplateClientProperties> ConfigureTemplateProperties(PermissionsTemplateClientProperties properties)
Parameters
properties
PermissionsTemplateClientPropertiesInitialized properties object.
Returns
GetAvailableWorkspaces()
Represents a page command which obtains a collection of all available workspaces.
public Task<ICommandResponse> GetAvailableWorkspaces()
Returns
- Task<ICommandResponse>
GetPermissions()
Represents a page command which obtains a collection of Permissions for currently edited role.
public Task<ICommandResponse<PermissionsResult>> GetPermissions()
Returns
GetPermissionsForApplication(string)
Get a collection of permissions for given application identifier.
public Task<ICommandResponse<GetPermissionsForApplicationResult>> GetPermissionsForApplication(string applicationIdentifier)
Parameters
applicationIdentifier
stringApplication identifier.
Returns
SavePermissions(SavePermissionsArguments)
Stores updated permission sets.
public Task<ICommandResponse<SavePermissionResult>> SavePermissions(SavePermissionsArguments savePermissions)
Parameters
savePermissions
SavePermissionsArgumentsArgument with permission sets to store.