public class ObjectStorageObjectServiceImpl extends BaseObjectStorageService implements ObjectStorageObjectService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
ObjectStorageObjectServiceImpl() |
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
|
isResponseSuccess, isResponseSuccess
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public List<? extends SwiftObject> list(String containerName)
ObjectStorageObjectService
list
in interface ObjectStorageObjectService
containerName
- the container namepublic List<? extends SwiftObject> list(String containerName, ObjectListOptions options)
ObjectStorageObjectService
list
in interface ObjectStorageObjectService
containerName
- the container nameoptions
- additional filter based optionspublic SwiftObject get(ObjectLocation location)
location
get
in interface ObjectStorageObjectService
location
- the object locationpublic SwiftObject get(String containerName, String name)
containerName
and name
of the objectget
in interface ObjectStorageObjectService
containerName
- the objects container namename
- the name of the objectpublic String put(String containerName, String name, Payload<?> payload)
put
in interface ObjectStorageObjectService
containerName
- the container namename
- the name of the filepayload
- the file payloadpublic String put(String containerName, String name, Payload<?> payload, ObjectPutOptions options)
put
in interface ObjectStorageObjectService
containerName
- the container namename
- the name of the filepayload
- the file payloadoptions
- extended options to associate with this objectpublic ActionResponse delete(String containerName, String name)
ObjectStorageObjectService
delete
in interface ObjectStorageObjectService
containerName
- the container namename
- the name of the object (full path if directories are used)public ActionResponse delete(ObjectLocation location)
ObjectStorageObjectService
delete
in interface ObjectStorageObjectService
location
- location containing container name and object namepublic ActionResponse delete(ObjectLocation location, ObjectDeleteOptions options)
ObjectStorageObjectService
delete
in interface ObjectStorageObjectService
location
- location containing container name and object nameoptions
- the deleting optionspublic String copy(ObjectLocation source, ObjectLocation dest)
copy
in interface ObjectStorageObjectService
source
- the source container and object namedest
- the destination container and object namepublic Map<String,String> getMetadata(ObjectLocation location)
ObjectStorageObjectService
getMetadata
in interface ObjectStorageObjectService
location
- the object locationpublic Map<String,String> getMetadata(String containerName, String name)
ObjectStorageObjectService
getMetadata
in interface ObjectStorageObjectService
containerName
- the container namename
- the object namepublic boolean updateMetadata(ObjectLocation location, Map<String,String> metadata)
ObjectStorageObjectService
updateMetadata
in interface ObjectStorageObjectService
location
- the location of the object to create/update metadatametadata
- the metadatapublic DLPayload download(String containerName, String name)
ObjectStorageObjectService
containerName
and name
download
in interface ObjectStorageObjectService
containerName
- the container namename
- the object namepublic DLPayload download(String containerName, String name, DownloadOptions options)
ObjectStorageObjectService
containerName
and name
download
in interface ObjectStorageObjectService
containerName
- the container namename
- the object nameoptions
- the download optionspublic DLPayload download(ObjectLocation location, DownloadOptions options)
ObjectStorageObjectService
location
download
in interface ObjectStorageObjectService
location
- the object locationoptions
- the download optionsCopyright © 2017. All rights reserved.