Kernel::WebApp::Util::Preferences::Role::HandlesPreferences

NAME

Kernel::WebApp::Util::Preferences::Role::HandlesPreferences – Handles the preferences for the current entity.

PUBLIC INTERFACE

has PreferencesList

Attribute that holds the preferences list for the current preference entity type.

has PreferencesConfigList

Attribute that holds the preferences config list for the current preference entity type.

has ItemID

Attribute that holds the item id.

has ItemData

Attribute that holds the item data.

requires EntityType

Specifies the current entity type of the entity (e.g. Service).

requires _BuildItemData

Every entity module that consumes this role, must implement a method _BuildItemData, that builds the current item data, if a ItemID is present.

PreferenceGetObject()

Get the preference object for the given preference name.

    my $Object = $PreferenceObject->PreferenceGetObject(
        Name => 'MyDynamicPreference',
    );

Returns an object of the requested preference.

PRIVATE INTERFACE

_BuildPreferencesList()

Initializes the attribute PreferencesList.

_BuildPreferencesConfigList()

Initializes the attribute dPreferencesConfigList.

Scroll to Top