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


The transient personalizer shall be used in container mode for table personalization.


Since: 1.18.0.
Constructor Summary
new sap.ushell.services.TransientPersonalizer()To be called by the personalization service getTransientPersonalizer method.
Method Summary
delPersData()Deletes a personalization data value.
getPersData()Gets a personalization data value.
getValue()Synchronously gets a personalization data value.
setPersData(oValue)Sets a personalization data value.
setValue(oValue)Synchronously sets a personalization data value.
Constructor Detail
new sap.ushell.services.TransientPersonalizer()
To be called by the personalization service getTransientPersonalizer method.
Method Detail
delPersData(): object
Deletes a personalization data value.
Since:
1.18.0
Returns:
{object} Promise object which returns if the deletion was successful or erroneous. Promise object done function: no params. Promise object fail function ins never triggered.
getPersData(): object
Gets a personalization data value.
Since:
1.18.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 ins never triggered.
getValue(): object
Synchronously gets a personalization data value.
Since:
1.18.0
Returns:
{object} JSON object containing the personalization value.
setPersData(oValue): object
Sets a personalization data value.
Parameters:
{object}oValue JSON object containing the personalization value.
Since:
1.18.0
Returns:
{object} Promise object which returns if the saving was successful or erroneous. Promise object done function: no params. Promise fail function ins never triggered.
setValue(oValue)
Synchronously sets a personalization data value.
Parameters:
{object}oValue JSON object containing the personalization value.
Since:
1.18.0