|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.registry.resource.ExtrinsicsResource
public class ExtrinsicsResource
This resource is responsible for managing collections of Products.
Constructor Summary | |
---|---|
ExtrinsicsResource(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
gov.nasa.pds.registry.service.RegistryService registryService)
|
Method Summary | |
---|---|
javax.ws.rs.core.Response |
getEarliestVersion(String lid)
Retrieves the earliest product from the registry. |
ExtrinsicResource |
getExtrinsicResource(String lid,
String versionId)
|
gov.nasa.pds.registry.model.RegistryResponse |
getExtrinsicVersions(String lid)
Retrieves the collection of extrinsics that share the same local identifier. |
javax.ws.rs.core.Response |
getLatestVersion(String lid)
Retrieves the latest extrinsic from the registry. |
javax.ws.rs.core.Response |
getProducts(Integer start,
Integer rows,
String guid,
String name,
String lid,
String versionName,
String versionId,
String objectType,
String submitter,
gov.nasa.pds.registry.model.ObjectStatus status,
gov.nasa.pds.registry.model.EventType eventType,
gov.nasa.pds.registry.query.QueryOperator operator,
List<String> sort)
Allows access to all the extrinsics managed by this repository. |
javax.ws.rs.core.Response |
publishProduct(gov.nasa.pds.registry.model.ExtrinsicObject extrinsic)
Publishes a extrinsic object to the registry. |
javax.ws.rs.core.Response |
versionExtrinsic(gov.nasa.pds.registry.model.ExtrinsicObject extrinsic,
String lid,
boolean major)
Creates a new version of a product in the registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtrinsicsResource(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, gov.nasa.pds.registry.service.RegistryService registryService)
Method Detail |
---|
public javax.ws.rs.core.Response getProducts(Integer start, Integer rows, String guid, String name, String lid, String versionName, String versionId, String objectType, String submitter, gov.nasa.pds.registry.model.ObjectStatus status, gov.nasa.pds.registry.model.EventType eventType, gov.nasa.pds.registry.query.QueryOperator operator, List<String> sort)
start
- the index at which to start the result list fromrows
- how many results to returnguid
- filter to apply on the global unique id, supports wildcard (*)name
- filter to apply to name, support wildcard (*)lid
- filter to apply to logical id, supports wildcard (*)versionName
- filter to apply to registry object version, supports wildcard (*)versionId
- filter to apply on the user version, supports wildcard (*)objectType
- filter to apply on the user defined registry object types,supports
wildcard (*)submitter
- CURRENTLY UNSUPPORTEDstatus
- filter to apply on the object status, maps to ObjectStatus
enumeventType
- CURRENTLY UNSUPPORTEDoperator
- to apply to filters, valid values are AND or OR. Defaults to AND.sort
- defines what parameters to sort on. The format is
"parameter order" the order is optional. The default is "guid ASC"
and if unspecified the ordering is ASC.
public javax.ws.rs.core.Response publishProduct(gov.nasa.pds.registry.model.ExtrinsicObject extrinsic)
extrinsic
- to update to
public javax.ws.rs.core.Response versionExtrinsic(gov.nasa.pds.registry.model.ExtrinsicObject extrinsic, String lid, boolean major)
extrinsic
- to update tolid
- the logical identifier to the extrinsicmajor
- if true indicates a major revision otherwise considered minor
public gov.nasa.pds.registry.model.RegistryResponse getExtrinsicVersions(String lid)
lid
- local identifier of set extrinsics to retrieve
public javax.ws.rs.core.Response getEarliestVersion(String lid)
lid
- local identifier of product to retrieve
public javax.ws.rs.core.Response getLatestVersion(String lid)
lid
- the logical identifier to the extrinsic
public ExtrinsicResource getExtrinsicResource(String lid, String versionId)
versionId
- of the product's local identifierlid
- local identifier which identifies a unique set of products
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |