Package org.duracloud.durastore.rest
Class SpaceResource
java.lang.Object
org.duracloud.durastore.rest.SpaceResource
Provides interaction with spaces
- Author:
- Bill Branan
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a space.voiddeleteSpace(String spaceID, String storeID) Deletes a space, removing all included content.getSpaceACLs(String spaceID, String storeID) Gets the ACLs of a space.getSpaceContents(String spaceID, String storeID, String prefix, long maxResults, String marker) Gets a listing of the contents of a space.getSpaceProperties(String spaceID, String storeID) Gets the properties of a space.Provides a listing of all spaces for a customer.voidUpdates the ACLs of a space.
-
Field Details
-
log
protected static final org.slf4j.Logger log
-
-
Constructor Details
-
SpaceResource
-
-
Method Details
-
getSpaces
Provides a listing of all spaces for a customer. Open spaces are always included in the list, closed spaces are included based on user authorization.- Parameters:
storeID-- Returns:
- XML listing of spaces
- Throws:
ResourceException
-
getSpaceProperties
public Map<String,String> getSpaceProperties(String spaceID, String storeID) throws ResourceException Gets the properties of a space.- Parameters:
spaceID-storeID-- Returns:
- Map of space properties
- Throws:
ResourceException
-
getSpaceACLs
Gets the ACLs of a space.- Parameters:
spaceID-storeID-- Returns:
- Map of space ACLs
- Throws:
ResourceException
-
getSpaceContents
public String getSpaceContents(String spaceID, String storeID, String prefix, long maxResults, String marker) throws ResourceException Gets a listing of the contents of a space.- Parameters:
spaceID-storeID-prefix-maxResults-marker-- Returns:
- XML listing of space contents
- Throws:
ResourceException
-
addSpace
public void addSpace(String spaceID, Map<String, AclType> userACLs, String storeID) throws ResourceException, InvalidIdExceptionAdds a space.- Parameters:
spaceID-storeID-- Throws:
ResourceExceptionInvalidIdException
-
updateSpaceACLs
public void updateSpaceACLs(String spaceID, Map<String, AclType> spaceACLs, String storeID) throws ResourceExceptionUpdates the ACLs of a space.- Parameters:
spaceID-spaceACLs-storeID-- Throws:
ResourceException
-
deleteSpace
Deletes a space, removing all included content.- Parameters:
spaceID-storeID-- Throws:
ResourceException
-