public class NSDLCollectionUtils
extends java.lang.Object
Constructor and Description |
---|
NSDLCollectionUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
compare(NSDLCollectionReader nsdl,
NCSCollectReader ncs)
Description of the Method
|
static void |
compare(java.lang.String aggHandle)
Description of the Method
|
static void |
compareInfoModels()
Description of the Method
|
static java.lang.String |
getBaseServiceUrl() |
static java.lang.String |
getCollectionMetadataHandle(java.lang.String aggHandle) |
static java.lang.String |
getNCSCollectionID(NSDLCollectionReader collReader)
Extracts the NCS collection id from a NSDLCollectionReader instance.
|
static java.lang.String |
getNCSCollectionID(java.lang.String resourceUrl)
Finds the collection id for the provided collection resource url.
|
static java.util.List |
getNCSCollectionIDs() |
static java.util.List |
getNCSCollectionRecordIDs()
Gets a list of collection ids from the NCSL Collections collection.
|
static NCSCollectReader |
getNCSRecord(java.lang.String recId)
Returns NCSCollectReader instance for NCS Collect record having provided id.
|
static NCSCollectReader |
getNCSRecord(java.net.URL resourceUrl)
Gets an NCSCollectReader instance for a given resourceUrl.
|
static NCSCollectReader |
getNCSRecordByTitle(java.lang.String title)
Gets the nCSRecordByTitle attribute of the NSDLCollectionUtils class
|
static void |
main(java.lang.String[] args)
The main program for the NSDLCollectionUtils class
|
static void |
setBaseServiceUrl(java.lang.String baseUrl) |
public static void setBaseServiceUrl(java.lang.String baseUrl)
public static java.lang.String getBaseServiceUrl()
public static java.lang.String getCollectionMetadataHandle(java.lang.String aggHandle)
public static java.lang.String getNCSCollectionID(NSDLCollectionReader collReader)
Never returns null so we can stuff into xml without worry
collReader
- Description of the Parameterpublic static NCSCollectReader getNCSRecord(java.net.URL resourceUrl)
Uses web service to find a metadata record for the resourceUrl and then creates a reader object from the response.
resourceUrl
- Description of the Parameterpublic static java.lang.String getNCSCollectionID(java.lang.String resourceUrl)
resourceUrl
- Description of the Parameterpublic static java.util.List getNCSCollectionRecordIDs() throws java.lang.Exception
java.lang.Exception
- Description of the Exceptionpublic static java.util.List getNCSCollectionIDs() throws java.lang.Exception
java.lang.Exception
public static NCSCollectReader getNCSRecord(java.lang.String recId) throws java.lang.Exception
recId
- Description of the Parameterjava.lang.Exception
- Description of the Exceptionpublic static NCSCollectReader getNCSRecordByTitle(java.lang.String title) throws java.lang.Exception
title
- Description of the Parameterjava.lang.Exception
- Description of the Exceptionpublic static void main(java.lang.String[] args)
args
- The command line argumentspublic static void compare(java.lang.String aggHandle) throws java.lang.Exception
aggHandle
- Description of the Parameterjava.lang.Exception
- Description of the Exceptionpublic static void compare(NSDLCollectionReader nsdl, NCSCollectReader ncs)
nsdl
- Description of the Parameterncs
- Description of the Parameterpublic static void compareInfoModels() throws java.lang.Exception
java.lang.Exception
- Description of the Exception