public interface BinaryStorageClient
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(String binaryId)
Check if binary id is available in storage.
|
Map<String,byte[]> |
get(Stream<String> binaryIds)
Get map of binary ids to their contents.
|
InputStream |
get(String binaryId)
Get Input stream of content from binary storage.
|
Set<String> |
keys()
Get all binary ids from storage.
|
Set<String> |
keysStartingWith(String prefix)
Get all binary ids with provided prefix.
|
String |
put(String binaryId,
byte[] content)
Add content for binary id to storage.
|
boolean |
remove(String binaryId)
Remove content from storage by binary id.
|
String |
rename(String keyName,
String newKeyName)
Rename key in Binary Storage.
|
InputStream get(String binaryId)
binaryId
- content id.Map<String,byte[]> get(Stream<String> binaryIds)
binaryIds
- content ids.String put(String binaryId, byte[] content)
binaryId
- id of content.content
- content to insert to storage.String rename(String keyName, String newKeyName)
keyName
- previous key name.newKeyName
- new key name.boolean remove(String binaryId)
binaryId
- content id.true
if remove is successful.boolean containsKey(String binaryId)
binaryId
- id of content.true
if content is available in storage.Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries