@Component public class FedoraObjectsResource extends BaseRestResource
APP_ZIP, FORM, HTML, m_access, m_datastreamFilenameHelper, m_headers, m_hostname, m_management, m_mapper, m_server, m_servletRequest, m_templates, m_uriInfo, TEXT_HTML, TEXT_XML, VALID_PID_PART, XML, ZIP| Constructor and Description |
|---|
FedoraObjectsResource(Server server) |
| Modifier and Type | Method and Description |
|---|---|
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,
boolean flash)
Create/Update a new digital object.
|
javax.ws.rs.core.Response |
deleteObject(String pid,
String logMessage,
boolean flash)
Permanently removes an object from the repository.
|
javax.ws.rs.core.Response |
doObjectValidation(String pid,
String dateTime,
boolean flash) |
javax.ws.rs.core.Response |
getNextPID(int numPIDS,
String namespace,
String format,
boolean flash)
Implements the "getNextPID" functionality of the Fedora Management LITE
(API-M-LITE) interface using a java servlet front end.
|
javax.ws.rs.core.Response |
getObjectExport(String pid,
String format,
String exportContext,
String encoding,
boolean flash)
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,
boolean flash)
Gets a list of timestamps indicating when components changed in an
object.
|
javax.ws.rs.core.Response |
getObjectProfile(String pid,
String dateTime,
String format,
boolean flash)
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,
boolean flash)
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 |
newObject(javax.ws.rs.core.HttpHeaders headers,
String label,
String logMessage,
String format,
String encoding,
String namespace,
String ownerID,
String state,
boolean ignoreMime,
boolean flash) |
javax.ws.rs.core.Response |
searchObjects(String terms,
String query,
int maxResults,
String sessionToken,
String format,
boolean flash) |
javax.ws.rs.core.Response |
updateObject(String pid,
String label,
String logMessage,
String ownerID,
String state,
DateTimeParam lastModifiedDate,
boolean flash)
Update (modify) digital object.
|
buildResponse, getContext, getSerializer, handleException, transformpublic FedoraObjectsResource(Server server)
public javax.ws.rs.core.Response searchObjects(String terms, String query, int maxResults, String sessionToken, String format, boolean flash)
public javax.ws.rs.core.Response getNextPID(int numPIDS,
String namespace,
String format,
boolean flash)
throws Exception
Exceptionpublic javax.ws.rs.core.Response doObjectValidation(String pid, String dateTime, boolean flash)
public javax.ws.rs.core.Response getObjectExport(String pid, String format, String exportContext, String encoding, boolean flash)
public javax.ws.rs.core.Response getObjectHistory(String pid, String format, boolean flash)
public javax.ws.rs.core.Response getObjectXML(String pid, boolean flash)
public javax.ws.rs.core.Response getObjectProfile(String pid, String dateTime, String format, boolean flash)
public javax.ws.rs.core.Response deleteObject(String pid, String logMessage, boolean flash)
public javax.ws.rs.core.Response newObject(@Context
javax.ws.rs.core.HttpHeaders headers,
String label,
String logMessage,
String format,
String encoding,
String namespace,
String ownerID,
String state,
boolean ignoreMime,
boolean flash)
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,
boolean flash)
public javax.ws.rs.core.Response updateObject(String pid, String label, String logMessage, String ownerID, String state, DateTimeParam lastModifiedDate, boolean flash)
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)Copyright © 2013 DuraSpace. All Rights Reserved.