Class BlogPostLibJs

java.lang.Object
org.alfresco.repo.web.scripts.blogs.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 Details

    • BlogPostLibJs

      public BlogPostLibJs()
  • Method Details

    • hasExternalBlogConfiguration

      public static boolean hasExternalBlogConfiguration(NodeRef node, 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(NodeRef node, ServiceRegistry services)