Package org.apache.ofbiz.content.content
Class ContentServices
- java.lang.Object
-
- org.apache.ofbiz.content.content.ContentServices
-
public class ContentServices extends java.lang.Object
ContentServices Class
-
-
Constructor Summary
Constructors Constructor Description ContentServices()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.Object>
deactivateAssocs(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Deactivates any active ContentAssoc (except the current one) that is associated with the passed in template/layout contentId and mapKey.static java.util.Map<java.lang.String,java.lang.Object>
deactivateContentAssoc(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> rcontext)
Update a ContentAssoc service.static java.util.Map<java.lang.String,java.lang.Object>
deactivateContentAssocMethod(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> rcontext)
Update a ContentAssoc method.static java.util.Map<java.lang.String,java.lang.Object>
findContentParents(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
This is a generic service for traversing a Content tree, typical of a blog response tree.static java.util.Map<java.lang.String,java.lang.Object>
findRelatedContent(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
findRelatedContent Finds the relatedstatic java.util.Map<java.lang.String,java.lang.Object>
getPrefixedMembers(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
joinString(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
linkContentToPubPt(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
publishContent(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
renderContentAsText(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Get and render subcontent associated with template id and mapkey.static java.util.Map<java.lang.String,java.lang.Object>
renderSubContentAsText(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Get and render subcontent associated with template id and mapkey.static java.util.Map<java.lang.String,java.lang.Object>
splitString(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
traverseContent(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
This is a generic service for traversing a Content tree, typical of a blog response tree.static java.util.Map<java.lang.String,java.lang.Object>
urlEncodeArgs(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
resource
public static final java.lang.String resource
- See Also:
- Constant Field Values
-
-
Method Detail
-
findRelatedContent
public static java.util.Map<java.lang.String,java.lang.Object> findRelatedContent(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
findRelatedContent Finds the related
-
findContentParents
public static java.util.Map<java.lang.String,java.lang.Object> findContentParents(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
This is a generic service for traversing a Content tree, typical of a blog response tree. It calls the ContentWorker.traverse method.
-
traverseContent
public static java.util.Map<java.lang.String,java.lang.Object> traverseContent(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
This is a generic service for traversing a Content tree, typical of a blog response tree. It calls the ContentWorker.traverse method.
-
deactivateContentAssoc
public static java.util.Map<java.lang.String,java.lang.Object> deactivateContentAssoc(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> rcontext)
Update a ContentAssoc service. The work is done in a separate method so that complex services that need this functionality do not need to incur the reflection performance penalty.
-
deactivateContentAssocMethod
public static java.util.Map<java.lang.String,java.lang.Object> deactivateContentAssocMethod(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> rcontext)
Update a ContentAssoc method. The work is done in this separate method so that complex services that need this functionality do not need to incur the reflection performance penalty.
-
deactivateAssocs
public static java.util.Map<java.lang.String,java.lang.Object> deactivateAssocs(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Deactivates any active ContentAssoc (except the current one) that is associated with the passed in template/layout contentId and mapKey.
-
renderSubContentAsText
public static java.util.Map<java.lang.String,java.lang.Object> renderSubContentAsText(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Get and render subcontent associated with template id and mapkey. If subContentId is supplied, that content will be rendered without searching for other matching content.
-
renderContentAsText
public static java.util.Map<java.lang.String,java.lang.Object> renderContentAsText(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Get and render subcontent associated with template id and mapkey. If subContentId is supplied, that content will be rendered without searching for other matching content.
-
linkContentToPubPt
public static java.util.Map<java.lang.String,java.lang.Object> linkContentToPubPt(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
publishContent
public static java.util.Map<java.lang.String,java.lang.Object> publishContent(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context) throws GenericServiceException
- Throws:
GenericServiceException
-
getPrefixedMembers
public static java.util.Map<java.lang.String,java.lang.Object> getPrefixedMembers(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context) throws GenericServiceException
- Throws:
GenericServiceException
-
splitString
public static java.util.Map<java.lang.String,java.lang.Object> splitString(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context) throws GenericServiceException
- Throws:
GenericServiceException
-
joinString
public static java.util.Map<java.lang.String,java.lang.Object> joinString(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context) throws GenericServiceException
- Throws:
GenericServiceException
-
urlEncodeArgs
public static java.util.Map<java.lang.String,java.lang.Object> urlEncodeArgs(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context) throws GenericServiceException
- Throws:
GenericServiceException
-
-