org.gcube.portlets.user.homelibrary.jcr.repository
Class JCRRepository

java.lang.Object
  extended by org.gcube.portlets.user.homelibrary.jcr.repository.JCRRepository

public class JCRRepository
extends Object


Field Summary
static String PATH_SEPARATOR
           
static String ROOT_WEBDAV
           
 
Constructor Summary
JCRRepository(org.gcube.portlets.user.homelibrary.home.User user)
           
 
Method Summary
static void addUserToJCRUserManager(String userId, String userHome)
           
 boolean existChild(javax.jcr.Node father, String child)
           
static javax.jcr.Node getGCubeRoot(javax.jcr.Session session)
           
 javax.jcr.Node getInBoxFolder(javax.jcr.Session session, String user)
           
 javax.jcr.Node getOutBoxFolder(javax.jcr.Session session)
           
 javax.jcr.Node getOwnInBoxFolder(javax.jcr.Session session)
           
 javax.jcr.Node getRootFolderBulkCreators(javax.jcr.Session session)
           
 javax.jcr.Node getRootSmartFolders(javax.jcr.Session session)
           
static javax.jcr.Session getSession()
           
static javax.jcr.Node getSharedRoot(javax.jcr.Session session)
           
 javax.jcr.Node getUserHome(javax.jcr.Session session)
           
 String getUserHomeUrl(String portalLogin)
           
static void Initialize()
           
 List<String> listScopes()
           
static void removeUser(org.gcube.portlets.user.homelibrary.home.User user)
           
static void setACL(String portalLogin, String userHome)
           
 void setScope(javax.jcr.Session session, String scope)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH_SEPARATOR

public static final String PATH_SEPARATOR
See Also:
Constant Field Values

ROOT_WEBDAV

public static final String ROOT_WEBDAV
See Also:
Constant Field Values
Constructor Detail

JCRRepository

public JCRRepository(org.gcube.portlets.user.homelibrary.home.User user)
              throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
Method Detail

addUserToJCRUserManager

public static void addUserToJCRUserManager(String userId,
                                           String userHome)

getSession

public static javax.jcr.Session getSession()
                                    throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException

Initialize

public static void Initialize()
                       throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException

removeUser

public static void removeUser(org.gcube.portlets.user.homelibrary.home.User user)
                       throws Exception
Throws:
Exception

setACL

public static void setACL(String portalLogin,
                          String userHome)
                   throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException

setScope

public void setScope(javax.jcr.Session session,
                     String scope)
              throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

existChild

public boolean existChild(javax.jcr.Node father,
                          String child)

listScopes

public List<String> listScopes()
                        throws javax.jcr.RepositoryException,
                               org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
Throws:
javax.jcr.RepositoryException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException

getGCubeRoot

public static javax.jcr.Node getGCubeRoot(javax.jcr.Session session)
                                   throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getSharedRoot

public static javax.jcr.Node getSharedRoot(javax.jcr.Session session)
                                    throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getUserHome

public javax.jcr.Node getUserHome(javax.jcr.Session session)
                           throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getRootSmartFolders

public javax.jcr.Node getRootSmartFolders(javax.jcr.Session session)
                                   throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getOwnInBoxFolder

public javax.jcr.Node getOwnInBoxFolder(javax.jcr.Session session)
                                 throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getRootFolderBulkCreators

public javax.jcr.Node getRootFolderBulkCreators(javax.jcr.Session session)
                                         throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getOutBoxFolder

public javax.jcr.Node getOutBoxFolder(javax.jcr.Session session)
                               throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getInBoxFolder

public javax.jcr.Node getInBoxFolder(javax.jcr.Session session,
                                     String user)
                              throws javax.jcr.RepositoryException,
                                     org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
Throws:
javax.jcr.RepositoryException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException

getUserHomeUrl

public String getUserHomeUrl(String portalLogin)


Copyright © 2013. All Rights Reserved.