public class ModifyObject extends FedoraRequest<ModifyObject>
Constructor and Description |
---|
ModifyObject(String pid) |
Modifier and Type | Method and Description |
---|---|
FedoraResponse |
execute(FedoraClient fedora)
Execute this request using the supplied FedoraClient instance.
|
ModifyObject |
label(String label) |
ModifyObject |
lastModifiedDate(Date lastModifiedDate) |
ModifyObject |
lastModifiedDate(org.joda.time.DateTime lastModifiedDate) |
ModifyObject |
lastModifiedDate(String lastModifiedDate)
If provided, the server will use the supplied lastModifedDate to
prevent concurrent modifications, only performing the request if the
object has not been modified since the request-provided
lastModifiedDate.
|
ModifyObject |
logMessage(String logMessage) |
ModifyObject |
ownerId(String ownerId) |
ModifyObject |
state(String state) |
addHeader, addQueryParam, execute, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, isDefaultClientSet, removeHeader, resource, resource, resource, resource, setDefaultClient, setHeaders, xParam
public ModifyObject(String pid)
public ModifyObject label(String label)
public ModifyObject lastModifiedDate(org.joda.time.DateTime lastModifiedDate)
public ModifyObject lastModifiedDate(Date lastModifiedDate)
public ModifyObject lastModifiedDate(String lastModifiedDate)
If provided, the server will use the supplied lastModifedDate to prevent concurrent modifications, only performing the request if the object has not been modified since the request-provided lastModifiedDate. Otherwise, the request will fail with an HTTP 409 Conflict.
Typical usage would be to get the lastModifiedDate of an object before modification, and then to pass that date as part of the subsequent modify request, which would then only succeed if the object has not been already modified since.
Supported against Fedora 3.4.0 and later (with earlier versions, this parameter is ignored).
lastModifiedDate
- an xsd:dateTime string, e.g. 2001-12-31T12:50:01.000Zpublic ModifyObject logMessage(String logMessage)
public ModifyObject ownerId(String ownerId)
public ModifyObject state(String state)
public FedoraResponse execute(FedoraClient fedora) throws FedoraClientException
FedoraRequest
Execute this request using the supplied FedoraClient instance.
execute
in class FedoraRequest<ModifyObject>
fedora
- an instance of FedoraClientFedoraClientException
- if the HTTP status code of the response is
>= 400.Copyright © 2010-2013 MediaShelf. All Rights Reserved.