|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.rest.BaseRestResource
org.fcrepo.server.rest.FedoraObjectResource
public class FedoraObjectResource
Implement /objects/pid/* REST API
| Field Summary |
|---|
| Fields inherited from class org.fcrepo.server.rest.BaseRestResource |
|---|
apiAService, apiMService, datastreamFilenameHelper, fedoraServer, fedoraServerHost, FORM, headers, HTML, mapper, servletRequest, TEXT_HTML, TEXT_XML, uriInfo, XML, ZIP |
| Constructor Summary | |
|---|---|
FedoraObjectResource()
|
|
| Method Summary | |
|---|---|
javax.ws.rs.core.Response |
createObject(javax.ws.rs.core.HttpHeaders headers,
String pid,
String label,
String logMessage,
String format,
String encoding,
String namespace,
String ownerID,
String state,
boolean ignoreMime)
Create/Update a new digital object. |
javax.ws.rs.core.Response |
deleteObject(String pid,
String logMessage)
Permanently removes an object from the repository. |
javax.ws.rs.core.Response |
doObjectValidation(String pid,
String dateTime)
|
javax.ws.rs.core.Response |
getObjectExport(String pid,
String format,
String exportContext,
String encoding)
Exports the entire digital object in the specified XML format ("info:fedora/fedora-system:FOXML-1.1" or "info:fedora/fedora-system:METSFedoraExt-1.1"), and encoded appropriately for the specified export context ("public", "migrate", or "archive"). |
javax.ws.rs.core.Response |
getObjectHistory(String pid,
String format)
Gets a list of timestamps indicating when components changed in an object. |
javax.ws.rs.core.Response |
getObjectProfile(String pid,
String dateTime,
String format)
Gets a profile of the object which includes key metadata fields and URLs for the object Dissemination Index and the object Item Index. |
javax.ws.rs.core.Response |
getObjectXML(String pid)
Gets a profile of the object which includes key metadata fields and URLs for the object Dissemination Index and the object Item Index. |
javax.ws.rs.core.Response |
updateObject(String pid,
String label,
String logMessage,
String ownerID,
String state,
DateTimeParam lastModifiedDate)
Update (modify) digital object. |
| Methods inherited from class org.fcrepo.server.rest.BaseRestResource |
|---|
buildResponse, getContext, getSerializer, handleException, transform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FedoraObjectResource()
| Method Detail |
|---|
public javax.ws.rs.core.Response doObjectValidation(String pid,
String dateTime)
public javax.ws.rs.core.Response getObjectExport(String pid,
String format,
String exportContext,
String encoding)
public javax.ws.rs.core.Response getObjectHistory(String pid,
String format)
public javax.ws.rs.core.Response getObjectXML(String pid)
public javax.ws.rs.core.Response getObjectProfile(String pid,
String dateTime,
String format)
public javax.ws.rs.core.Response deleteObject(String pid,
String logMessage)
public javax.ws.rs.core.Response createObject(@Context
javax.ws.rs.core.HttpHeaders headers,
String pid,
String label,
String logMessage,
String format,
String encoding,
String namespace,
String ownerID,
String state,
boolean ignoreMime)
public javax.ws.rs.core.Response updateObject(String pid,
String label,
String logMessage,
String ownerID,
String state,
DateTimeParam lastModifiedDate)
PUT /objects/{pid} ? label logMessage ownerId state lastModifiedDate
pid - the persistent identifierlabel - logMessage - ownerID - state - lastModifiedDate - Optional XSD dateTime to guard against concurrent
modification. If provided (i.e. not null), the request will fail with an
HTTP 409 Conflict if lastModifiedDate is earlier than the object's
lastModifiedDate.
org.fcrepo.server.management.Management#modifyObject(org.fcrepo.server.Context, String, String, String, String, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||