gov.nasa.pds.registry.resource
Class NodesResource

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

public class NodesResource
extends Object

This resource is responsible Classification Nodes for a given Classification Scheme.

Author:
pramirez

Constructor Summary
NodesResource(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, gov.nasa.pds.registry.service.RegistryService registryService, gov.nasa.pds.registry.model.ClassificationScheme scheme)
           
 
Method Summary
 javax.ws.rs.core.Response deleteClassificationNode(String nodeGuid)
          Deletes the classification node from the registry
 gov.nasa.pds.registry.model.ClassificationNode getClassificationNode(String nodeGuid)
          Retrieves the classification node with the given identifier
 gov.nasa.pds.registry.model.RegistryResponse getClassificationNodes()
          Retrieves the classification nodes for the scheme
protected static URI getNodeUri(String schemeGuid, gov.nasa.pds.registry.model.ClassificationNode node, javax.ws.rs.core.UriInfo uriInfo)
           
 javax.ws.rs.core.Response publishNode(gov.nasa.pds.registry.model.ClassificationNode node)
          Publishes a classification node to the registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodesResource

public NodesResource(javax.ws.rs.core.UriInfo uriInfo,
                     javax.ws.rs.core.Request request,
                     gov.nasa.pds.registry.service.RegistryService registryService,
                     gov.nasa.pds.registry.model.ClassificationScheme scheme)
Method Detail

publishNode

public javax.ws.rs.core.Response publishNode(gov.nasa.pds.registry.model.ClassificationNode node)
Publishes a classification node to the registry.

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

getClassificationNodes

public gov.nasa.pds.registry.model.RegistryResponse getClassificationNodes()
Retrieves the classification nodes for the scheme

Returns:
List of nodes

getClassificationNode

public gov.nasa.pds.registry.model.ClassificationNode getClassificationNode(String nodeGuid)
Retrieves the classification node with the given identifier

Parameters:
nodeGuid - globally unique identifier of classification node
Returns:
classification node

deleteClassificationNode

public javax.ws.rs.core.Response deleteClassificationNode(String nodeGuid)
Deletes the classification node from the registry

Parameters:
nodeGuid - globally unique identifier of node
Returns:
Response indicating whether the operation succeeded or had an error

getNodeUri

protected static URI getNodeUri(String schemeGuid,
                                gov.nasa.pds.registry.model.ClassificationNode node,
                                javax.ws.rs.core.UriInfo uriInfo)


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