Class PortalPageWorker


  • public class PortalPageWorker
    extends java.lang.Object
    PortalPageWorker Class
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static GenericValue getPortalPage​(java.lang.String portalPageId, java.util.Map<java.lang.String,​java.lang.Object> context)
      Returns the PortalPage with the specified portalPageId.
      static java.util.List<GenericValue> getPortalPages​(java.lang.String parentPortalPageId, java.util.Map<java.lang.String,​java.lang.Object> context)
      Returns a list of PortalPages that have the specified parentPortalPageId as parent.
      java.lang.String renderPortalPageAsTextExt​(Delegator delegator, java.lang.String portalPageId, java.util.Map<java.lang.String,​java.lang.Object> templateContext, boolean cache)
      Render portal page as text ext string.
      static java.lang.Boolean userIsAllowedToConfigure​(java.lang.String portalPageId, java.util.Map<java.lang.String,​java.lang.Object> context)
      Checks if the user is allowed to configure the PortalPage.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PortalPageWorker

        public PortalPageWorker()
    • Method Detail

      • renderPortalPageAsTextExt

        public java.lang.String renderPortalPageAsTextExt​(Delegator delegator,
                                                          java.lang.String portalPageId,
                                                          java.util.Map<java.lang.String,​java.lang.Object> templateContext,
                                                          boolean cache)
                                                   throws GeneralException,
                                                          java.io.IOException
        Render portal page as text ext string.
        Parameters:
        delegator - the delegator
        portalPageId - the portal page id
        templateContext - the template context
        cache - the cache
        Returns:
        the string
        Throws:
        GeneralException - the general exception
        java.io.IOException - the io exception
      • getPortalPages

        public static java.util.List<GenericValue> getPortalPages​(java.lang.String parentPortalPageId,
                                                                  java.util.Map<java.lang.String,​java.lang.Object> context)
        Returns a list of PortalPages that have the specified parentPortalPageId as parent. If a specific PortalPage exists for the current userLogin it is returned instead of the original one.
      • getPortalPage

        public static GenericValue getPortalPage​(java.lang.String portalPageId,
                                                 java.util.Map<java.lang.String,​java.lang.Object> context)
        Returns the PortalPage with the specified portalPageId. If a specific PortalPage exists for the current userLogin it is returned instead of the original one.
      • userIsAllowedToConfigure

        public static java.lang.Boolean userIsAllowedToConfigure​(java.lang.String portalPageId,
                                                                 java.util.Map<java.lang.String,​java.lang.Object> context)
        Checks if the user is allowed to configure the PortalPage. PortalPage configuration is allowed if he is the PortalPage owner or he has got the PORTALPAGE_ADMIN permission