Class PagePersonalizationManager


  • public class PagePersonalizationManager
    extends java.lang.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) $
    • Constructor Detail

      • PagePersonalizationManager

        public PagePersonalizationManager()
    • Method Detail

      • getOrGeneratePersonalizedHolder

        public static WidgetInstanceHolder getOrGeneratePersonalizedHolder​(java.lang.String holderInterfaceInstanceId,
                                                                           java.lang.String userId,
                                                                           java.lang.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, or null 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​(java.lang.String holderInterfaceInstanceId,
                                                                        java.lang.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, or null if it is not personalized for a content.
        Returns:
        the temporary holder, as a persistent entity.
        Throws:
        PortalException
        Since:
        10.2.0