Class Init

All Implemented Interfaces:
Init, LogEnabled, Serviceable
Direct Known Subclasses:
Init

public class Init extends AbstractLogEnabled implements Init, Serviceable
CMS plugin init class.
  • Field Details

  • Constructor Details

    • Init

      public Init()
  • Method Details

    • service

      public void service(ServiceManager manager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Throws:
      ServiceException
    • init

      public void init() throws Exception
      Description copied from interface: Init
      Method to be implemented by user Init class. Here you should manage the business part of your application init. As an Avalon component, class extending this interface have access to all Cocoon-managed components, all plugins, ...
      Specified by:
      init in interface Init
      Throws:
      Exception - if an error occurs
    • createPluginsRootNode

      protected void createPluginsRootNode(ModifiableTraversableAmetysObject rootNode) throws javax.jcr.RepositoryException
      Create the JCR root node for plugins storage
      Parameters:
      rootNode - The JCR root node
      Throws:
      javax.jcr.RepositoryException - Thrown if the node cannot be created
    • createArchiveWorkspace

      protected void createArchiveWorkspace() throws javax.jcr.RepositoryException
      Create the archive workspace.
      Throws:
      javax.jcr.RepositoryException - if a repository error occurred.
    • createContentsRootNode

      protected void createContentsRootNode(ModifiableTraversableAmetysObject rootNode) throws javax.jcr.RepositoryException
      Create the JCR root node for contents
      Parameters:
      rootNode - The JCR root node
      Throws:
      javax.jcr.RepositoryException - if a repository error occurred.
    • createResourcesRootNode

      protected void createResourcesRootNode(ModifiableTraversableAmetysObject rootNode) throws javax.jcr.RepositoryException
      Create the JCR root node for the resources
      Parameters:
      rootNode - The JCR root node
      Throws:
      javax.jcr.RepositoryException - if a repository error occurred.