Class WebPagesApplication
Web pages application.
[UIPermission("View", "{$base.roles.permissions.accesschannel$}")]
[UIPermission("ManagePermissions", "{$base.roles.permissions.managepermissions$}")]
public sealed class WebPagesApplication : Page<WebPagesApplicationClientProperties>, IPage
- Inheritance
-
objectWebPagesApplication
- Implements
- Inherited Members
- Extension Methods
Constructors
WebPagesApplication(IWebPageManagerFactory, IAuthenticatedUserAccessor, IContentLanguageModelRetriever, IServiceProvider)
Initializes an instance of WebPagesApplication class.
public WebPagesApplication(IWebPageManagerFactory webPageManagerFactory, IAuthenticatedUserAccessor authenticatedUserAccessor, IContentLanguageModelRetriever contentLanguageModelRetriever, IServiceProvider serviceProvider)
Parameters
webPageManagerFactory
IWebPageManagerFactoryauthenticatedUserAccessor
IAuthenticatedUserAccessorcontentLanguageModelRetriever
IContentLanguageModelRetrieverserviceProvider
IServiceProvider
Fields
IDENTIFIER
Unique identifier of application.
public const string IDENTIFIER = "Kentico.Xperience.Application.WebPages"
Field Value
- string
Properties
ApplicationIdentifier
Application identifier.
[PageParameter(typeof(WebPagesApplicationModelBinder), typeof(WebPagesApplication))]
public WebPagesApplicationUrlIdentifier ApplicationIdentifier { get; set; }
Property Value
Methods
CheckClonePageAclPermissions(CheckCloneWebPageAclPermissionsCommandArguments, CancellationToken)
Checks whether the user has permissions to clone a web page.
public Task<ICommandResponse<CheckCloneWebPageAclPermissionsCommandResult>> CheckClonePageAclPermissions(CheckCloneWebPageAclPermissionsCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
CheckCloneWebPageAclPermissionsCommandArgumentsCheck clone page ACL permissions command arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
CheckCollisions(CheckCollisionsCommandArguments, CancellationToken)
Checks web page URL path collisions between page subtree and target page subtree.
public Task<ICommandResponse<CheckCollisionsCommandResult>> CheckCollisions(CheckCollisionsCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
CheckCollisionsCommandArgumentsCheck collisions page command arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
CheckMovePageRequirements(CheckMovePageRequirementsCommandArguments, CancellationToken)
Checks whether the requirements to move a web page were met.
public Task<ICommandResponse<CheckMovePageRequirementsCommandResult>> CheckMovePageRequirements(CheckMovePageRequirementsCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
CheckMovePageRequirementsCommandArgumentsCheck move page requirements command arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
CheckSecurityMismatch(CheckSecurityMismatchCommandArguments, CancellationToken)
Checks mismatch in security settings between the target node and the page that should be moved including its children.
public Task<ICommandResponse<CheckSecurityMismatchCommandResult>> CheckSecurityMismatch(CheckSecurityMismatchCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
CheckSecurityMismatchCommandArgumentsCheck security mismatch page command arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
ClonePage(CloneWebPageCommandArguments, CancellationToken)
Clones specific web page.
public Task<ICommandResponse<CloneWebPageCommandResult>> ClonePage(CloneWebPageCommandArguments args, CancellationToken cancellationToken)
Parameters
args
CloneWebPageCommandArgumentsClone web page command arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
ClonePageFormChange(CloneWebPageFormChangeCommandArguments, CancellationToken)
Handles the clone page form change command. The command is invoked whenever visibility conditions or form component configurators of the form need to be reevaluated to re-render the form.
public Task<ICommandResponse<FormChangeResult>> ClonePageFormChange(CloneWebPageFormChangeCommandArguments args, CancellationToken cancellationToken)
Parameters
args
CloneWebPageFormChangeCommandArgumentsClone page form change command arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
- Task<ICommandResponse<FormChangeResult>>
ComponentCommand(FormComponentCommandModel, CancellationToken)
Handles the form component command invocation.
public Task<object> ComponentCommand(FormComponentCommandModel commandModel, CancellationToken cancellationToken)
Parameters
commandModel
FormComponentCommandModelForm component command arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
- Task<object>
Returns the form component command result.
ConfigureTemplateProperties(WebPagesApplicationClientProperties)
Gets the object representing client side template properties.
public override Task<WebPagesApplicationClientProperties> ConfigureTemplateProperties(WebPagesApplicationClientProperties properties)
Parameters
properties
WebPagesApplicationClientPropertiesInitialized properties object.
Returns
CreateFolder(CreateFolderCommandArguments, CancellationToken)
Creates new folder.
public Task<ICommandResponse<CreateFolderCommandResult>> CreateFolder(CreateFolderCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
CreateFolderCommandArgumentsCreate folder command arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
DeletePage(DeleteWebPageCommandArguments, CancellationToken)
Deletes web page.
public Task<ICommandResponse<DeleteWebPageCommandResult>> DeletePage(DeleteWebPageCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
DeleteWebPageCommandArgumentsDelete page command arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
DeletePageFormChange(DeleteSidePanelConfigurationValidateOrChangeArguments, CancellationToken)
Handles the form change command. The command is invoked when the value of delete side panel is changed.
public Task<ICommandResponse<FormChangeResult>> DeletePageFormChange(DeleteSidePanelConfigurationValidateOrChangeArguments args, CancellationToken cancellationToken = default)
Parameters
args
DeleteSidePanelConfigurationValidateOrChangeArgumentsForm change arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
- Task<ICommandResponse<FormChangeResult>>
DeletePageWithChildren(DeleteWebPageWithChildrenCommandArguments, CancellationToken)
Deletes web page with children.
public Task<ICommandResponse<DeleteWebPageCommandResult>> DeletePageWithChildren(DeleteWebPageWithChildrenCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
DeleteWebPageWithChildrenCommandArgumentsDelete page command arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
GetClonePageForm(GetCloneWebPageFormCommandArguments, CancellationToken)
Gets the form for cloning a web page.
public Task<ICommandResponse<GetCloneWebPageFormCommandResult>> GetClonePageForm(GetCloneWebPageFormCommandArguments args, CancellationToken cancellationToken)
Parameters
args
GetCloneWebPageFormCommandArgumentsGet clone web page form parameters.
cancellationToken
CancellationTokenCancellation instruction.
Returns
GetDefaultRoute(IEnumerable<Route>)
Gets the route which is redirected to, when no route is selected.
protected override Route GetDefaultRoute(IEnumerable<Route> routes)
Parameters
routes
IEnumerable<Route>
Returns
GetDeleteSidePanelConfiguration(DeleteSidePanelConfigurationArguments, CancellationToken)
Gets configuration for delete side panel.
public Task<ICommandResponse<DeleteSidePanelConfiguration>> GetDeleteSidePanelConfiguration(DeleteSidePanelConfigurationArguments args, CancellationToken cancellationToken = default)
Parameters
args
DeleteSidePanelConfigurationArgumentsSide panel arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
GetPermissions(GetPermissionsCommandArguments, CancellationToken)
Loads permissions for specified webpage item.
public Task<ICommandResponse<GetPermissionsCommandResult>> GetPermissions(GetPermissionsCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
GetPermissionsCommandArgumentsGet permissions command arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
LoadFilteredTree(LoadFilteredTreeDataCommandArguments, CancellationToken)
Loads filtered tree for application.
public Task<ICommandResponse<LoadTreeDataResult>> LoadFilteredTree(LoadFilteredTreeDataCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
LoadFilteredTreeDataCommandArgumentsLoad filtered tree data arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
LoadLevel(LoadTreeDataCommandArguments, CancellationToken)
Loads child nodes for parent node.
public Task<ICommandResponse<LoadTreeDataResult>> LoadLevel(LoadTreeDataCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
LoadTreeDataCommandArgumentsLoad tree data arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
LoadPagesForDelete(LoadPagesForDeleteCommandArguments, CancellationToken)
Load pages for delete.
public Task<ICommandResponse<LoadDataResult>> LoadPagesForDelete(LoadPagesForDeleteCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
LoadPagesForDeleteCommandArgumentsDelete page command arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
- Task<ICommandResponse<LoadDataResult>>
LoadTree(LoadTreeDataCommandArguments, CancellationToken)
Loads initial nodes for application.
public Task<ICommandResponse<LoadTreeDataResult>> LoadTree(LoadTreeDataCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
LoadTreeDataCommandArgumentsLoad tree data arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
MovePage(MoveWebPageCommandArguments, CancellationToken)
Moves specified web page.
public Task<ICommandResponse<MoveWebPageCommandResult>> MovePage(MoveWebPageCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
MoveWebPageCommandArgumentsMove page command arguments.
cancellationToken
CancellationTokenCancellation instruction.