org.exoplatform.services.jcr.ext.hierarchy.impl
Class NodeHierarchyCreatorImpl

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.hierarchy.impl.NodeHierarchyCreatorImpl
All Implemented Interfaces:
NodeHierarchyCreator, org.picocontainer.Startable

public class NodeHierarchyCreatorImpl
extends java.lang.Object
implements NodeHierarchyCreator, org.picocontainer.Startable

Created by The eXo Platform SAS Author : Dang Van Minh minh.dang@exoplatform.com Nov 15, 2007 2:21:57 PM


Constructor Summary
NodeHierarchyCreatorImpl(RepositoryService jcrService)
           
 
Method Summary
 void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
           
 java.lang.String getJcrPath(java.lang.String alias)
           
 java.util.Map getPermissions(java.util.List<HierarchyConfig.Permission> permissions)
           
 java.util.Collection getPlugins()
           
 javax.jcr.Node getPublicApplicationNode(SessionProvider sessionProvider)
           
 javax.jcr.Node getUserApplicationNode(SessionProvider sessionProvider, java.lang.String userName)
           
 javax.jcr.Node getUserNode(SessionProvider sessionProvider, java.lang.String userName)
           
 void init(java.lang.String repository)
           
 org.exoplatform.container.component.ComponentPlugin removePlugin(java.lang.String name)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeHierarchyCreatorImpl

public NodeHierarchyCreatorImpl(RepositoryService jcrService)
                         throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

start

public void start()
Specified by:
start in interface org.picocontainer.Startable

stop

public void stop()
Specified by:
stop in interface org.picocontainer.Startable

init

public void init(java.lang.String repository)
          throws java.lang.Exception
Specified by:
init in interface NodeHierarchyCreator
Throws:
java.lang.Exception

getPermissions

public java.util.Map getPermissions(java.util.List<HierarchyConfig.Permission> permissions)

getUserApplicationNode

public javax.jcr.Node getUserApplicationNode(SessionProvider sessionProvider,
                                             java.lang.String userName)
                                      throws java.lang.Exception
Specified by:
getUserApplicationNode in interface NodeHierarchyCreator
Throws:
java.lang.Exception

getPublicApplicationNode

public javax.jcr.Node getPublicApplicationNode(SessionProvider sessionProvider)
                                        throws java.lang.Exception
Specified by:
getPublicApplicationNode in interface NodeHierarchyCreator
Throws:
java.lang.Exception

getUserNode

public javax.jcr.Node getUserNode(SessionProvider sessionProvider,
                                  java.lang.String userName)
                           throws java.lang.Exception
Specified by:
getUserNode in interface NodeHierarchyCreator
Throws:
java.lang.Exception

getJcrPath

public java.lang.String getJcrPath(java.lang.String alias)
Specified by:
getJcrPath in interface NodeHierarchyCreator

addPlugin

public void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Specified by:
addPlugin in interface NodeHierarchyCreator

removePlugin

public org.exoplatform.container.component.ComponentPlugin removePlugin(java.lang.String name)

getPlugins

public java.util.Collection getPlugins()


Copyright © 2011 eXo Platform SAS. All Rights Reserved.