Class 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) $
    • Constructor Detail

      • PagePersonalizationManager

        public PagePersonalizationManager()
    • Method Detail

      • 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, 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​(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, or null if it is not personalized for a content.
        Returns:
        the temporary holder, as a persistent entity.
        Throws:
        PortalException
        Since:
        10.2.0