public interface NodeHierarchyCreator
| Modifier and Type | Method and Description |
|---|---|
void |
addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Registers a new plugins
|
String |
getJcrPath(String alias)
Gets the JCR path corresponding to the given alias
|
javax.jcr.Node |
getPublicApplicationNode(SessionProvider sessionProvider)
Gets the JCR node corresponding to the root node of the public applications
|
javax.jcr.Node |
getUserApplicationNode(SessionProvider sessionProvider,
String userName)
Gets the JCR node corresponding to the root node of the user's applications
|
javax.jcr.Node |
getUserNode(SessionProvider sessionProvider,
String userName)
Gets the JCR node corresponding to the root node of the user workspace
|
void |
init()
Initialize the current repository thanks to all the registered plugins
|
void |
init(String repository)
Deprecated.
use init() instead
|
void |
removeUserNode(SessionProvider sessionProvider,
String userName)
Remove the JCR node corresponding to the root node of the user workspace
|
String getJcrPath(String alias)
alias - the alias of the path to retrievevoid init(String repository) throws Exception
repository - the repository to initializeException - if an exception occursvoid init() throws Exception
Exception - if an exception occursvoid removeUserNode(SessionProvider sessionProvider, String userName) throws Exception
sessionProvider - the session provider to use to remove the root nodeuserName - the user name for which we want to remove the root node of his workspaceException - if an exception occursjavax.jcr.Node getUserNode(SessionProvider sessionProvider, String userName) throws Exception
sessionProvider - the session provider to use to get the root nodeuserName - the user name for which we want to find the root node of his workspaceException - if an exception occursjavax.jcr.Node getUserApplicationNode(SessionProvider sessionProvider, String userName) throws Exception
sessionProvider - the session provider to use to get the root nodeuserName - the user name for which we want to find the root node of his applicationsException - if an exception occursjavax.jcr.Node getPublicApplicationNode(SessionProvider sessionProvider) throws Exception
sessionProvider - the session provider to use to get the root nodeException - if an exception occursvoid addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
plugin - the plugin to registerCopyright © 2016 eXo Platform SAS. All Rights Reserved.