Package org.apache.ofbiz.content.content
Class ContentServices
java.lang.Object
org.apache.ofbiz.content.content.ContentServices
ContentServices Class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeactivateAssocs
(DispatchContext dctx, Map<String, ? extends Object> context) Deactivates any active ContentAssoc (except the current one) that is associated with the passed in template/layout contentId and mapKey.deactivateContentAssoc
(DispatchContext dctx, Map<String, ? extends Object> rcontext) Update a ContentAssoc service.deactivateContentAssocMethod
(DispatchContext dctx, Map<String, ? extends Object> rcontext) Update a ContentAssoc method.findContentParents
(DispatchContext dctx, Map<String, ? extends Object> context) This is a generic service for traversing a Content tree, typical of a blog response tree.findRelatedContent
(DispatchContext dctx, Map<String, ? extends Object> context) findRelatedContent Finds the relatedgetPrefixedMembers
(DispatchContext dctx, Map<String, ? extends Object> context) joinString
(DispatchContext dctx, Map<String, ? extends Object> context) linkContentToPubPt
(DispatchContext dctx, Map<String, ? extends Object> context) publishContent
(DispatchContext dctx, Map<String, ? extends Object> context) renderContentAsText
(DispatchContext dctx, Map<String, ? extends Object> context) Get and render subcontent associated with template id and mapkey.renderSubContentAsText
(DispatchContext dctx, Map<String, ? extends Object> context) Get and render subcontent associated with template id and mapkey.splitString
(DispatchContext dctx, Map<String, ? extends Object> context) traverseContent
(DispatchContext dctx, Map<String, ? extends Object> context) This is a generic service for traversing a Content tree, typical of a blog response tree.urlEncodeArgs
(DispatchContext dctx, Map<String, ? extends Object> context)
-
Constructor Details
-
ContentServices
public ContentServices()
-
-
Method Details
-
findRelatedContent
public static Map<String,Object> findRelatedContent(DispatchContext dctx, Map<String, ? extends Object> context) findRelatedContent Finds the related -
findContentParents
public static Map<String,Object> findContentParents(DispatchContext dctx, Map<String, ? extends 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 Map<String,Object> traverseContent(DispatchContext dctx, Map<String, ? extends 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 Map<String,Object> deactivateContentAssoc(DispatchContext dctx, Map<String, ? extends 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 Map<String,Object> deactivateContentAssocMethod(DispatchContext dctx, Map<String, ? extends 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 Map<String,Object> deactivateAssocs(DispatchContext dctx, Map<String, ? extends 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 Map<String,Object> renderSubContentAsText(DispatchContext dctx, Map<String, ? extends 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 Map<String,Object> renderContentAsText(DispatchContext dctx, Map<String, ? extends 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
-
publishContent
public static Map<String,Object> publishContent(DispatchContext dctx, Map<String, ? extends Object> context) throws GenericServiceException- Throws:
GenericServiceException
-
getPrefixedMembers
public static Map<String,Object> getPrefixedMembers(DispatchContext dctx, Map<String, ? extends Object> context) throws GenericServiceException- Throws:
GenericServiceException
-
splitString
public static Map<String,Object> splitString(DispatchContext dctx, Map<String, ? extends Object> context) throws GenericServiceException- Throws:
GenericServiceException
-
joinString
public static Map<String,Object> joinString(DispatchContext dctx, Map<String, ? extends Object> context) throws GenericServiceException- Throws:
GenericServiceException
-
urlEncodeArgs
public static Map<String,Object> urlEncodeArgs(DispatchContext dctx, Map<String, ? extends Object> context) throws GenericServiceException- Throws:
GenericServiceException
-