Class BlogRootClientSideElement

All Implemented Interfaces:
ClientSideElement, LogEnabled, PluginAware, Configurable, Serviceable

This element creates an action button to set the blog root page.
  • Field Details

  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager serviceManager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Overrides:
      service in class StaticFileImportsClientSideElement
      Throws:
      ServiceException
    • getStatus

      public Map<String,Object> getStatus(String pageId)
      Get the privacy status of contents
      Parameters:
      pageId - the id of contents
      Returns:
      the privacy status
    • getBlogRootPage

      public String getBlogRootPage(String siteName, String sitemapName)
      Get the Blog root page for the specified site and sitemap
      Parameters:
      siteName - The name of the site
      sitemapName - The name of the sitemap
      Returns:
      The page id
    • setBlogRootPage

      public Map<String,Object> setBlogRootPage(String siteName, String sitemapName, String pageId) throws javax.jcr.RepositoryException
      Set the root page for the blog
      Parameters:
      siteName - The name of the site
      sitemapName - The name of the sitemap
      pageId - The page id for the new root
      Returns:
      the new root id and the old root id if exist
      Throws:
      javax.jcr.RepositoryException - if an error occurs
    • removeBlogRootPage

      public void removeBlogRootPage(String pageId) throws javax.jcr.RepositoryException
      Remove the root page property for the specified page
      Parameters:
      pageId - The root page id
      Throws:
      javax.jcr.RepositoryException - if an error occurs
    • indexOf

      protected int indexOf(javax.jcr.Value[] values, String value) throws javax.jcr.RepositoryException
      Tests if an array of JCR Value contains a String value.
      Parameters:
      values - the JCR Value array.
      value - the string value to test.
      Returns:
      the index of the Value if present, -1 otherwise.
      Throws:
      javax.jcr.RepositoryException - if a repository error occurs.
    • getPageDefaultParameters

      Get the default page's parameters
      Parameters:
      sitemapElement - The sitemap element
      Returns:
      The default parameters