Table of Contents

Class Permissions

Namespace
Kentico.Xperience.Admin.Base.UIPages
Assembly
Kentico.Xperience.Admin.Base.dll

Permissions page.

public sealed class Permissions : Page<PermissionsTemplateClientProperties>, IPage
Inheritance
object
Permissions
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

PermissionPageConfiguration

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 PermissionsTemplateClientProperties

Initialized properties object.

Returns

Task<PermissionsTemplateClientProperties>

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

Task<ICommandResponse<PermissionsResult>>

GetPermissionsForApplication(string)

Get a collection of permissions for given application identifier.

public Task<ICommandResponse<GetPermissionsForApplicationResult>> GetPermissionsForApplication(string applicationIdentifier)

Parameters

applicationIdentifier string

Application identifier.

Returns

Task<ICommandResponse<GetPermissionsForApplicationResult>>

SavePermissions(SavePermissionsArguments)

Stores updated permission sets.

public Task<ICommandResponse<SavePermissionResult>> SavePermissions(SavePermissionsArguments savePermissions)

Parameters

savePermissions SavePermissionsArguments

Argument with permission sets to store.

Returns

Task<ICommandResponse<SavePermissionResult>>