Package org.ametys.web
Class Init
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.cms.Init
org.ametys.web.Init
- All Implemented Interfaces:
Init,LogEnabled,Serviceable
Web plugin init class
-
Field Summary
Fields inherited from class org.ametys.cms.Init
_repository, _resolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreate the live workspace.protected voidCreate the JCR root node for shared resources storage if neededprotected voidCreate the JCR root node for sites storage if neededvoidinit()Method to be implemented by user Init class.voidservice(ServiceManager manager) Methods inherited from class org.ametys.cms.Init
createArchiveWorkspace, createContentsRootNode, createPluginsRootNode, createResourcesRootNodeMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
Init
public Init()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classInit- Throws:
ServiceException
-
init
Description copied from interface:InitMethod 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, ... -
createLiveWorkspace
Create the live workspace.- Throws:
javax.jcr.RepositoryException- if a repository error occurred.
-
createSitesRootNode
protected void createSitesRootNode(ModifiableTraversableAmetysObject rootNode) throws javax.jcr.RepositoryException Create the JCR root node for sites storage if needed- Parameters:
rootNode- The JCR root node- Throws:
javax.jcr.RepositoryException- Thrown if the node cannot be created
-