public interface DataSetService
| Modifier and Type | Method and Description |
|---|---|
void |
addAssignment(String providerId,
String dataSetId,
String recordId,
String schema,
String version)
Assigns a representation in predefined or latest version to a data set.
|
void |
addDataSetsRevisions(String providerId,
String dataSetId,
eu.europeana.cloud.common.model.Revision revision,
String representationName,
String cloudId)
Add information in additional table containing data sets cloud ids and revisions
|
void |
addLatestRevisionForGivenVersionInDataset(eu.europeana.cloud.common.model.DataSet dataSet,
eu.europeana.cloud.common.model.Representation representation,
eu.europeana.cloud.common.model.Revision revision)
Adds revision as a latest revision for given representation and dataset
|
eu.europeana.cloud.common.model.DataSet |
createDataSet(String providerId,
String dataSetId,
String description)
Creates a new data set for specified provider.
|
void |
deleteDataSet(String providerId,
String dataSetId)
Deletes data set.
|
Set<String> |
getAllDataSetRepresentationsNames(String providerId,
String dataSetId)
Lists all representations names that are included in given dataSet
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.response.CloudVersionRevisionResponse> |
getDataSetCloudIdsByRepresentationPublished(String dataSetId,
String providerId,
String representationName,
Date dateFrom,
String startFrom,
int numberOfElementsPerPage)
Lists all cloud identifiers that belong to data set from the specified provider and have revision timestamp bigger than the specified date and tag as specified.
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.DataSet> |
getDataSets(String providerId,
String thresholdDatasetId,
int limit)
Returns all data sets for particular data provider (in slices).
|
Map<String,Set<String>> |
getDataSets(String cloudId,
String representationName,
String version)
Returns all data sets for particular version.
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.response.CloudTagsResponse> |
getDataSetsRevisions(String providerId,
String dataSetId,
String revisionProviderId,
String revisionName,
Date revisionTimestamp,
String representationName,
String startFrom,
int limit)
Lists all cloudId that are included in given dataSet for given revisionId and representationName.
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.CloudIdAndTimestampResponse> |
getLatestDataSetCloudIdByRepresentationAndRevision(String dataSetId,
String providerId,
String revisionName,
String revisionProvider,
String representationName,
String startFrom,
Boolean isDeleted,
int numberOfElementsPerPage)
get a list of the latest cloud identifiers,revision timestamps that belong to data set of a specified provider for a specific representation and revision.
|
String |
getLatestVersionForGivenRevision(String dataSetId,
String providerId,
String cloudId,
String representationName,
String revisionName,
String revisionProviderId)
Gives versionId of specified record (cloudId with representation name) that has latest revision
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.Representation> |
listDataSet(String providerId,
String dataSetId,
String thresholdParam,
int limit)
Returns all representations from particular data set (in slices).
|
void |
removeAssignment(String providerId,
String dataSetId,
String recordId,
String schema,
String versionId)
Removes representation assignment from data set.
|
void |
updateAllRevisionDatasetsEntries(String globalId,
String schema,
String version,
eu.europeana.cloud.common.model.Revision revision)
Inserts information to the all the tables which has dataset and revisions entries
|
eu.europeana.cloud.common.model.DataSet |
updateDataSet(String providerId,
String dataSetId,
String description)
Updates description of data set.
|
void |
updateProviderDatasetRepresentation(String globalId,
String schema,
String version,
eu.europeana.cloud.common.model.Revision revision)
Inserts information to the table used to search for cloud ids assigned to a dataset having specific representation, revisions with published tag and update timestamp bigger that specified.
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.Representation> listDataSet(String providerId, String dataSetId, String thresholdParam, int limit) throws DataSetNotExistsException
providerId - provider's (owner of data set) id.dataSetId - data set idthresholdParam - if null - will return first result slice. Result slices contain token for next pages, which should be
provided in this parameter.limit - max number of results in one slice.DataSetNotExistsException - dataset not exists.void addAssignment(String providerId, String dataSetId, String recordId, String schema, String version) throws DataSetNotExistsException, RepresentationNotExistsException
providerId - owner of data setdataSetId - data set idrecordId - id of recordschema - schema name of representationversion - version of representatnion (if null, the latest persistent version is assigned to a data set)DataSetNotExistsException - if such data set not existsRepresentationNotExistsException - if such representation does not exist. May be also thrown if version is not provided and no
persistent representation version exist for specified schema and record.void removeAssignment(String providerId, String dataSetId, String recordId, String schema, String versionId) throws DataSetNotExistsException
providerId - owner of data setdataSetId - data set idrecordId - id of recordschema - schema name of representationDataSetNotExistsException - if such data set not existseu.europeana.cloud.common.model.DataSet createDataSet(String providerId, String dataSetId, String description) throws ProviderNotExistsException, DataSetAlreadyExistsException
providerId - owner of data setdataSetId - identifier of newly created data setdescription - description of newly created data set (may be any text)ProviderNotExistsException - no such data provider existsDataSetAlreadyExistsException - data set with this identifer has already been created for this providereu.europeana.cloud.common.model.DataSet updateDataSet(String providerId, String dataSetId, String description) throws DataSetNotExistsException
providerId - owner of data setdataSetId - identifier of newly created data setdescription - new description of data set (may be any text)DataSetNotExistsExceptioneu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.DataSet> getDataSets(String providerId, String thresholdDatasetId, int limit)
providerId - provider id.thresholdDatasetId - if null - will return first result slice. Result slices contain token for next pages, which should be
provided in this parameter.limit - max number of results in one slice.Map<String,Set<String>> getDataSets(String cloudId, String representationName, String version)
cloudId - cloud IdrepresentationName - representation nameversion - versionvoid deleteDataSet(String providerId, String dataSetId) throws DataSetNotExistsException
providerId - provider iddataSetId - data set id.DataSetNotExistsException - no such data set exists (data provider does not have one or data provider not exist)Set<String> getAllDataSetRepresentationsNames(String providerId, String dataSetId) throws ProviderNotExistsException, DataSetNotExistsException
providerId - dataset ovner id (provider id)dataSetId - dataSet idProviderNotExistsExceptionDataSetNotExistsExceptioneu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.response.CloudTagsResponse> getDataSetsRevisions(String providerId, String dataSetId, String revisionProviderId, String revisionName, Date revisionTimestamp, String representationName, String startFrom, int limit) throws ProviderNotExistsException, DataSetNotExistsException
providerId - dataSet ownerdataSetId - dataSet idrevisionProviderId - revision provider idrevisionName - revision namerevisionTimestamp - revision timestamprepresentationName - representation namestartFrom - if null - will return first result slice. Result slices contain token for next pages, which should be
provided in this parameter.limit - max number of results in one slice.ProviderNotExistsExceptionDataSetNotExistsExceptionvoid addDataSetsRevisions(String providerId, String dataSetId, eu.europeana.cloud.common.model.Revision revision, String representationName, String cloudId) throws ProviderNotExistsException
providerId - data provider iddataSetId - dataset idrevision - revision objectrepresentationName - representation namecloudId - cloud idProviderNotExistsExceptioneu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.response.CloudVersionRevisionResponse> getDataSetCloudIdsByRepresentationPublished(String dataSetId, String providerId, String representationName, Date dateFrom, String startFrom, int numberOfElementsPerPage) throws ProviderNotExistsException, DataSetNotExistsException
dataSetId - data set identifierproviderId - provider identifierrepresentationName - representation namedateFrom - date of latest revisionstartFrom - cloudId to start fromnumberOfElementsPerPage - number of elements in a sliceProviderNotExistsExceptionDataSetNotExistsExceptionRepresentationNotExistsExceptioneu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.CloudIdAndTimestampResponse> getLatestDataSetCloudIdByRepresentationAndRevision(String dataSetId, String providerId, String revisionName, String revisionProvider, String representationName, String startFrom, Boolean isDeleted, int numberOfElementsPerPage) throws ProviderNotExistsException, DataSetNotExistsException
dataSetId - data set identifierproviderId - provider identifierrepresentationName - representation namerevisionName - revision namerevisionProvider - revision providerstartFrom - cloudId to start fromisDeleted - is marked deletednumberOfElementsPerPage - number of elements in a sliceProviderNotExistsExceptionDataSetNotExistsExceptionvoid updateAllRevisionDatasetsEntries(String globalId, String schema, String version, eu.europeana.cloud.common.model.Revision revision) throws RepresentationNotExistsException
globalId - cloud identifierschema - representation nameversion - version identifierrevision - revision object containing necessary info (name, timestamp, tags)RepresentationNotExistsExceptionString getLatestVersionForGivenRevision(String dataSetId, String providerId, String cloudId, String representationName, String revisionName, String revisionProviderId) throws DataSetNotExistsException
dataSetId - dataset identifierproviderId - dataset ownercloudId - representation cloud identifierrepresentationName - representation namerevisionName - revision namerevisionProviderId - revision ownerDataSetNotExistsExceptionvoid addLatestRevisionForGivenVersionInDataset(eu.europeana.cloud.common.model.DataSet dataSet,
eu.europeana.cloud.common.model.Representation representation,
eu.europeana.cloud.common.model.Revision revision)
dataSet - representation - revision - void updateProviderDatasetRepresentation(String globalId, String schema, String version, eu.europeana.cloud.common.model.Revision revision) throws RepresentationNotExistsException
globalId - cloud identifierschema - representation nameversion - version identifierrevision - revision object containing necessary info (name, timestamp, tags)RepresentationNotExistsExceptionCopyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.