Class sap.ushell.services.PersonalizerModule: sap/ushell/services/Personalization


The Unified Shell personalizer providing set get delete methods to access the persisted personalization data in direct mode.


Since: 1.15.0.
Constructor Summary
new sap.ushell.services.Personalizer()To be called by the personalization service getPersonalizer method.
Method Summary
delPersData()Deletes a personalization data value.
getPersData()Gets a personalization data value.
setPersData(oValue)Sets a personalization data value.
Constructor Detail
new sap.ushell.services.Personalizer()
To be called by the personalization service getPersonalizer method.
Method Detail
delPersData(): object
Deletes a personalization data value.
Since:
1.15.0
Returns:
{object} Promise object which returns if the deletion was successful or erroneous. Promise object done function: no params. Promise object fail function: param {string} sMessage Error message.
getPersData(): object
Gets a personalization data value.
Since:
1.15.0
Returns:
{object} Promise object which provides the personalization value. Promise object done function: param {object} oValue JSON object containing the personalization value. If there is no personalization data for the item, undefined is returned. Promise object fail function: param {string} sMessage Error message.
setPersData(oValue): object
Sets a personalization data value.
Parameters:
{object}oValue JSON object containing the personalization value.
Since:
1.15.0
Returns:
{object} Promise object which returns if the saving was successful or erroneous. Promise object done function: no params. Promise object fail function: param {string} sMessage Error message