Kernel::WebApp::Controller::API::Frontend::Agent::Form::Customer::Role::HandlesCreateUpdateForm

NAME

Kernel::WebApp::Controller::API::Frontend::Agent::Form::Customer::Role::HandlesCreateUpdateForm – Handles the form schema of the customer company and customer user create/edit.

has DataSourceList

Attribute that holds the data source list if needed.

has DataSource

Attribute that holds the current data source.

has DataSourceReadonly

Attribute that holds the data source read-only information.

has ConfigMap

Attribute that holds the current backend config map.

has IsCaseSensitiveSource

Attribute that holds if the current data source is configured as case sensitive.

has SourceFields

Attribute that holds the form schema fields.

requires _BuildSourceFields

Every form endpoint that consumes this role, must implement a method _BuildSourceFields, this provides the list of fields from the current customer user or customer company source.

has FormSchemaFields

Attribute that holds the form schema fields.

has PasswordPolicyRules

Attribute that holds the password policy rules.

requires BackendType

Define the backend type of the current form endpoint ('CustomerUser' or 'CustomerCompany').

UsageType()

Holds the usage type of the current form. The default is 'Create', but it can also be 'Update'.

has Preferences

Attribute that holds the form schema fields.

has ObjectData

Attribute that holds the form schema fields.

PRIVATE INTERFACE

_BuildDataSourceList()

Initializes the attribute DataSourceList. Is only relevant for the create form, so the builder should be overwritten in in this endpoints.

_BuildDataSource()

Initializes the attribute DataSource.

_BuildBackendConfigMap()

Initializes the attribute BackendConfigMap.

_BuildObjectData()

Initializes the attribute ObjectData. Is only relevant for the update form, so the builder should be overwritten in in this endpoints.

_BuildFormSchemaFields()

Initializes the attribute FormSchemaFields.

_GetValue()

Helper method to show the correct value for the fields.

_SpecialCustomerUserValidation()

Helper method for the special customer user validation (e.g. UserLogin unique).

_SpecialCustomerCompanyValidation()

Helper method for the special customer company validation (e.g. UserLogin unique).

_BuildPreferences()

Initializes the attribute Preferences.

_BuildPasswordPolicyRules()

Initializes the attribute PasswordPolicyRules.

_BuildIsCaseSensitiveSource()

Initializes the attribute IsCaseSensitiveSource.

_GetCaseSensitiveValue()

Returns the given value (must be case-sensitive) in dependency to the current data source configuration.

_BuildDataSourceReadonly()

Initializes the attribute DataSourceReadonly.

_ConfirmUserCustomerID

Checks if the given customer company is valid, otherwise reset the field value.

Scroll to Top