public class Init extends AbstractLogEnabled implements Init, Serviceable
Modifier and Type | Field and Description |
---|---|
private static String |
__CONTENTS_ROOT_NODE
The contents root node name
|
private static String |
__PLUGINS_ROOT_NODE
The plugins root node name
|
private static String |
__RESOURCES_ROOT_NODE
The resources root node name
|
protected Repository |
_repository
The repository
|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
Constructor and Description |
---|
Init() |
Modifier and Type | Method and Description |
---|---|
protected void |
createArchiveWorkspace()
Create the archive workspace.
|
protected void |
createContentsRootNode(ModifiableTraversableAmetysObject rootNode)
Create the JCR root node for contents
|
protected void |
createPluginsRootNode(ModifiableTraversableAmetysObject rootNode)
Create the JCR root node for plugins storage
|
protected void |
createResourcesRootNode(ModifiableTraversableAmetysObject rootNode)
Create the JCR root node for the resources
|
void |
init()
Method to be implemented by user Init class.
|
void |
service(ServiceManager manager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private static final String __CONTENTS_ROOT_NODE
private static final String __RESOURCES_ROOT_NODE
private static final String __PLUGINS_ROOT_NODE
protected Repository _repository
protected AmetysObjectResolver _resolver
public Init()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void init() throws Exception
Init
protected void createPluginsRootNode(ModifiableTraversableAmetysObject rootNode) throws RepositoryException
rootNode
- The JCR root nodeRepositoryException
- Thrown if the node cannot be createdprotected void createArchiveWorkspace() throws RepositoryException
RepositoryException
- if a repository error occurred.protected void createContentsRootNode(ModifiableTraversableAmetysObject rootNode) throws RepositoryException
rootNode
- The JCR root nodeRepositoryException
- if a repository error occurred.protected void createResourcesRootNode(ModifiableTraversableAmetysObject rootNode) throws RepositoryException
rootNode
- The JCR root nodeRepositoryException
- if a repository error occurred.