gov.nasa.pds.registry.resource
Class RegistryResource

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

@Component
@Scope(value="request")
public class RegistryResource
extends Object

This is the root resource for managing the registry.

Author:
pramirez

Constructor Summary
RegistryResource()
           
 
Method Summary
 AssociationsResource getAssociationsResource()
          Provides access to operations that can be done on associations.
 ClassificationsResource getClassificationsResource()
          Provides access to operations on Classifications that are made on RegistryObjects.
 EventsResource getEventsResource()
          Provides access to operations that can be done with Auditable Events.
 ProductsResource getProductsResource()
          Provides access to operations that can be done on products.
 SchemesResource getSchemesResource()
          Provides access to operations that can be done with ClassificationSchemes.
 ServicesResource getServicesResource()
          Provides access to operations that can be done with Service registrations.
 StatusInfo getStatus()
          Retrieve the status of the registry service.
 void synchronize(Collection<Product> products)
          Synchronizes the incoming registry products with those already present in the registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryResource

public RegistryResource()
Method Detail

getStatus

public StatusInfo getStatus()
Retrieve the status of the registry service. This can be used to monitor the health of the registry.

Returns:
registry status

synchronize

public void synchronize(Collection<Product> products)
Synchronizes the incoming registry products with those already present in the registry.

Parameters:
products - from some other registry

getProductsResource

public ProductsResource getProductsResource()
Provides access to operations that can be done on products. The product resource is simply a subresource of the registry resource.

Returns:
product resource that will process the remaining portion of the request

getAssociationsResource

public AssociationsResource getAssociationsResource()
Provides access to operations that can be done on associations. The association resource deals with links between registry objects. At this level this is merely a method to be able to delegate along this resource path.

Returns:
association resource that will process the remaining portion of the request

getEventsResource

public EventsResource getEventsResource()
Provides access to operations that can be done with Auditable Events. Auditable Events are recorded for many actions involved with RegistryObject's such as approved, created, deleted, deprecated, etc..

Returns:
resource to deal with auditable events

getSchemesResource

public SchemesResource getSchemesResource()
Provides access to operations that can be done with ClassificationSchemes. Additionally manages ClassificationNodes as each node can be traced back to a parent and should not exist without a scheme.

Returns:
resource to deal with classification schemes

getServicesResource

public ServicesResource getServicesResource()
Provides access to operations that can be done with Service registrations.

Returns:
resource to deal with services

getClassificationsResource

public ClassificationsResource getClassificationsResource()
Provides access to operations on Classifications that are made on RegistryObjects.

Returns:
resource to deal with classifications


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