@Service public class CassandraRecordService extends Object implements eu.europeana.cloud.service.mcs.RecordService
| Constructor and Description |
|---|
CassandraRecordService() |
| Modifier and Type | Method and Description |
|---|---|
eu.europeana.cloud.common.model.Representation |
copyRepresentation(String globalId,
String schema,
String version) |
eu.europeana.cloud.common.model.Representation |
createRepresentation(String cloudId,
String representationName,
String providerId) |
void |
deleteContent(String globalId,
String schema,
String version,
String fileName) |
void |
deleteRecord(String cloudId) |
void |
deleteRepresentation(String globalId,
String schema) |
void |
deleteRepresentation(String globalId,
String schema,
String version) |
void |
getContent(String globalId,
String schema,
String version,
String fileName,
long rangeStart,
long rangeEnd,
OutputStream os) |
String |
getContent(String globalId,
String schema,
String version,
String fileName,
OutputStream os) |
eu.europeana.cloud.common.model.File |
getFile(String globalId,
String schema,
String version,
String fileName) |
eu.europeana.cloud.common.model.Record |
getRecord(String cloudId) |
eu.europeana.cloud.common.model.Representation |
getRepresentation(String globalId,
String schema) |
eu.europeana.cloud.common.model.Representation |
getRepresentation(String globalId,
String schema,
String version) |
List<eu.europeana.cloud.common.model.Representation> |
listRepresentationVersions(String globalId,
String schema) |
eu.europeana.cloud.common.model.Representation |
persistRepresentation(String globalId,
String schema,
String version) |
boolean |
putContent(String globalId,
String schema,
String version,
eu.europeana.cloud.common.model.File file,
InputStream content) |
public eu.europeana.cloud.common.model.Record getRecord(String cloudId) throws eu.europeana.cloud.service.mcs.exception.RecordNotExistsException
getRecord in interface eu.europeana.cloud.service.mcs.RecordServiceeu.europeana.cloud.service.mcs.exception.RecordNotExistsExceptionpublic void deleteRecord(String cloudId) throws eu.europeana.cloud.service.mcs.exception.RecordNotExistsException, eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException
deleteRecord in interface eu.europeana.cloud.service.mcs.RecordServiceeu.europeana.cloud.service.mcs.exception.RecordNotExistsExceptioneu.europeana.cloud.service.mcs.exception.RepresentationNotExistsExceptionpublic void deleteRepresentation(String globalId, String schema) throws eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException
deleteRepresentation in interface eu.europeana.cloud.service.mcs.RecordServiceeu.europeana.cloud.service.mcs.exception.RepresentationNotExistsExceptionpublic eu.europeana.cloud.common.model.Representation createRepresentation(String cloudId, String representationName, String providerId) throws eu.europeana.cloud.service.mcs.exception.ProviderNotExistsException, eu.europeana.cloud.service.mcs.exception.RecordNotExistsException
createRepresentation in interface eu.europeana.cloud.service.mcs.RecordServiceeu.europeana.cloud.service.mcs.exception.ProviderNotExistsExceptioneu.europeana.cloud.service.mcs.exception.RecordNotExistsExceptionpublic eu.europeana.cloud.common.model.Representation getRepresentation(String globalId, String schema) throws eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException
getRepresentation in interface eu.europeana.cloud.service.mcs.RecordServiceeu.europeana.cloud.service.mcs.exception.RepresentationNotExistsExceptionpublic eu.europeana.cloud.common.model.Representation getRepresentation(String globalId, String schema, String version) throws eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException
getRepresentation in interface eu.europeana.cloud.service.mcs.RecordServiceeu.europeana.cloud.service.mcs.exception.RepresentationNotExistsExceptionpublic void deleteRepresentation(String globalId, String schema, String version) throws eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException, eu.europeana.cloud.service.mcs.exception.CannotModifyPersistentRepresentationException
deleteRepresentation in interface eu.europeana.cloud.service.mcs.RecordServiceeu.europeana.cloud.service.mcs.exception.RepresentationNotExistsExceptioneu.europeana.cloud.service.mcs.exception.CannotModifyPersistentRepresentationExceptionpublic eu.europeana.cloud.common.model.Representation persistRepresentation(String globalId, String schema, String version) throws eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException, eu.europeana.cloud.service.mcs.exception.CannotModifyPersistentRepresentationException, eu.europeana.cloud.service.mcs.exception.CannotPersistEmptyRepresentationException
persistRepresentation in interface eu.europeana.cloud.service.mcs.RecordServiceeu.europeana.cloud.service.mcs.exception.RepresentationNotExistsExceptioneu.europeana.cloud.service.mcs.exception.CannotModifyPersistentRepresentationExceptioneu.europeana.cloud.service.mcs.exception.CannotPersistEmptyRepresentationExceptionpublic List<eu.europeana.cloud.common.model.Representation> listRepresentationVersions(String globalId, String schema) throws eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException
listRepresentationVersions in interface eu.europeana.cloud.service.mcs.RecordServiceeu.europeana.cloud.service.mcs.exception.RepresentationNotExistsExceptionpublic boolean putContent(String globalId, String schema, String version, eu.europeana.cloud.common.model.File file, InputStream content) throws eu.europeana.cloud.service.mcs.exception.CannotModifyPersistentRepresentationException, eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException
putContent in interface eu.europeana.cloud.service.mcs.RecordServiceeu.europeana.cloud.service.mcs.exception.CannotModifyPersistentRepresentationExceptioneu.europeana.cloud.service.mcs.exception.RepresentationNotExistsExceptionpublic void getContent(String globalId, String schema, String version, String fileName, long rangeStart, long rangeEnd, OutputStream os) throws eu.europeana.cloud.service.mcs.exception.FileNotExistsException, eu.europeana.cloud.service.mcs.exception.WrongContentRangeException, eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException
getContent in interface eu.europeana.cloud.service.mcs.RecordServiceeu.europeana.cloud.service.mcs.exception.FileNotExistsExceptioneu.europeana.cloud.service.mcs.exception.WrongContentRangeExceptioneu.europeana.cloud.service.mcs.exception.RepresentationNotExistsExceptionpublic String getContent(String globalId, String schema, String version, String fileName, OutputStream os) throws eu.europeana.cloud.service.mcs.exception.FileNotExistsException, eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException
getContent in interface eu.europeana.cloud.service.mcs.RecordServiceeu.europeana.cloud.service.mcs.exception.FileNotExistsExceptioneu.europeana.cloud.service.mcs.exception.RepresentationNotExistsExceptionpublic void deleteContent(String globalId, String schema, String version, String fileName) throws eu.europeana.cloud.service.mcs.exception.FileNotExistsException, eu.europeana.cloud.service.mcs.exception.CannotModifyPersistentRepresentationException, eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException
deleteContent in interface eu.europeana.cloud.service.mcs.RecordServiceeu.europeana.cloud.service.mcs.exception.FileNotExistsExceptioneu.europeana.cloud.service.mcs.exception.CannotModifyPersistentRepresentationExceptioneu.europeana.cloud.service.mcs.exception.RepresentationNotExistsExceptionpublic eu.europeana.cloud.common.model.Representation copyRepresentation(String globalId, String schema, String version) throws eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException
copyRepresentation in interface eu.europeana.cloud.service.mcs.RecordServiceeu.europeana.cloud.service.mcs.exception.RepresentationNotExistsExceptionpublic eu.europeana.cloud.common.model.File getFile(String globalId, String schema, String version, String fileName) throws eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException, eu.europeana.cloud.service.mcs.exception.FileNotExistsException
getFile in interface eu.europeana.cloud.service.mcs.RecordServiceeu.europeana.cloud.service.mcs.exception.RepresentationNotExistsExceptioneu.europeana.cloud.service.mcs.exception.FileNotExistsExceptionCopyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.