|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.registry.resource.ProductResource
public class ProductResource
This class delegates all functions involving a particular product. This is defined as a sub-resource to the registry resource merely to partition off the operations involving products.
Constructor Summary | |
---|---|
ProductResource(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
RegistryService registryService,
String lid,
String versionId)
|
Method Summary | |
---|---|
protected static void |
addApproveProductLink(javax.ws.rs.core.Response.ResponseBuilder builder,
javax.ws.rs.core.UriInfo uriInfo,
Product product)
|
protected static void |
addDeprecateProductLink(javax.ws.rs.core.Response.ResponseBuilder builder,
javax.ws.rs.core.UriInfo uriInfo,
Product product)
|
protected static void |
addEarliestProductLink(javax.ws.rs.core.Response.ResponseBuilder builder,
javax.ws.rs.core.UriInfo uriInfo,
RegistryService registryService,
Product product)
|
protected static void |
addLatestProductLink(javax.ws.rs.core.Response.ResponseBuilder builder,
javax.ws.rs.core.UriInfo uriInfo,
RegistryService registryService,
Product product)
|
protected static void |
addNextProductLink(javax.ws.rs.core.Response.ResponseBuilder builder,
javax.ws.rs.core.UriInfo uriInfo,
RegistryService registryService,
Product product)
|
protected static void |
addPreviousProductLink(javax.ws.rs.core.Response.ResponseBuilder builder,
javax.ws.rs.core.UriInfo uriInfo,
RegistryService registryService,
Product product)
|
javax.ws.rs.core.Response |
changeStatus(ObjectAction action)
This will change the status of the registered product |
javax.ws.rs.core.Response |
deleteProduct()
Removes an product from the registry |
javax.ws.rs.core.Response |
getProduct()
Retrieves a single product from the registry. |
protected static URI |
getProductUri(Product product,
javax.ws.rs.core.UriInfo uriInfo)
|
javax.ws.rs.core.Response |
updateProduct(Product product)
Updates an existing product with the given local identifier and version. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProductResource(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, RegistryService registryService, String lid, String versionId)
Method Detail |
---|
public javax.ws.rs.core.Response getProduct()
public javax.ws.rs.core.Response updateProduct(Product product)
product
- to update to
public javax.ws.rs.core.Response deleteProduct()
public javax.ws.rs.core.Response changeStatus(ObjectAction action)
action
- to take on product which will result in an update of status
ObjectAction
protected static void addPreviousProductLink(javax.ws.rs.core.Response.ResponseBuilder builder, javax.ws.rs.core.UriInfo uriInfo, RegistryService registryService, Product product)
protected static void addNextProductLink(javax.ws.rs.core.Response.ResponseBuilder builder, javax.ws.rs.core.UriInfo uriInfo, RegistryService registryService, Product product)
protected static void addEarliestProductLink(javax.ws.rs.core.Response.ResponseBuilder builder, javax.ws.rs.core.UriInfo uriInfo, RegistryService registryService, Product product)
protected static void addLatestProductLink(javax.ws.rs.core.Response.ResponseBuilder builder, javax.ws.rs.core.UriInfo uriInfo, RegistryService registryService, Product product)
protected static void addDeprecateProductLink(javax.ws.rs.core.Response.ResponseBuilder builder, javax.ws.rs.core.UriInfo uriInfo, Product product)
protected static void addApproveProductLink(javax.ws.rs.core.Response.ResponseBuilder builder, javax.ws.rs.core.UriInfo uriInfo, Product product)
protected static URI getProductUri(Product product, javax.ws.rs.core.UriInfo uriInfo)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |