Class NSDLCollectionUtils
java.lang.Object
org.dlese.dpc.schemedit.ndr.util.integration.NSDLCollectionUtils
Utilities for working with NSDL Collection records housed in the NCS instance.
- Author:
- ostwald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidDescription of the Methodstatic voidcompare(NSDLCollectionReader nsdl, NCSCollectReader ncs) Description of the Methodstatic voidDescription of the Methodstatic Stringstatic StringgetCollectionMetadataHandle(String aggHandle) static StringgetNCSCollectionID(String resourceUrl) Finds the collection id for the provided collection resource url.static StringgetNCSCollectionID(NSDLCollectionReader collReader) Extracts the NCS collection id from a NSDLCollectionReader instance.static Liststatic ListGets a list of collection ids from the NCSL Collections collection.static NCSCollectReadergetNCSRecord(String recId) Returns NCSCollectReader instance for NCS Collect record having provided id.static NCSCollectReadergetNCSRecord(URL resourceUrl) Gets an NCSCollectReader instance for a given resourceUrl.static NCSCollectReadergetNCSRecordByTitle(String title) Gets the nCSRecordByTitle attribute of the NSDLCollectionUtils classstatic voidThe main program for the NSDLCollectionUtils classstatic voidsetBaseServiceUrl(String baseUrl)
-
Constructor Details
-
NSDLCollectionUtils
public NSDLCollectionUtils()
-
-
Method Details
-
setBaseServiceUrl
-
getBaseServiceUrl
-
getCollectionMetadataHandle
-
getNCSCollectionID
Extracts the NCS collection id from a NSDLCollectionReader instance.Never returns null so we can stuff into xml without worry
- Parameters:
collReader- Description of the Parameter- Returns:
- The collection id value, or an empty string if one cannot be found
-
getNCSRecord
Gets an NCSCollectReader instance for a given resourceUrl.Uses web service to find a metadata record for the resourceUrl and then creates a reader object from the response.
- Parameters:
resourceUrl- Description of the Parameter- Returns:
- The nCSRecord value
-
getNCSCollectionID
Finds the collection id for the provided collection resource url.- Parameters:
resourceUrl- Description of the Parameter- Returns:
- The nCSCollectionID value
-
getNCSCollectionRecordIDs
Gets a list of collection ids from the NCSL Collections collection.- Returns:
- The nCSCollectionIDs value
- Throws:
Exception- Description of the Exception
-
getNCSCollectionIDs
- Throws:
Exception
-
getNCSRecord
Returns NCSCollectReader instance for NCS Collect record having provided id.- Parameters:
recId- Description of the Parameter- Returns:
- The nCSRecord value
- Throws:
Exception- Description of the Exception
-
getNCSRecordByTitle
Gets the nCSRecordByTitle attribute of the NSDLCollectionUtils class- Parameters:
title- Description of the Parameter- Returns:
- The nCSRecordByTitle value
- Throws:
Exception- Description of the Exception
-
main
The main program for the NSDLCollectionUtils class- Parameters:
args- The command line arguments
-
compare
Description of the Method- Parameters:
aggHandle- Description of the Parameter- Throws:
Exception- Description of the Exception
-
compare
Description of the Method- Parameters:
nsdl- Description of the Parameterncs- Description of the Parameter
-
compareInfoModels
Description of the Method- Throws:
Exception- Description of the Exception
-