org.gcube.portlets.user.homelibrary.jcr.repository
Class JCRRepository
java.lang.Object
org.gcube.portlets.user.homelibrary.jcr.repository.JCRRepository
public class JCRRepository
- extends Object
|
Constructor Summary |
JCRRepository(org.gcube.portlets.user.homelibrary.home.User user)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HL_NAMESPACE
public static final String HL_NAMESPACE
- See Also:
- Constant Field Values
JCR_NAMESPACE
public static final String JCR_NAMESPACE
- See Also:
- Constant Field Values
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
HOME_FOLDER
public static final String HOME_FOLDER
- See Also:
- Constant Field Values
SHARED_FOLDER
public static final String SHARED_FOLDER
- See Also:
- Constant Field Values
APPLICATIONS_AREA
public static final String APPLICATIONS_AREA
- See Also:
- Constant Field Values
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
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
getApplicationsRoot
public static javax.jcr.Node getApplicationsRoot(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
getBookmarksFolder
public javax.jcr.Node getBookmarksFolder(javax.jcr.Session session)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
getHiddenFolder
public javax.jcr.Node getHiddenFolder(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)
getWebDavUrl
public String getWebDavUrl(String portalLogin)
Copyright © 2013. All Rights Reserved.