Package org.ametys.cms
Class Init
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.cms.Init
-
- All Implemented Interfaces:
Init
,LogEnabled
,Serviceable
- Direct Known Subclasses:
Init
public class Init extends AbstractLogEnabled implements Init, Serviceable
CMS plugin init class.
-
-
Field Summary
Fields Modifier and Type Field Description protected JackrabbitRepository
_repository
The repositoryprotected AmetysObjectResolver
_resolver
The Ametys object resolver
-
Constructor Summary
Constructors Constructor Description Init()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createArchiveWorkspace()
Create the archive workspace.protected void
createContentsRootNode(ModifiableTraversableAmetysObject rootNode)
Create the JCR root node for contentsprotected void
createPluginsRootNode(ModifiableTraversableAmetysObject rootNode)
Create the JCR root node for plugins storageprotected void
createResourcesRootNode(ModifiableTraversableAmetysObject rootNode)
Create the JCR root node for the resourcesvoid
init()
Method to be implemented by user Init class.void
service(ServiceManager manager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_repository
protected JackrabbitRepository _repository
The repository
-
_resolver
protected AmetysObjectResolver _resolver
The Ametys object resolver
-
-
Constructor Detail
-
Init
public Init()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- 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, ...
-
createPluginsRootNode
protected void createPluginsRootNode(ModifiableTraversableAmetysObject rootNode) throws RepositoryException
Create the JCR root node for plugins storage- Parameters:
rootNode
- The JCR root node- Throws:
RepositoryException
- Thrown if the node cannot be created
-
createArchiveWorkspace
protected void createArchiveWorkspace() throws RepositoryException
Create the archive workspace.- Throws:
RepositoryException
- if a repository error occurred.
-
createContentsRootNode
protected void createContentsRootNode(ModifiableTraversableAmetysObject rootNode) throws RepositoryException
Create the JCR root node for contents- Parameters:
rootNode
- The JCR root node- Throws:
RepositoryException
- if a repository error occurred.
-
createResourcesRootNode
protected void createResourcesRootNode(ModifiableTraversableAmetysObject rootNode) throws RepositoryException
Create the JCR root node for the resources- Parameters:
rootNode
- The JCR root node- Throws:
RepositoryException
- if a repository error occurred.
-
-