Class PagePersonalizationManager
- java.lang.Object
-
- lumis.service.pagepersonalization.widgetmanipulationaction.PagePersonalizationManager
-
public class PagePersonalizationManager extends Object
Manager of the Page Personalization.- Since:
- 6.0.0
- Version:
- $Revision: 21235 $ $Date: 2018-04-25 17:35:41 -0300 (Wed, 25 Apr 2018) $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PagePersonalizationManager.DeletedWidgetData
-
Constructor Summary
Constructors Constructor Description PagePersonalizationManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<PagePersonalizationManager.DeletedWidgetData>
getDeletedWidgetsData(String serviceInstanceId)
static Set<PagePersonalizationManager.DeletedWidgetData>
getDeletedWidgetsData(String[] widgetIds)
static WidgetInstanceHolder
getOrGeneratePersonalizedHolder(String holderInterfaceInstanceId, String userId, String holderContentId)
Returns an existent personalized holder or generates a new one, copying the widget instances from the corresponding default holder.static WidgetInstanceHolder
getOrGenerateTemporaryHolder(String holderInterfaceInstanceId, String holderContentId)
Returns an existent temporary holder or generates a new one, copying the widget instances from the corresponding default holder.
-
-
-
Method Detail
-
getDeletedWidgetsData
public static Set<PagePersonalizationManager.DeletedWidgetData> getDeletedWidgetsData(String[] widgetIds) throws PortalException
- Throws:
PortalException
-
getDeletedWidgetsData
public static Set<PagePersonalizationManager.DeletedWidgetData> getDeletedWidgetsData(String serviceInstanceId) throws PortalException
- Throws:
PortalException
-
getOrGeneratePersonalizedHolder
public static WidgetInstanceHolder getOrGeneratePersonalizedHolder(String holderInterfaceInstanceId, String userId, String holderContentId) throws PortalException
Returns an existent personalized holder or generates a new one, copying the widget instances from the corresponding default holder.- Parameters:
holderInterfaceInstanceId
- the holder interface instance identifier.userId
- the identifier of the user that will use this personalization.holderContentId
- the identifier of the content the holder is personalized for, ornull
if it is not personalized for a content.- Returns:
- the personalized holder, as a persistent entity.
- Throws:
PortalException
- Since:
- 10.2.0
-
getOrGenerateTemporaryHolder
public static WidgetInstanceHolder getOrGenerateTemporaryHolder(String holderInterfaceInstanceId, String holderContentId) throws PortalException
Returns an existent temporary holder or generates a new one, copying the widget instances from the corresponding default holder.- Parameters:
holderInterfaceInstanceId
- the holder interface instance identifier.holderContentId
- the identifier of the content the holder is personalized for, ornull
if it is not personalized for a content.- Returns:
- the temporary holder, as a persistent entity.
- Throws:
PortalException
- Since:
- 10.2.0
-
-