public class StorageHubManagement extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.common.storagehub.client.dsl.FileContainer |
createdFile |
protected MetadataMatcher |
metadataMatcher |
protected String |
mimeType |
protected org.gcube.common.storagehub.client.dsl.StorageHubClient |
storageHubClient |
| Constructor and Description |
|---|
StorageHubManagement() |
| Modifier and Type | Method and Description |
|---|---|
org.gcube.common.storagehub.client.dsl.FolderContainer |
getApplicationFolder() |
protected org.gcube.common.storagehub.client.dsl.FolderContainer |
getContextFolder() |
org.gcube.common.storagehub.client.dsl.FileContainer |
getCreatedFile() |
org.gcube.common.storagehub.client.dsl.FolderContainer |
getDestinationFolder(String mimeType) |
String |
getMimeType() |
protected org.gcube.common.storagehub.client.dsl.FolderContainer |
getOrCreateFolder(org.gcube.common.storagehub.client.dsl.FolderContainer parent,
String name,
String description,
boolean hidden) |
protected org.gcube.common.storagehub.client.dsl.FolderContainer |
getWorkspaceRoot() |
protected boolean |
isPersistedFile(org.gcube.common.storagehub.client.dsl.FileContainer fileContainer,
String filename) |
URL |
persistFile(InputStream inputStream,
String fileName,
String mimeType,
org.gcube.common.storagehub.model.Metadata metadata) |
protected void |
recursiveList(org.gcube.common.storagehub.client.dsl.FolderContainer folder,
int level) |
void |
removePersistedFile(String filename,
String mimeType) |
void |
setCheckMetadata(MetadataMatcher checkMetadata) |
protected void |
tree(org.gcube.common.storagehub.client.dsl.FolderContainer folderContainer) |
protected MetadataMatcher metadataMatcher
protected final org.gcube.common.storagehub.client.dsl.StorageHubClient storageHubClient
protected org.gcube.common.storagehub.client.dsl.FileContainer createdFile
protected String mimeType
public void setCheckMetadata(MetadataMatcher checkMetadata)
public String getMimeType()
public org.gcube.common.storagehub.client.dsl.FileContainer getCreatedFile()
protected void recursiveList(org.gcube.common.storagehub.client.dsl.FolderContainer folder,
int level)
throws org.gcube.common.storagehub.model.exceptions.StorageHubException
org.gcube.common.storagehub.model.exceptions.StorageHubExceptionprotected 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,
boolean hidden)
throws Exception
Exceptionprotected org.gcube.common.storagehub.client.dsl.FolderContainer getContextFolder()
throws Exception
Exceptionpublic org.gcube.common.storagehub.client.dsl.FolderContainer getApplicationFolder()
throws Exception
Exceptionpublic org.gcube.common.storagehub.client.dsl.FolderContainer getDestinationFolder(String mimeType) throws Exception
Exceptionprotected boolean isPersistedFile(org.gcube.common.storagehub.client.dsl.FileContainer fileContainer,
String filename)
protected void tree(org.gcube.common.storagehub.client.dsl.FolderContainer folderContainer)
throws Exception
Exceptionpublic URL persistFile(InputStream inputStream, String fileName, String mimeType, org.gcube.common.storagehub.model.Metadata metadata) throws Exception
ExceptionCopyright © 2019. All Rights Reserved.