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 for managing 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)
           
 
Method Summary
 javax.ws.rs.core.Response deleteClassificationNode(String nodeGuid)
          Deletes the classification node with the given global identifier.
 gov.nasa.pds.registry.model.ClassificationNode getClassificationNode(String nodeGuid)
          Retrieves the classification node with the given global identifier.
 javax.ws.rs.core.Response getNodes(Integer start, Integer rows)
           
protected static URI getNodeUri(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, String packageGuid)
          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)
Method Detail

publishNode

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

Parameters:
node - to publish to registry
packageGuid - optional package guid which this registry object is a member of
Returns:
a HTTP response that indicates an error or the location of the created association and its guid

getClassificationNode

public gov.nasa.pds.registry.model.ClassificationNode getClassificationNode(String nodeGuid)
Retrieves the classification node with the given global 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 with the given global identifier.

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

getNodes

public javax.ws.rs.core.Response getNodes(Integer start,
                                          Integer rows)

getNodeUri

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


Copyright © 2010–2014 Planetary Data System. All rights reserved.