Table of Contents

Interface ICategoryFieldsManager

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

Implementing class should provide operations over UI forms categories.

public interface ICategoryFieldsManager
Extension Methods

Methods

CreateCategory(string, FormCategoryInfo)

Tries to create a new category with data from formCategory.

FieldValidationResult CreateCategory(string className, FormCategoryInfo formCategory)

Parameters

className string

Class name or alternative form name of the form the field belongs to.

formCategory FormCategoryInfo

Category containing the data of the new category.

Returns

FieldValidationResult

Instance of FieldValidationResult, if the validation result is valid, new category was created. Otherwise it was not and validation result indicates why.

Exceptions

ArgumentNullException

No category definition was provided.

InvalidOperationException

The corresponding data class was not found.

UpdateCategory(string, string, FormCategoryInfo)

Tries to update a category given by categoryName with data from formCategory.

FieldValidationResult UpdateCategory(string className, string categoryName, FormCategoryInfo formCategory)

Parameters

className string

Class name or alternative form name of the form the field belongs to.

categoryName string

Name of a category that is being updated.

formCategory FormCategoryInfo

Category which contains updated data.

Returns

FieldValidationResult

Instance of FieldValidationResult, if the validation result is valid, update was performed. Otherwise it was not and validation result indicates why.

Exceptions

ArgumentNullException

No category definition provided.

InvalidOperationException

Unknown className or categoryName provided.