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
CMS plugin init class.
-
Field Summary
Modifier and TypeFieldDescriptionprotected JackrabbitRepository
The repositoryprotected AmetysObjectResolver
The Ametys object resolver -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Create the archive workspace.protected void
Create the JCR root node for contentsprotected void
Create the JCR root node for plugins storageprotected void
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 Details
-
_repository
The repository -
_resolver
The Ametys object resolver
-
-
Constructor Details
-
Init
public Init()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
init
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 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
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.
-