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
- ResourceException
public Map<String,String> getSpaceProperties(String spaceID, String storeID) throws ResourceException
spaceID
- storeID
- ResourceException
public Map<String,AclType> getSpaceACLs(String spaceID, String storeID) throws ResourceException
spaceID
- storeID
- ResourceException
public String getSpaceContents(String spaceID, String storeID, String prefix, long maxResults, String marker) throws ResourceException
spaceID
- storeID
- prefix
- maxResults
- marker
- ResourceException
public void addSpace(String spaceID, Map<String,AclType> userACLs, String storeID) throws ResourceException, InvalidIdException
spaceID
- storeID
- ResourceException
InvalidIdException
public void updateSpaceACLs(String spaceID, Map<String,AclType> spaceACLs, String storeID) throws ResourceException
spaceID
- spaceACLs
- storeID
- ResourceException
public void deleteSpace(String spaceID, String storeID) throws ResourceException
spaceID
- storeID
- ResourceException
Copyright © 2009–2014 DuraSpace. All rights reserved.