public interface ObjectStorageObjectService extends RestService
Modifier and Type | Method and Description |
---|---|
String |
copy(ObjectLocation source,
ObjectLocation dest)
Copies an object to another object in the object store
|
ActionResponse |
delete(ObjectLocation location)
Deletes an Object from the specified container
|
ActionResponse |
delete(ObjectLocation location,
ObjectDeleteOptions options)
Deletes an Object from the specified container
|
ActionResponse |
delete(String containerName,
String name)
Deletes an Object from the specified container
|
DLPayload |
download(ObjectLocation location,
DownloadOptions options)
Retrieves the Payload for the data backing the given
location |
DLPayload |
download(String containerName,
String name)
Retrieves the Payload for the data backing the given
containerName and name |
DLPayload |
download(String containerName,
String name,
DownloadOptions options)
Retrieves the Payload for the data backing the given
containerName and name |
SwiftObject |
get(ObjectLocation location)
Gets the specified object based on the ObjectLocation
location |
SwiftObject |
get(String containerName,
String name)
Gets the specified object based on the
containerName and name of the object |
Map<String,String> |
getMetadata(ObjectLocation location)
Gets the metadata for the specified object location
|
Map<String,String> |
getMetadata(String containerName,
String name)
|
List<? extends SwiftObject> |
list(String containerName)
Lists all objects for the given container name
|
List<? extends SwiftObject> |
list(String containerName,
ObjectListOptions options)
Lists all objects for the given container name and list options
|
String |
put(String containerName,
String name,
Payload<?> payload)
Adds/Updates a file to the specified container
|
String |
put(String containerName,
String name,
Payload<?> payload,
ObjectPutOptions options)
Adds/Updates a file to the specified container
|
boolean |
updateMetadata(ObjectLocation location,
Map<String,String> metadata)
Creates or Updates the given metadata for the specified object location
|
List<? extends SwiftObject> list(String containerName)
containerName
- the container nameList<? extends SwiftObject> list(String containerName, ObjectListOptions options)
containerName
- the container nameoptions
- additional filter based optionsSwiftObject get(ObjectLocation location)
location
location
- the object locationSwiftObject get(String containerName, String name)
containerName
and name
of the objectcontainerName
- the objects container namename
- the name of the objectString put(String containerName, String name, Payload<?> payload)
containerName
- the container namename
- the name of the filepayload
- the file payloadString put(String containerName, String name, Payload<?> payload, ObjectPutOptions options)
containerName
- the container namename
- the name of the filepayload
- the file payloadoptions
- extended options to associate with this objectDLPayload download(String containerName, String name)
containerName
and name
containerName
- the container namename
- the object nameDLPayload download(String containerName, String name, DownloadOptions options)
containerName
and name
containerName
- the container namename
- the object nameoptions
- the download optionsDLPayload download(ObjectLocation location, DownloadOptions options)
location
location
- the object locationoptions
- the download optionsActionResponse delete(String containerName, String name)
containerName
- the container namename
- the name of the object (full path if directories are used)ActionResponse delete(ObjectLocation location)
location
- location containing container name and object nameActionResponse delete(ObjectLocation location, ObjectDeleteOptions options)
location
- location containing container name and object nameoptions
- the deleting optionsString copy(ObjectLocation source, ObjectLocation dest)
source
- the source container and object namedest
- the destination container and object nameMap<String,String> getMetadata(ObjectLocation location)
location
- the object locationMap<String,String> getMetadata(String containerName, String name)
containerName
- the container namename
- the object nameboolean updateMetadata(ObjectLocation location, Map<String,String> metadata)
location
- the location of the object to create/update metadatametadata
- the metadataCopyright © 2017. All rights reserved.