gov.nasa.pds.registry.resource
Class SchemesResource

java.lang.Object
  extended by gov.nasa.pds.registry.resource.SchemesResource

public class SchemesResource
extends Object

This resource is responsible for managing operations involving Classification Schemes.

Author:
pramirez

Constructor Summary
SchemesResource(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, RegistryService registryService)
           
 
Method Summary
 javax.ws.rs.core.Response deleteClassificationScheme(String schemeGuid)
          Deletes the classification scheme with the given guid
 ClassificationScheme getClassificationScheme(String schemeGuid)
          Retrieves the classification scheme with the given identifier
 NodesResource getNodesResource(String schemeGuid)
          This returns a resource that manages the classification nodes for the given scheme
protected static URI getSchemeUri(ClassificationScheme scheme, javax.ws.rs.core.UriInfo uriInfo)
           
 javax.ws.rs.core.Response publishScheme(ClassificationScheme scheme)
          Publishes a Classification Scheme to the registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemesResource

public SchemesResource(javax.ws.rs.core.UriInfo uriInfo,
                       javax.ws.rs.core.Request request,
                       RegistryService registryService)
Method Detail

publishScheme

public javax.ws.rs.core.Response publishScheme(ClassificationScheme scheme)
Publishes a Classification Scheme to the registry.

Parameters:
scheme - to publish
Returns:
a HTTP response that indicates an error or the location of the created association and its guid

getClassificationScheme

public ClassificationScheme getClassificationScheme(String schemeGuid)
Retrieves the classification scheme with the given identifier

Parameters:
schemeGuid - globally unique id of scheme
Returns:
the classification scheme

deleteClassificationScheme

public javax.ws.rs.core.Response deleteClassificationScheme(String schemeGuid)
Deletes the classification scheme with the given guid

Parameters:
schemeGuid - globally unique id of scheme
Returns:
Response indicating whether the operation succeeded or had an error

getNodesResource

public NodesResource getNodesResource(String schemeGuid)
This returns a resource that manages the classification nodes for the given scheme

Parameters:
schemeGuid - globally unique id of scheme
Returns:
classification node resource

getSchemeUri

protected static URI getSchemeUri(ClassificationScheme scheme,
                                  javax.ws.rs.core.UriInfo uriInfo)


Copyright © 2005-2010 Planetary Data System. All Rights Reserved.