Class DleseAsUseCaseHelper

java.lang.Object
org.dlese.dpc.ndr.DleseAsUseCaseHelper

public class DleseAsUseCaseHelper extends Object
Just a few examples of fetching info from NDR. Approach:
  1. first get the MetadataProviderReader (which is the object type in the NDR from which collection information is obtained.
  2. then using the list of metadataHandles obtained from the mdp, get the item-level records (not a speedy operation)
Version:
$Id: DleseAsUseCaseHelper.java,v 1.4 2007/12/04 20:24:15 ostwald Exp $
Author:
Jonathan Ostwald
  • Constructor Details

    • DleseAsUseCaseHelper

      public DleseAsUseCaseHelper()
  • Method Details

    • getMetadataProvider

      public static MetadataProviderReader getMetadataProvider(String collection)
      Gets a metadataProviderReader given a collection key.

      The key for MY NASA DATA collection in ndrtest is "1123828776963".

      Parameters:
      collection - collection key
      Returns:
      The metadataProvider value
    • getItemRecords

      public static List getItemRecords(MetadataProviderReader mdp)
      Gets the itemRecords for a given collection starting from the MetadataProvider.
      Parameters:
      mdp - NOT YET DOCUMENTED
      Returns:
      The itemRecords value
    • getDeletedRecordHandles

      public static List getDeletedRecordHandles(String collection)
      Gets the handles of deleted metadata records for the specified collection.

      Note: only DLESE collections (written by the NCS) can be found by their collection key.

      Parameters:
      collection - DLESE collection kdy (e.g., "dcc")
      Returns:
      List of handles for deleted item-level metadata records
    • main

      public static void main(String[] args) throws Exception
      Examples of how to obtain DLESE info from NDR objects.
      Parameters:
      args - The command line arguments
      Throws:
      Exception - NOT YET DOCUMENTED