public class RevisionServiceClient extends MCSClient
| Constructor and Description |
|---|
RevisionServiceClient(String baseUrl)
Constructs a RevisionServiceClient
|
RevisionServiceClient(String baseUrl,
String username,
String password)
Creates instance of RevisionServiceClient.
|
| Modifier and Type | Method and Description |
|---|---|
URI |
addRevision(String cloudId,
String representationName,
String version,
eu.europeana.cloud.common.model.Revision revision)
add a revision
|
URI |
addRevision(String cloudId,
String representationName,
String version,
String revisionName,
String revisionProviderId,
Set<eu.europeana.cloud.common.utils.Tags> tags)
add a revision
|
URI |
addRevision(String cloudId,
String representationName,
String version,
String revisionName,
String revisionProviderId,
String tag)
add a revision
|
void |
useAuthorizationHeader(String headerValue) |
public RevisionServiceClient(String baseUrl)
baseUrl - url of the MCS Rest Servicepublic RevisionServiceClient(String baseUrl, String username, String password)
RevisionServiceClient(String)
but includes username and password to perform authenticated requests.baseUrl - URL of the MCS Rest Servicepublic void useAuthorizationHeader(String headerValue)
public URI addRevision(String cloudId, String representationName, String version, String revisionName, String revisionProviderId, String tag) throws DriverException, eu.europeana.cloud.service.mcs.exception.MCSException
cloudId - id of uploaded revision.representationName - representation name of uploaded revision.version - a specific version of the representation.revisionName - the name of revisionrevisionProviderId - revision provider idtag - flag tagDriverException - call to service has not succeeded because of server side error.eu.europeana.cloud.service.mcs.exception.MCSException - on unexpected situations.public URI addRevision(String cloudId, String representationName, String version, eu.europeana.cloud.common.model.Revision revision) throws DriverException, eu.europeana.cloud.service.mcs.exception.MCSException
cloudId - id of uploaded revision.representationName - representation name of uploaded revision.version - a specific version of the representation.revision - revisioneu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException - when representation does not exist in specified version.DriverException - call to service has not succeeded because of server side error.eu.europeana.cloud.service.mcs.exception.MCSException - on unexpected situations.public URI addRevision(String cloudId, String representationName, String version, String revisionName, String revisionProviderId, Set<eu.europeana.cloud.common.utils.Tags> tags) throws DriverException, eu.europeana.cloud.service.mcs.exception.MCSException
cloudId - cloud id of the record (required).representationName - schema of representation (required).version - a specific version of the representation(required).revisionName - the name of revision (required).revisionProviderId - revision provider id (required).tags - set of tags (acceptance,published,deleted)eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException - when representation does not exist in specified version.DriverException - call to service has not succeeded because of server side error.eu.europeana.cloud.service.mcs.exception.MCSException - on unexpected situations.Copyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.