Package org.dlese.dpc.ndr
Class DleseAsUseCaseHelper
java.lang.Object
org.dlese.dpc.ndr.DleseAsUseCaseHelper
Just a few examples of fetching info from NDR. Approach:
- first get the MetadataProviderReader (which is the object type in the NDR from which collection information is obtained.
- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ListgetDeletedRecordHandles(String collection) Gets the handles of deleted metadata records for the specified collection.static ListGets the itemRecords for a given collection starting from the MetadataProvider.static MetadataProviderReadergetMetadataProvider(String collection) Gets a metadataProviderReader given a collection key.static voidExamples of how to obtain DLESE info from NDR objects.
-
Constructor Details
-
DleseAsUseCaseHelper
public DleseAsUseCaseHelper()
-
-
Method Details
-
getMetadataProvider
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
Gets the itemRecords for a given collection starting from the MetadataProvider.- Parameters:
mdp- NOT YET DOCUMENTED- Returns:
- The itemRecords value
-
getDeletedRecordHandles
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
Examples of how to obtain DLESE info from NDR objects.- Parameters:
args- The command line arguments- Throws:
Exception- NOT YET DOCUMENTED
-