Class BlogPostLibJs


  • public class BlogPostLibJs
    extends Object
    This class is a port of a previous JavaScript library.
    Since:
    4.0
    Author:
    Neil Mc Erlean (based on previous JavaScript)
    • Constructor Detail

      • BlogPostLibJs

        public BlogPostLibJs()
    • Method Detail

      • hasExternalBlogConfiguration

        public static boolean hasExternalBlogConfiguration​(org.alfresco.service.cmr.repository.NodeRef node,
                                                           org.alfresco.service.ServiceRegistry services)
        Checks whether a blog configuration is available This should at some point also check whether the configuration is enabled.
        Parameters:
        node - the node that should be checked. Will check all parents if the node itself doesn't contain a configuration.
        Returns:
        {boolean} whether a configuration could be found.
      • getBlogPostData

        public static Map<String,​Object> getBlogPostData​(org.alfresco.service.cmr.repository.NodeRef node,
                                                               org.alfresco.service.ServiceRegistry services)