public class IrodsStorageProvider extends Object implements StorageProvider
DEFAULT_MAX_RESULTS, DEFAULT_MIMETYPE, ISO8601_DATE_FORMAT, PROPERTIES_BUCKET, PROPERTIES_CONTENT_CHECKSUM, PROPERTIES_CONTENT_CREATOR, PROPERTIES_CONTENT_FILE_CREATED, PROPERTIES_CONTENT_FILE_LAST_ACCESSED, PROPERTIES_CONTENT_FILE_MODIFIED, PROPERTIES_CONTENT_FILE_PATH, PROPERTIES_CONTENT_MD5, PROPERTIES_CONTENT_MIMETYPE, PROPERTIES_CONTENT_MODIFIED, PROPERTIES_CONTENT_SIZE, PROPERTIES_COPY_SOURCE, PROPERTIES_COPY_SOURCE_STORE, PROPERTIES_HLS_STREAMING_HOST, PROPERTIES_HLS_STREAMING_TYPE, PROPERTIES_SPACE_ACL, PROPERTIES_SPACE_ACL_GROUP, PROPERTIES_SPACE_ACL_PUBLIC, PROPERTIES_SPACE_COUNT, PROPERTIES_SPACE_CREATED, PROPERTIES_SPACE_SIZE, PROPERTIES_STREAMING_HOST, PROPERTIES_STREAMING_TYPE| Constructor and Description |
|---|
IrodsStorageProvider(String username,
String password,
Map<String,String> options) |
| Modifier and Type | Method and Description |
|---|---|
String |
addContent(String spaceId,
String contentId,
String contentMimeType,
Map<String,String> userProperties,
long contentSize,
String contentChecksum,
InputStream content)
Add new content to irods, content path is baseDirectory /spaceId/contentId
|
String |
copyContent(String sourceSpaceId,
String sourceContentId,
String destSpaceId,
String destContentId) |
void |
createSpace(String spaceId)
Create a new directory under the baseDirectory
|
void |
deleteContent(String spaceId,
String contentId) |
void |
deleteSpace(String spaceId) |
RetrievedContent |
getContent(String spaceId,
String contentId) |
RetrievedContent |
getContent(String spaceId,
String contentId,
String range) |
Map<String,String> |
getContentProperties(String spaceId,
String contentId) |
Map<String,AclType> |
getSpaceACLs(String spaceId) |
Iterator<String> |
getSpaceContents(String spaceId,
String prefix)
Prefix is assumed to be part of the collection name.
|
List<String> |
getSpaceContentsChunked(String spaceId,
String prefix,
long maxResults,
String marker) |
Map<String,String> |
getSpaceProperties(String spaceId) |
Iterator<String> |
getSpaces()
Return a list of irods spaces.
|
StorageProviderType |
getStorageProviderType() |
void |
setContentProperties(String spaceId,
String contentId,
Map<String,String> contentProperties) |
void |
setSpaceACLs(String spaceId,
Map<String,AclType> spaceACLs) |
public StorageProviderType getStorageProviderType()
getStorageProviderType in interface StorageProviderpublic Iterator<String> getSpaces()
getSpaces in interface StorageProviderpublic Iterator<String> getSpaceContents(String spaceId, String prefix)
getSpaceContents in interface StorageProviderspaceId - prefix - public List<String> getSpaceContentsChunked(String spaceId, String prefix, long maxResults, String marker)
getSpaceContentsChunked in interface StorageProviderpublic void createSpace(String spaceId)
createSpace in interface StorageProviderspaceId - public void deleteSpace(String spaceId)
deleteSpace in interface StorageProviderpublic Map<String,String> getSpaceProperties(String spaceId)
getSpaceProperties in interface StorageProviderpublic Map<String,AclType> getSpaceACLs(String spaceId)
getSpaceACLs in interface StorageProviderpublic void setSpaceACLs(String spaceId, Map<String,AclType> spaceACLs)
setSpaceACLs in interface StorageProviderpublic String addContent(String spaceId, String contentId, String contentMimeType, Map<String,String> userProperties, long contentSize, String contentChecksum, InputStream content)
addContent in interface StorageProviderspaceId - contentId - contentMimeType - contentSize - may be set to 0 in some cases (entry through admin client)contentChecksum - content - public String copyContent(String sourceSpaceId, String sourceContentId, String destSpaceId, String destContentId)
copyContent in interface StorageProviderpublic RetrievedContent getContent(String spaceId, String contentId)
getContent in interface StorageProviderpublic RetrievedContent getContent(String spaceId, String contentId, String range)
getContent in interface StorageProviderpublic void deleteContent(String spaceId, String contentId)
deleteContent in interface StorageProviderpublic void setContentProperties(String spaceId, String contentId, Map<String,String> contentProperties)
setContentProperties in interface StorageProviderpublic Map<String,String> getContentProperties(String spaceId, String contentId)
getContentProperties in interface StorageProviderCopyright © 2009–2020 LYRASIS. All rights reserved.