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 registry 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.
 ConfigurationResource getConfigurationResource()
          Provides access to configure the registry.
 EventsResource getEventsResource()
          Provides access to operations that can be done with Auditable Events.
 ExternalIdentifiersResource getExternalIdentifiersResource()
          Provides access to operations on ExternalIdentifiers.
 ExtrinsicsResource getExtrinsicsResource()
          Provides access to operations that can be done on extrinsics.
 PackagesResource getPackagesResource()
          Provides access to operations on RegistryPackages.
 gov.nasa.pds.registry.model.Report getReport()
          Retrieve the status of the registry service.
 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.
 javax.ws.rs.core.Response listResources()
           
 void synchronize(Collection<gov.nasa.pds.registry.model.RegistryObject> products)
          Synchronizes the incoming registry objects 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

listResources

public javax.ws.rs.core.Response listResources()

getReport

public gov.nasa.pds.registry.model.Report getReport()
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<gov.nasa.pds.registry.model.RegistryObject> products)
Synchronizes the incoming registry objects with those already present in the registry.

Parameters:
products - from some other registry

getExtrinsicsResource

public ExtrinsicsResource getExtrinsicsResource()
Provides access to operations that can be done on extrinsics. The extrinsic 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

getConfigurationResource

public ConfigurationResource getConfigurationResource()
Provides access to configure the registry.

Returns:
resource to deal with configuration

getPackagesResource

public PackagesResource getPackagesResource()
Provides access to operations on RegistryPackages.

Returns:
resource to deal with packages

getExternalIdentifiersResource

public ExternalIdentifiersResource getExternalIdentifiersResource()
Provides access to operations on ExternalIdentifiers.

Returns:
resource to deal with external identifiers


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