org.fcrepo.server.rest
Class FedoraObjectSearchResource
java.lang.Object
org.fcrepo.server.rest.BaseRestResource
org.fcrepo.server.rest.FedoraObjectSearchResource
public class FedoraObjectSearchResource
- extends BaseRestResource
Implement /objects REST API (search)
GET /objects ? terms query sessionToken maxResults format
- Version:
- $Id$
- Author:
- cuong.tran@yourmediashelf.com
| 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 |
|
Method Summary |
javax.ws.rs.core.Response |
getNextPID(int numPIDS,
String namespace,
String format)
Implements the "getNextPID" functionality of the Fedora Management LITE
(API-M-LITE) interface using a java servlet front end. |
javax.ws.rs.core.Response |
searchObjects(String terms,
String query,
int maxResults,
String sessionToken,
String format)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FedoraObjectSearchResource
public FedoraObjectSearchResource()
searchObjects
public javax.ws.rs.core.Response searchObjects(String terms,
String query,
int maxResults,
String sessionToken,
String format)
getNextPID
public javax.ws.rs.core.Response getNextPID(int numPIDS,
String namespace,
String format)
throws Exception
- Implements the "getNextPID" functionality of the Fedora Management LITE
(API-M-LITE) interface using a java servlet front end. The syntax defined
by API-M-LITE for getting a list of the next available PIDs has the
following binding:
- getNextPID URL syntax:
protocol://hostname:port/fedora/objects/nextPID[?numPIDs=NUMPIDS&namespace=NAMESPACE&format=html,xml]
This syntax requests a list of next available PIDS. The parameter numPIDs
determines the number of requested PIDS to generate. If omitted, numPIDs
defaults to 1. The namespace parameter determines the namespace to be
used in generating the PIDs. If omitted, namespace defaults to the
namespace defined in the fedora.fcfg configuration file for the parameter
pidNamespace. The xml parameter determines the type of output returned.
If the parameter is omitted or has a value of "false", a MIME-typed
stream consisting of an html table is returned providing a browser-savvy
means of viewing the object profile. If the value specified is "true",
then a MIME-typed stream consisting of XML is returned.
- Throws:
Exception
Copyright © 2011 DuraSpace. All Rights Reserved.