|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.registry.resource.ProductsResource
public class ProductsResource
This resource is responsible for managing collections of Products.
Constructor Summary | |
---|---|
ProductsResource(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
RegistryService registryService)
|
Method Summary | |
---|---|
javax.ws.rs.core.Response |
getEarliestVersion(String lid)
Retrieves the earliest product from the registry. |
javax.ws.rs.core.Response |
getLatestVersion(String lid)
Retrieves the latest product from the registry. |
ProductResource |
getProductResource(String lid,
String versionId)
|
javax.ws.rs.core.Response |
getProducts(Integer start,
Integer rows,
String guid,
String name,
String lid,
String versionName,
String versionId,
String objectType,
String submitter,
ObjectStatus status,
EventType eventType,
QueryOperator operator,
List<String> sort)
Allows access to all the products managed by this repository. |
RegistryResponse |
getProductVersions(String lid)
Retrieves the collection of products that share the same local identifier. |
javax.ws.rs.core.Response |
publishProduct(Product product)
Publishes a product to the registry. |
javax.ws.rs.core.Response |
versionProduct(Product product,
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 ProductsResource(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, 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, ObjectStatus status, EventType eventType, 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(Product product)
product
- to update to
public javax.ws.rs.core.Response versionProduct(Product product, String lid, boolean major)
product
- to update tolid
- the logical identifier to the productmajor
- if true indicates a major revision otherwise considered minor
public RegistryResponse getProductVersions(String lid)
lid
- local identifier of set products 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 product
public ProductResource getProductResource(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 |