Class PortalPageWorker

java.lang.Object
org.apache.ofbiz.widget.portal.PortalPageWorker

public class PortalPageWorker extends Object
PortalPageWorker Class
  • Constructor Details

    • PortalPageWorker

      public PortalPageWorker()
  • Method Details

    • renderPortalPageAsTextExt

      public String renderPortalPageAsTextExt(Delegator delegator, String portalPageId, Map<String,Object> templateContext, boolean cache) throws GeneralException, 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
      IOException - the io exception
    • getPortalPages

      public static List<GenericValue> getPortalPages(String parentPortalPageId, Map<String,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(String portalPageId, Map<String,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 Boolean userIsAllowedToConfigure(String portalPageId, Map<String,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