Class HeadlessList
Headless listing page.
public sealed class HeadlessList : ListingPage, IPage
- Inheritance
-
objectHeadlessList
- Implements
- Inherited Members
- Extension Methods
Constructors
HeadlessList(IHeadlessItemManagerFactory, IAuthenticatedUserAccessor, ILocalizationService, IInfoProvider<HeadlessItemInfo>, IHeadlessChannelPreviewUrlProvider, IPageLinkGenerator)
Initializes an instance of the HeadlessList class.
public HeadlessList(IHeadlessItemManagerFactory headlessItemManagerFactory, IAuthenticatedUserAccessor authenticatedUserAccessor, ILocalizationService localizationService, IInfoProvider<HeadlessItemInfo> headlessItemInfoProvider, IHeadlessChannelPreviewUrlProvider previewUrlProvider, IPageLinkGenerator pageLinkGenerator)
Parameters
headlessItemManagerFactoryIHeadlessItemManagerFactoryauthenticatedUserAccessorIAuthenticatedUserAccessorlocalizationServiceILocalizationServiceheadlessItemInfoProviderIInfoProvider<HeadlessItemInfo>previewUrlProviderIHeadlessChannelPreviewUrlProviderpageLinkGeneratorIPageLinkGenerator
Properties
ChannelApplicationIdentifier
Application identifier.
[PageParameter(typeof(HeadlessChannelApplicationModelBinder), typeof(HeadlessChannelApplication))]
public HeadlessChannelApplicationUrlIdentifier ChannelApplicationIdentifier { get; set; }
Property Value
ContentLanguageIdentifier
Content language identifier.
[PageParameter(typeof(ContentLanguageModelBinder), typeof(HeadlessChannelContentLanguage))]
public ContentLanguageUrlIdentifier ContentLanguageIdentifier { get; set; }
Property Value
ObjectType
Type of the info objects that are listed. Corresponds to the OBJECT_TYPE property of the info object or PredefinedObjectType.
protected override string ObjectType { get; }
Property Value
- string
Methods
ConfigurePage()
Allows configure and share page specific values prior invocation of the ConfigureTemplateProperties(TClientProperties) or command method.
public override Task ConfigurePage()
Returns
- Task
Delete(int)
Deletes listing item specified by the id parameter.
[PageCommand(Permission = "Delete")]
public Task<ICommandResponse> Delete(int id)
Parameters
idint
Returns
- Task<ICommandResponse>
GetFilterFormComponentsContext()
Gets the form component context for the form components.
protected override Task<IFormContext> GetFilterFormComponentsContext()
Returns
- Task<IFormContext>
GetQuerySource()
Returns the query used as source for data.
protected override Task<ObjectQuery> GetQuerySource()
Returns
- Task<ObjectQuery>
Query used as source for data.
RedirectToHeadlessItemDetail(int, CancellationToken)
Redirects to headless item detail.
[Obsolete("Method is no longer used by the system and will be removed.")]
[PageCommand(Permission = "View")]
public Task<ICommandResponse> RedirectToHeadlessItemDetail(int headlessItemId, CancellationToken cancellationToken)
Parameters
headlessItemIdintIdentifier of the headless item.
cancellationTokenCancellationTokenCancellation instructions.
Returns
- Task<ICommandResponse>