public class PurgeDatastream extends FedoraRequest<PurgeDatastream>
Constructor and Description |
---|
PurgeDatastream(String pid,
String dsId) |
Modifier and Type | Method and Description |
---|---|
PurgeDatastream |
endDT(Date endDT) |
PurgeDatastream |
endDT(String endDT) |
PurgeDatastreamResponse |
execute()
Executes this request against the
FedoraRequest.DEFAULT_CLIENT |
PurgeDatastreamResponse |
execute(FedoraClient fedora)
Execute this request using the supplied FedoraClient instance.
|
PurgeDatastream |
logMessage(String logMessage) |
PurgeDatastream |
startDT(Date startDT) |
PurgeDatastream |
startDT(String startDT) |
addHeader, addQueryParam, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, isDefaultClientSet, removeHeader, resource, resource, resource, resource, setDefaultClient, setHeaders, xParam
public PurgeDatastream logMessage(String logMessage)
public PurgeDatastream startDT(String startDT)
startDT
- the (inclusive) start date-time stamp of the range. If not
specified, this is taken to be the lowest possible value, and thus, the
entire version history up to the endDT will be purged.public PurgeDatastream startDT(Date startDT)
public PurgeDatastream endDT(String endDT)
endDT
- the (inclusive) ending date-time stamp of the range. If not
specified, this is taken to be the greatest possible value, and thus, the
entire version history back to the startDT will be purged.public PurgeDatastream endDT(Date endDT)
public PurgeDatastreamResponse execute() throws FedoraClientException
FedoraRequest
Executes this request against the FedoraRequest.DEFAULT_CLIENT
execute
in class FedoraRequest<PurgeDatastream>
FedoraClientException
- if FedoraRequest.DEFAULT_CLIENT
is null
public PurgeDatastreamResponse execute(FedoraClient fedora) throws FedoraClientException
FedoraRequest
Execute this request using the supplied FedoraClient instance.
execute
in class FedoraRequest<PurgeDatastream>
fedora
- an instance of FedoraClientFedoraClientException
- if the HTTP status code of the response is
>= 400.Copyright © 2010-2013 MediaShelf. All Rights Reserved.