public class StorageHubManagement extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CATALOGUE_FOLDER_DESCRIPTION |
static String |
CATALOGUE_ITEM_ID |
static String |
CATALOGUE_RESOURCE_ID |
static String |
CATALOGUE_RESOURCE_REVISION_ID |
protected org.gcube.common.storagehub.client.dsl.FileContainer |
createdFile |
protected String |
mimeType |
static String |
ORIGINAL_NAME |
static String |
ORIGINAL_URL |
protected org.gcube.common.storagehub.client.dsl.StorageHubClient |
storageHubClient |
| Constructor and Description |
|---|
StorageHubManagement() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRevisionID(org.gcube.common.storagehub.client.dsl.FileContainer fileContainer,
String resourceID,
String revisionID) |
void |
addRevisionID(String resourceID,
String revisionID) |
protected org.gcube.common.storagehub.client.dsl.FileContainer |
copyFile(org.gcube.common.storagehub.client.dsl.FileContainer sourceFileContainer,
org.gcube.common.storagehub.client.dsl.FolderContainer destinationFolder,
String copiedFilename) |
protected void |
deleteFileByID(String id) |
void |
deleteResourcePersistence(URL url,
String itemID) |
URL |
ensureResourcePersistence(URL url,
String itemID,
String resourceID,
String name) |
protected org.gcube.common.storagehub.client.dsl.FolderContainer |
getCatalogueFolder() |
protected org.gcube.common.storagehub.client.dsl.ItemContainer<? extends org.gcube.common.storagehub.model.items.Item> |
getContainerByStorageURL(URL url) |
protected org.gcube.common.storagehub.client.dsl.FolderContainer |
getDestinationFolder(org.gcube.common.storagehub.model.items.AbstractFileItem item) |
protected org.gcube.common.storagehub.client.dsl.FileContainer |
getFileByID(String id) |
static String |
getFolderName() |
String |
getMimeType() |
protected org.gcube.common.storagehub.client.dsl.FolderContainer |
getOrCreateFolder(org.gcube.common.storagehub.client.dsl.FolderContainer parent,
String name,
String description) |
protected org.gcube.common.storagehub.client.dsl.FolderContainer |
getWorkspaceRoot() |
protected boolean |
isItemPersistedFile(org.gcube.common.storagehub.client.dsl.FileContainer fileContainer,
org.gcube.common.storagehub.client.dsl.FolderContainer destinationFolder,
String itemID) |
boolean |
isItemPersistedFile(URL url,
String itemID) |
protected void |
recursiveList(org.gcube.common.storagehub.client.dsl.FolderContainer folder,
int level) |
protected void |
renameFile(org.gcube.common.storagehub.client.dsl.FileContainer fileContainer,
String newName) |
void |
renameFile(String resourceID,
String revisionID) |
protected void |
tree(org.gcube.common.storagehub.client.dsl.FolderContainer folderContainer) |
public static final String ORIGINAL_URL
public static final String ORIGINAL_NAME
public static final String CATALOGUE_ITEM_ID
public static final String CATALOGUE_RESOURCE_ID
public static final String CATALOGUE_RESOURCE_REVISION_ID
public static final String CATALOGUE_FOLDER_DESCRIPTION
protected final org.gcube.common.storagehub.client.dsl.StorageHubClient storageHubClient
protected org.gcube.common.storagehub.client.dsl.FileContainer createdFile
protected String mimeType
public String getMimeType()
protected void recursiveList(org.gcube.common.storagehub.client.dsl.FolderContainer folder,
int level)
protected org.gcube.common.storagehub.client.dsl.FolderContainer getWorkspaceRoot()
protected org.gcube.common.storagehub.client.dsl.FolderContainer getOrCreateFolder(org.gcube.common.storagehub.client.dsl.FolderContainer parent,
String name,
String description)
public static String getFolderName()
protected org.gcube.common.storagehub.client.dsl.FolderContainer getCatalogueFolder()
protected org.gcube.common.storagehub.client.dsl.FolderContainer getDestinationFolder(org.gcube.common.storagehub.model.items.AbstractFileItem item)
protected org.gcube.common.storagehub.client.dsl.FileContainer copyFile(org.gcube.common.storagehub.client.dsl.FileContainer sourceFileContainer,
org.gcube.common.storagehub.client.dsl.FolderContainer destinationFolder,
String copiedFilename)
protected org.gcube.common.storagehub.client.dsl.ItemContainer<? extends org.gcube.common.storagehub.model.items.Item> getContainerByStorageURL(URL url)
protected boolean isItemPersistedFile(org.gcube.common.storagehub.client.dsl.FileContainer fileContainer,
org.gcube.common.storagehub.client.dsl.FolderContainer destinationFolder,
String itemID)
protected void tree(org.gcube.common.storagehub.client.dsl.FolderContainer folderContainer)
throws Exception
Exceptionprotected org.gcube.common.storagehub.client.dsl.FileContainer getFileByID(String id) throws Exception
Exceptionpublic URL ensureResourcePersistence(URL url, String itemID, String resourceID, String name)
protected void addRevisionID(org.gcube.common.storagehub.client.dsl.FileContainer fileContainer,
String resourceID,
String revisionID)
protected void renameFile(org.gcube.common.storagehub.client.dsl.FileContainer fileContainer,
String newName)
Copyright © 2019. All Rights Reserved.