public class Utils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_CLASS |
static String |
SERVICE_NAME |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
getAllContentIds(javax.jcr.Session ses,
Set<String> idsToDelete,
org.gcube.common.storagehub.model.items.Item itemToDelete,
VersionHandler versionHandler) |
static Deque<org.gcube.common.storagehub.model.items.Item> |
getAllNodesForZip(org.gcube.common.storagehub.model.items.FolderItem directory,
javax.jcr.Session session,
AccountingHandler accountingHandler,
List<String> excludes) |
static org.gcube.common.storagehub.model.Path |
getHomePath() |
static org.gcube.common.storagehub.model.Path |
getHomePath(String login) |
static long |
getItemCount(javax.jcr.Node parent,
boolean showHidden) |
static <T extends org.gcube.common.storagehub.model.items.Item> |
getItemList(javax.jcr.Node parent,
List<String> excludes,
Range range,
boolean showHidden) |
static String |
getSecurePassword(String user) |
static org.gcube.contentmanager.storageclient.wrapper.StorageClient |
getStorageClient(String login) |
static boolean |
hasSharedChildren(org.gcube.common.storagehub.model.items.FolderItem item,
javax.jcr.Session session) |
static void |
zipNode(ZipOutputStream zos,
Deque<org.gcube.common.storagehub.model.items.Item> queue,
String login,
org.gcube.common.storagehub.model.Path originalPath) |
public static final String SERVICE_NAME
public static final String SERVICE_CLASS
public static String getSecurePassword(String user) throws Exception
Exceptionpublic static long getItemCount(javax.jcr.Node parent,
boolean showHidden)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic static <T extends org.gcube.common.storagehub.model.items.Item> List<T> getItemList(javax.jcr.Node parent, List<String> excludes, Range range, boolean showHidden) throws javax.jcr.RepositoryException, org.gcube.common.storagehub.model.exceptions.BackendGenericError
javax.jcr.RepositoryExceptionorg.gcube.common.storagehub.model.exceptions.BackendGenericErrorpublic static org.gcube.common.storagehub.model.Path getHomePath()
public static org.gcube.common.storagehub.model.Path getHomePath(String login)
public static org.gcube.contentmanager.storageclient.wrapper.StorageClient getStorageClient(String login)
public static Deque<org.gcube.common.storagehub.model.items.Item> getAllNodesForZip(org.gcube.common.storagehub.model.items.FolderItem directory, javax.jcr.Session session, AccountingHandler accountingHandler, List<String> excludes) throws javax.jcr.RepositoryException, org.gcube.common.storagehub.model.exceptions.BackendGenericError
javax.jcr.RepositoryExceptionorg.gcube.common.storagehub.model.exceptions.BackendGenericErrorpublic static void zipNode(ZipOutputStream zos, Deque<org.gcube.common.storagehub.model.items.Item> queue, String login, org.gcube.common.storagehub.model.Path originalPath) throws Exception
Exceptionpublic static boolean hasSharedChildren(org.gcube.common.storagehub.model.items.FolderItem item,
javax.jcr.Session session)
throws javax.jcr.RepositoryException,
org.gcube.common.storagehub.model.exceptions.BackendGenericError
javax.jcr.RepositoryExceptionorg.gcube.common.storagehub.model.exceptions.BackendGenericErrorpublic static void getAllContentIds(javax.jcr.Session ses,
Set<String> idsToDelete,
org.gcube.common.storagehub.model.items.Item itemToDelete,
VersionHandler versionHandler)
throws Exception
ExceptionCopyright © 2018. All Rights Reserved.