Class ContentServices


  • public class ContentServices
    extends java.lang.Object
    ContentServices Class
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String module  
      static java.lang.String resource  
    • 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 related
      static 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • module

        public static final java.lang.String module
    • Constructor Detail

      • ContentServices

        public ContentServices()
    • 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)