public abstract class StorageProviderBase extends Object implements StorageProvider
| Modifier and Type | Class and Description |
|---|---|
protected class |
StorageProviderBase.SpaceDeleteWorker |
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
DEFAULT_MAX_RESULTS, DEFAULT_MIMETYPE, PROPERTIES_CONTENT_CHECKSUM, PROPERTIES_CONTENT_CREATOR, PROPERTIES_CONTENT_MD5, PROPERTIES_CONTENT_MIMETYPE, PROPERTIES_CONTENT_MODIFIED, PROPERTIES_CONTENT_SIZE, PROPERTIES_COPY_SOURCE, PROPERTIES_COPY_SOURCE_STORE, PROPERTIES_SPACE_ACL, PROPERTIES_SPACE_ACL_PUBLIC, PROPERTIES_SPACE_COUNT, PROPERTIES_SPACE_CREATED, PROPERTIES_SPACE_SIZE, RFC822_DATE_FORMAT, SPACE_PROPERTIES_SUFFIX| Constructor and Description |
|---|
StorageProviderBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteSpace(String spaceId)
Deletes a space.
|
protected abstract void |
doSetSpaceProperties(String spaceId,
Map<String,String> spaceProps) |
protected abstract Map<String,String> |
getAllSpaceProperties(String spaceId) |
Map<String,org.duracloud.common.model.AclType> |
getSpaceACLs(String spaceId)
Retrieves the ACLs associated with a space.
|
StorageProviderBase.SpaceDeleteWorker |
getSpaceDeleteWorker(String spaceId) |
Map<String,String> |
getSpaceProperties(String spaceId)
This method returns all of the space properties EXCEPT the ACLs
|
protected abstract void |
removeSpace(String spaceId) |
protected void |
setNewSpaceProperties(String spaceId,
Map<String,String> spaceProperties) |
void |
setSpaceACLs(String spaceId,
Map<String,org.duracloud.common.model.AclType> spaceACLs)
Sets the ACLs associated with a space.
|
void |
setSpaceProperties(String spaceId,
Map<String,String> spaceProps)
This method adds all of the existing ACLs to the properties to be set.
|
protected abstract boolean |
spaceExists(String spaceId) |
protected void |
throwIfSpaceExists(String spaceId) |
protected void |
throwIfSpaceNotExist(String spaceId) |
protected void |
throwIfSpaceNotExist(String spaceId,
boolean wait) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddContent, copyContent, createSpace, deleteContent, getContent, getContentProperties, getSpaceContents, getSpaceContentsChunked, getSpaces, setContentPropertiesprotected abstract boolean spaceExists(String spaceId)
protected abstract void removeSpace(String spaceId)
protected abstract void doSetSpaceProperties(String spaceId, Map<String,String> spaceProps)
public Map<String,String> getSpaceProperties(String spaceId)
getSpaceProperties in interface StorageProviderspaceId - - ID of the spacepublic void setSpaceProperties(String spaceId, Map<String,String> spaceProps)
setSpaceProperties in interface StorageProviderspaceId - - ID of the spacespaceProps - - Updated space propertiesprotected void setNewSpaceProperties(String spaceId, Map<String,String> spaceProperties)
public Map<String,org.duracloud.common.model.AclType> getSpaceACLs(String spaceId)
StorageProvidergetSpaceACLs in interface StorageProviderspaceId - - ID of the spacepublic void setSpaceACLs(String spaceId, Map<String,org.duracloud.common.model.AclType> spaceACLs)
StorageProvidersetSpaceACLs in interface StorageProviderspaceId - - ID of the spacespaceACLs - - Updated space ACL. Note, null or empty arg spaceACLs
will 'clear' the space ACLs.protected void throwIfSpaceExists(String spaceId)
protected void throwIfSpaceNotExist(String spaceId)
protected void throwIfSpaceNotExist(String spaceId, boolean wait)
public void deleteSpace(String spaceId)
deleteSpace in interface StorageProviderspaceId - - ID of the spacepublic StorageProviderBase.SpaceDeleteWorker getSpaceDeleteWorker(String spaceId)
Copyright © 2009-2012 DuraSpace. All Rights Reserved.