Package org.apache.ofbiz.widget.portal
Class PortalPageWorker
java.lang.Object
org.apache.ofbiz.widget.portal.PortalPageWorker
PortalPageWorker Class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GenericValue
getPortalPage
(String portalPageId, Map<String, Object> context) Returns the PortalPage with the specified portalPageId.static List<GenericValue>
getPortalPages
(String parentPortalPageId, Map<String, Object> context) Returns a list of PortalPages that have the specified parentPortalPageId as parent.renderPortalPageAsTextExt
(Delegator delegator, String portalPageId, Map<String, Object> templateContext, boolean cache) Render portal page as text ext string.static Boolean
userIsAllowedToConfigure
(String portalPageId, Map<String, Object> context) Checks if the user is allowed to configure the PortalPage.
-
Constructor Details
-
PortalPageWorker
public PortalPageWorker()
-
-
Method Details
-
renderPortalPageAsTextExt
public String renderPortalPageAsTextExt(Delegator delegator, String portalPageId, Map<String, Object> templateContext, boolean cache) throws GeneralException, IOExceptionRender portal page as text ext string.- Parameters:
delegator
- the delegatorportalPageId
- the portal page idtemplateContext
- the template contextcache
- the cache- Returns:
- the string
- Throws:
GeneralException
- the general exceptionIOException
- 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
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
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
-