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
public class Init extends Init
Web plugin init class
-
-
Field Summary
-
Fields inherited from class org.ametys.cms.Init
_repository, _resolver
-
-
Constructor Summary
Constructors Constructor Description Init()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createLiveWorkspace()
Create the live workspace.protected void
createSharedResourcesNode(ModifiableTraversableAmetysObject rootNode)
Create the JCR root node for shared resources storage if neededprotected void
createSitesRootNode(ModifiableTraversableAmetysObject rootNode)
Create the JCR root node for sites storage if neededvoid
init()
Method to be implemented by user Init class.void
service(ServiceManager manager)
-
Methods inherited from class org.ametys.cms.Init
createArchiveWorkspace, createContentsRootNode, createPluginsRootNode, createResourcesRootNode
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
Init
public Init()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classInit
- 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, ...
-
createLiveWorkspace
protected void createLiveWorkspace() throws RepositoryException
Create the live workspace.- Throws:
RepositoryException
- if a repository error occurred.
-
createSitesRootNode
protected void createSitesRootNode(ModifiableTraversableAmetysObject rootNode) throws RepositoryException
Create the JCR root node for sites storage if needed- Parameters:
rootNode
- The JCR root node- Throws:
RepositoryException
- Thrown if the node cannot be created
-
createSharedResourcesNode
protected void createSharedResourcesNode(ModifiableTraversableAmetysObject rootNode) throws RepositoryException
Create the JCR root node for shared resources storage if needed- Parameters:
rootNode
- The JCR root node- Throws:
RepositoryException
- Thrown if the node cannot be created
-
-