public class SpaceResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
SpaceResource(StorageProviderFactory storageProviderFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSpace(String spaceID,
Map<String,AclType> userACLs,
String storeID)
Adds a space.
|
void |
deleteSpace(String spaceID,
String storeID)
Deletes a space, removing all included content.
|
Map<String,AclType> |
getSpaceACLs(String spaceID,
String storeID)
Gets the ACLs of a space.
|
String |
getSpaceContents(String spaceID,
String storeID,
String prefix,
long maxResults,
String marker)
Gets a listing of the contents of a space.
|
Map<String,String> |
getSpaceProperties(String spaceID,
String storeID)
Gets the properties of a space.
|
String |
getSpaces(String storeID)
Provides a listing of all spaces for a customer.
|
void |
updateSpaceACLs(String spaceID,
Map<String,AclType> spaceACLs,
String storeID)
Updates the ACLs of a space.
|
public SpaceResource(StorageProviderFactory storageProviderFactory)
public String getSpaces(String storeID) throws ResourceException
storeID - ResourceExceptionpublic Map<String,String> getSpaceProperties(String spaceID, String storeID) throws ResourceException
spaceID - storeID - ResourceExceptionpublic Map<String,AclType> getSpaceACLs(String spaceID, String storeID) throws ResourceException
spaceID - storeID - ResourceExceptionpublic String getSpaceContents(String spaceID, String storeID, String prefix, long maxResults, String marker) throws ResourceException
spaceID - storeID - prefix - maxResults - marker - ResourceExceptionpublic void addSpace(String spaceID, Map<String,AclType> userACLs, String storeID) throws ResourceException, InvalidIdException
spaceID - storeID - ResourceExceptionInvalidIdExceptionpublic void updateSpaceACLs(String spaceID, Map<String,AclType> spaceACLs, String storeID) throws ResourceException
spaceID - spaceACLs - storeID - ResourceExceptionpublic void deleteSpace(String spaceID, String storeID) throws ResourceException
spaceID - storeID - ResourceExceptionCopyright © 2009-2013 DuraSpace. All Rights Reserved.