Package org.apache.ofbiz.widget.portal
Class PortalPageWorker
- java.lang.Object
-
- org.apache.ofbiz.widget.portal.PortalPageWorker
-
public class PortalPageWorker extends java.lang.Object
PortalPageWorker Class
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Constructor Summary
Constructors Constructor Description PortalPageWorker()
-
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)
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.
-
-
-
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
- Throws:
GeneralException
java.io.IOException
-
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
-
-