Class sap.ushell.services.PersonalizationContainerVariantModule: sap/ushell/services/Personalization
The personalization variant contains personalization data. It is used in the personalization container mode.
Since: 1.18.0.
Constructor Summary
new sap.ushell.services.PersonalizationContainerVariant()To be called by the personalization variant set.
Method Summary
Constructor Detail
Method Detail
containsItem(sItemKey): boolean
Checks if a specific item is contained in this variant.
Parameters:
{string} | sItemKey | item key |
- Since:
- 1.18.0
Returns:
{boolean} | true if the variant contains an item with the key |
delItem(sItemKey)
Deletes an item from this variant. In case the item does not exist, nothing happens.
Parameters:
{string} | sItemKey | item key |
- Since:
- 1.18.0
getItemKeys(): array
Returns an array with the keys of all items in this variant.
- Since:
- 1.18.0
Returns:
{array} | item keys |
getItemValue(sItemKey): object
Returns the value for an item in this variant.
Parameters:
{string} | sItemKey | item key |
- Since:
- 1.18.0
Returns:
{object} | item value (JSON object). In case the variant does not contain an item with this key undefined is returned. |