Class SmartFolderSelectorComponent
Represents a form component for selecting smart folder.
[ComponentAttribute(typeof(SmartFolderSelectorComponentAttribute))]
public sealed class SmartFolderSelectorComponent : FormComponentWithNestedComponents<SmartFolderSelectorProperties, SmartFolderSelectorClientProperties, SmartFolderReference>, IFormComponent, IFormItem<IFormComponentClientProperties>, IFormItem
- Inheritance
-
objectFormComponent<SmartFolderSelectorProperties, SmartFolderSelectorClientProperties, SmartFolderReference>FormComponentWithNestedComponents<SmartFolderSelectorProperties, SmartFolderSelectorClientProperties, SmartFolderReference>SmartFolderSelectorComponent
- Implements
- Inherited Members
- Extension Methods
Constructors
SmartFolderSelectorComponent(IFormComponentCommandInvoker, IFormDataBinder, IInfoProvider<SmartFolderInfo>, IPageLinkGenerator, IContentLanguageRetriever, ILocalizationService, IReusableFieldSchemaManager, IServiceProvider, IEventLogService)
Initializes a new instance of the SmartFolderSelectorComponent class.
public SmartFolderSelectorComponent(IFormComponentCommandInvoker formComponentCommandInvoker, IFormDataBinder formDataBinder, IInfoProvider<SmartFolderInfo> smartFoldersProvider, IPageLinkGenerator pageLinkGenerator, IContentLanguageRetriever contentLanguageRetriever, ILocalizationService localizationService, IReusableFieldSchemaManager reusableFieldSchemaManager, IServiceProvider serviceProvider, IEventLogService eventLogService)
Parameters
formComponentCommandInvoker
IFormComponentCommandInvokerformDataBinder
IFormDataBindersmartFoldersProvider
IInfoProvider<SmartFolderInfo>pageLinkGenerator
IPageLinkGeneratorcontentLanguageRetriever
IContentLanguageRetrieverlocalizationService
ILocalizationServicereusableFieldSchemaManager
IReusableFieldSchemaManagerserviceProvider
IServiceProvidereventLogService
IEventLogService
Fields
IDENTIFIER
Represents the SmartFolderSelectorComponent identifier.
public const string IDENTIFIER = "Kentico.Administration.SmartFolderSelector"
Field Value
- string
Properties
ClientComponentName
Name of the front-end type implementing the UI form component.
public override string ClientComponentName { get; }
Property Value
- string
Methods
Change(FormSubmissionCommandArguments, CancellationToken)
Handles the 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<FilterFormChangeResult>> Change(FormSubmissionCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
FormSubmissionCommandArgumentscancellationToken
CancellationToken
Returns
ChangeCreateSmartFolderForm(FormSubmissionCommandArguments, CancellationToken)
Handles the create smart folder 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<FilterFormChangeResult>> ChangeCreateSmartFolderForm(FormSubmissionCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
FormSubmissionCommandArgumentscancellationToken
CancellationToken
Returns
ConfigureClientProperties(SmartFolderSelectorClientProperties)
Configures the form component client properties.
protected override Task ConfigureClientProperties(SmartFolderSelectorClientProperties clientProperties)
Parameters
clientProperties
SmartFolderSelectorClientPropertiesThe current instance of the form component client properties.
Returns
- Task
Remarks
Override this method in order to configure form component client properties.
ConfigureComponent()
Configures the form component. This method is called when all form component properties are set.
protected override void ConfigureComponent()
Remarks
Override this method to set component inner state, like additional component validation rules.
CreateSmartFolder(CreateSmartFolderArguments, CancellationToken)
Routes the command to the CreateDeliverableSmartFolder(CreateSmartFolderArguments, int, CancellationToken) method.
public Task<ICommandResponse<CreateSmartFolderResult>> CreateSmartFolder(CreateSmartFolderArguments args, CancellationToken cancellationToken)
Parameters
args
CreateSmartFolderArgumentscancellationToken
CancellationToken
Returns
CreateSmartFolderConfirmFilter(CreateSmartFolderConfirmFilterArguments, CancellationToken)
Routes the command to the CreateSmartFolderConfirmFilter(CreateSmartFolderConfirmFilterArguments, CancellationToken, int?, bool) method.
public Task<ICommandResponse<CreateSmartFolderConfirmFilterResult>> CreateSmartFolderConfirmFilter(CreateSmartFolderConfirmFilterArguments args, CancellationToken cancellationToken)
Parameters
args
CreateSmartFolderConfirmFilterArgumentscancellationToken
CancellationToken
Returns
GetFolder(GetSmartFolderRequest, CancellationToken)
Retrieves smart folder.
public Task<ICommandResponse<GetSmartFolderResult>> GetFolder(GetSmartFolderRequest args, CancellationToken cancellationToken)
Parameters
args
GetSmartFolderRequestcancellationToken
CancellationToken
Returns
GetFolders(GetSmartFoldersRequest, CancellationToken)
Retrieves all valid smart folders.
public Task<ICommandResponse<GetSmartFoldersResult>> GetFolders(GetSmartFoldersRequest args, CancellationToken cancellationToken)
Parameters
args
GetSmartFoldersRequestcancellationToken
CancellationToken
Returns
GetFormItemsForCreateSmartFolder(CancellationToken)
Routes the command to the Kentico.Xperience.Admin.Base.ISmartFolderCommandManager.GetFormItemsForCreateDeliverableSmartFolder(System.Threading.CancellationToken) method.
public Task<ICommandResponse<GetFormItemsForCreateSmartFolderResult>> GetFormItemsForCreateSmartFolder(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationToken
Returns
GetNestedFormItems()
Returns the form items that are used within the nested form.
protected override Task<ICollection<IFormItem>> GetNestedFormItems()
Returns
- Task<ICollection<IFormItem>>
GetSmartFolderFilterDescription(GetSmartFolderFilterDescriptionArguments, CancellationToken)
Retrieves metadata for the smart folder filter.
public Task<ICommandResponse<GetSmartFolderFilterDescriptionResult>> GetSmartFolderFilterDescription(GetSmartFolderFilterDescriptionArguments args, CancellationToken cancellationToken = default)
Parameters
args
GetSmartFolderFilterDescriptionArgumentscancellationToken
CancellationToken
Returns
InitializeNestedContext()
Initializes form context within the nested form.
protected override Task<IFormContext> InitializeNestedContext()
Returns
- Task<IFormContext>
LoadSmartFolderData(LoadSmartFolderDataCommandArguments, CancellationToken)
Routes the command to the LoadDataForSmartFolderSelector(int, IEnumerable<Guid>, IEnumerable<Guid>, LoadSmartFolderDataCommandArguments, CancellationToken) method.
public Task<ICommandResponse<LoadDataResult>> LoadSmartFolderData(LoadSmartFolderDataCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
LoadSmartFolderDataCommandArgumentscancellationToken
CancellationToken
Returns
- Task<ICommandResponse<LoadDataResult>>
LoadSmartFolderListingConfiguration(CancellationToken)
Routes the command to the Kentico.Xperience.Admin.Base.IContentListingCommandManager.LoadListingConfigurationForSmartFolderSelector(int, int, System.Threading.CancellationToken) method.
public Task<ICommandResponse<LoadListingConfigurationCommandResult>> LoadSmartFolderListingConfiguration(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken