public class BatchDeleteDatastreams extends FedoraRequest<BatchDeleteDatastreams>
Builder for the BatchDeleteDatastreams method.
This provides support for the fedora-batch project, a set of batch API operations on Fedora. BatchDeleteDatastreams should be considered highly experimental: the API is very likely to change. You have been warned.
Constructor and Description |
---|
BatchDeleteDatastreams() |
Modifier and Type | Method and Description |
---|---|
BatchDeleteDatastreams |
dsids(Collection<String> dsids) |
BatchDeleteDatastreams |
dsids(String... dsids) |
BatchDeleteDatastreams |
endDT(Date endDT) |
BatchDeleteDatastreams |
endDT(String endDT) |
BatchResponse |
execute()
Executes this request against the
FedoraRequest.DEFAULT_CLIENT |
BatchResponse |
execute(FedoraClient fedora)
Execute this request using the supplied FedoraClient instance.
|
BatchDeleteDatastreams |
logMessage(String logMessage) |
BatchDeleteDatastreams |
pids(Collection<String> pids) |
BatchDeleteDatastreams |
pids(String... pids) |
BatchDeleteDatastreams |
startDT(Date startDT) |
BatchDeleteDatastreams |
startDT(String startDT) |
addHeader, addQueryParam, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, isDefaultClientSet, removeHeader, resource, resource, resource, resource, setDefaultClient, setHeaders, xParam
public BatchDeleteDatastreams pids(Collection<String> pids)
public BatchDeleteDatastreams pids(String... pids)
public BatchDeleteDatastreams dsids(Collection<String> dsids)
public BatchDeleteDatastreams dsids(String... dsids)
public BatchDeleteDatastreams 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 BatchDeleteDatastreams startDT(Date startDT)
public BatchDeleteDatastreams 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 BatchDeleteDatastreams endDT(Date endDT)
public BatchDeleteDatastreams logMessage(String logMessage)
public BatchResponse execute() throws FedoraClientException
FedoraRequest
Executes this request against the FedoraRequest.DEFAULT_CLIENT
execute
in class FedoraRequest<BatchDeleteDatastreams>
FedoraClientException
- if FedoraRequest.DEFAULT_CLIENT
is null
public BatchResponse execute(FedoraClient fedora) throws FedoraClientException
FedoraRequest
Execute this request using the supplied FedoraClient instance.
execute
in class FedoraRequest<BatchDeleteDatastreams>
fedora
- an instance of FedoraClientFedoraClientException
- if the HTTP status code of the response is
>= 400.Copyright © 2010-2013 MediaShelf. All Rights Reserved.