public class JCRRepository extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HLversion |
static String |
HOME_FOLDER |
static String |
pass |
static String |
PATH_SEPARATOR |
static String |
ROOT_WEBDAV |
static String |
serviceName |
static String |
SHARED_FOLDER |
static String |
url |
static String |
user |
| Constructor and Description |
|---|
JCRRepository(org.gcube.common.homelibrary.home.User user) |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCredentials()
Get jackrabbit credentials
|
static org.gcube.common.homelibary.model.items.ItemDelegate |
getGCubeRoot()
Get gCube root
|
static org.gcube.common.homelibary.model.items.ItemDelegate |
getHome()
Get Home Folder "/Home/"
|
static List<String> |
getHomeNames()
Get users home names
|
org.gcube.common.homelibary.model.items.ItemDelegate |
getInBoxFolder(String user)
get InBoxFolder
|
org.gcube.common.homelibary.model.items.ItemDelegate |
getOutBoxFolder()
get OutBoxFolder
|
org.gcube.common.homelibary.model.items.ItemDelegate |
getOwnInBoxFolder()
get InBoxFolder
|
javax.jcr.Node |
getRootFolderBulkCreators(javax.jcr.Session session)
Get Download folder
|
org.gcube.common.homelibary.model.items.ItemDelegate |
getRootSmartFolders()
Get Smart Folders root
|
static javax.jcr.Session |
getSession() |
static javax.jcr.Session |
getSession(String user) |
static org.gcube.common.homelibary.model.items.ItemDelegate |
getSharedRoot()
get SharedRoot
|
org.gcube.common.homelibary.model.items.ItemDelegate |
getUserHome()
get User Home
|
String |
getUserHomeUrl(String portalLogin) |
static String |
getUserVersion(String portalLogin,
JCRUserManager um) |
String |
getWebDavUrl(String portalLogin) |
void |
init()
Create folder in /Home/xxx/
|
static void |
initialize() |
List<String> |
listScopes() |
public static final String PATH_SEPARATOR
public static final String ROOT_WEBDAV
public static final String HOME_FOLDER
public static final String SHARED_FOLDER
public static String user
public static String pass
public static String url
public static String serviceName
public static String HLversion
public JCRRepository(org.gcube.common.homelibrary.home.User user)
throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic static String getCredentials()
public static List<String> getHomeNames() throws org.gcube.common.homelibrary.model.exceptions.RepositoryException
org.gcube.common.homelibrary.model.exceptions.RepositoryExceptionpublic static org.gcube.common.homelibary.model.items.ItemDelegate getHome()
throws org.gcube.common.homelibrary.model.exceptions.RepositoryException
org.gcube.common.homelibrary.model.exceptions.RepositoryExceptionpublic static javax.jcr.Session getSession(String user) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic static javax.jcr.Session getSession()
throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic static void initialize()
throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic void init()
throws Exception
user - Exceptionpublic List<String> listScopes() throws org.gcube.common.homelibrary.model.exceptions.RepositoryException, org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.model.exceptions.RepositoryExceptionorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic static org.gcube.common.homelibary.model.items.ItemDelegate getGCubeRoot()
throws org.gcube.common.homelibrary.model.exceptions.RepositoryException,
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.model.exceptions.RepositoryExceptionorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic static org.gcube.common.homelibary.model.items.ItemDelegate getSharedRoot()
throws org.gcube.common.homelibrary.model.exceptions.RepositoryException,
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.model.exceptions.RepositoryExceptionorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic org.gcube.common.homelibary.model.items.ItemDelegate getUserHome()
throws org.gcube.common.homelibrary.model.exceptions.RepositoryException,
org.gcube.common.homelibrary.home.workspace.exceptions.ItemNotFoundException
session - org.gcube.common.homelibrary.model.exceptions.RepositoryExceptionorg.gcube.common.homelibrary.home.workspace.exceptions.ItemNotFoundExceptionpublic org.gcube.common.homelibary.model.items.ItemDelegate getRootSmartFolders()
throws org.gcube.common.homelibrary.model.exceptions.RepositoryException
session - org.gcube.common.homelibrary.model.exceptions.RepositoryExceptionpublic org.gcube.common.homelibary.model.items.ItemDelegate getOwnInBoxFolder()
throws javax.jcr.RepositoryException
session - org.gcube.common.homelibrary.model.exceptions.RepositoryExceptionjavax.jcr.RepositoryExceptionpublic org.gcube.common.homelibary.model.items.ItemDelegate getOutBoxFolder()
throws javax.jcr.RepositoryException
session - org.gcube.common.homelibrary.model.exceptions.RepositoryExceptionjavax.jcr.RepositoryExceptionpublic javax.jcr.Node getRootFolderBulkCreators(javax.jcr.Session session)
throws javax.jcr.RepositoryException
session - org.gcube.common.homelibrary.model.exceptions.RepositoryExceptionjavax.jcr.RepositoryExceptionpublic org.gcube.common.homelibary.model.items.ItemDelegate getInBoxFolder(String user) throws javax.jcr.RepositoryException, org.gcube.common.homelibrary.home.exceptions.InternalErrorException
session - user - org.gcube.common.homelibrary.model.exceptions.RepositoryExceptionorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionjavax.jcr.RepositoryExceptionpublic static String getUserVersion(String portalLogin, JCRUserManager um) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionCopyright © 2016. All Rights Reserved.