public interface MediaStorageService
| Modifier and Type | Method and Description |
|---|---|
Boolean |
checkIfExists(String id)
Checks if a particular file with the provided id is present in the media storage
|
byte[] |
convertPayloadToByteArray(org.jclouds.io.Payload payload)
Helper class to convert payload to an array of bytes
|
void |
createOrModify(MediaFile file)
Deprecated.
September 2018, no longer needed/required
|
void |
delete(String id)
Deprecated.
September 2018, no longer needed/required
|
MediaFile |
retrieveAsMediaFile(String id,
String originalUrl,
boolean withContent)
Retrieves a file from media storage with or without the content.
|
eu.europeana.domain.StorageObject |
retrieveAsStorageObject(String id,
boolean withContent)
Retrieves a file from media storage with or without the content.
|
byte[] |
retrieveContent(String id)
Retrieves only the content of a media file (so no metadata)
|
eu.europeana.domain.ObjectMetadata |
retrieveMetaData(String id)
Retrieves only the metadata of a media file
|
Boolean checkIfExists(String id)
id - the id of the fileMediaFile retrieveAsMediaFile(String id, String originalUrl, boolean withContent)
id - the id of the fileoriginalUrl - withContent - boolean which indicates whether the actual contents should be retrieved, or
only the metadata of the fileeu.europeana.domain.StorageObject retrieveAsStorageObject(String id, boolean withContent)
id - the id of the filewithContent - boolean which indicates whether the actual contents should be retrieved, or
only the metadata of the filebyte[] convertPayloadToByteArray(org.jclouds.io.Payload payload)
throws IOException
payload - IOExceptionbyte[] retrieveContent(String id)
id - the id of the fileeu.europeana.domain.ObjectMetadata retrieveMetaData(String id)
id - the id of the file@Deprecated void createOrModify(MediaFile file)
file - the new/modified MediaFile@Deprecated void delete(String id)
id - the id of the fileCopyright © 2019 Europeana Foundation. All rights reserved.