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 Classification Schemes with the registry service.

Author:
pramirez

Constructor Summary
SchemesResource(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 deleteClassificationScheme(String schemeGuid)
          Deletes the classification scheme with the given global identifier.
 gov.nasa.pds.registry.model.PagedResponse<gov.nasa.pds.registry.model.ClassificationNode> getClassificationNodes(String schemeGuid)
          Retrieves the classification nodes for the given classification scheme.
 gov.nasa.pds.registry.model.ClassificationScheme getClassificationScheme(String schemeGuid)
          Retrieves the classification scheme with the given global identifier.
protected static URI getSchemeUri(gov.nasa.pds.registry.model.ClassificationScheme scheme, javax.ws.rs.core.UriInfo uriInfo)
           
 javax.ws.rs.core.Response getServices(Integer start, Integer rows)
          Retrieves all classification schemes managed by the registry given a set of filters.
 javax.ws.rs.core.Response publishScheme(gov.nasa.pds.registry.model.ClassificationScheme scheme, String packageGuid)
          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,
                       gov.nasa.pds.registry.service.RegistryService registryService)
Method Detail

publishScheme

public javax.ws.rs.core.Response publishScheme(gov.nasa.pds.registry.model.ClassificationScheme scheme,
                                               String packageGuid)
Publishes a classification scheme to the registry.

Parameters:
scheme - 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

getClassificationScheme

public gov.nasa.pds.registry.model.ClassificationScheme getClassificationScheme(String schemeGuid)
Retrieves the classification scheme with the given global 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 global identifier.

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

getClassificationNodes

public gov.nasa.pds.registry.model.PagedResponse<gov.nasa.pds.registry.model.ClassificationNode> getClassificationNodes(String schemeGuid)
Retrieves the classification nodes for the given classification scheme.

Parameters:
schemeGuid - globally unique id of scheme
Returns:
List of nodes

getServices

public javax.ws.rs.core.Response getServices(Integer start,
                                             Integer rows)
Retrieves all classification schemes managed by the registry given a set of filters.


getSchemeUri

protected static URI getSchemeUri(gov.nasa.pds.registry.model.ClassificationScheme scheme,
                                  javax.ws.rs.core.UriInfo uriInfo)


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