|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.schemedit.ndr.util.integration.NSDLCollectionUtils
public class NSDLCollectionUtils
Utilities for working with NSDL Collection records housed in the NCS instance.
Constructor Summary | |
---|---|
NSDLCollectionUtils()
|
Method Summary | |
---|---|
static void |
compare(NSDLCollectionReader nsdl,
NCSCollectReader ncs)
Description of the Method |
static void |
compare(String aggHandle)
Description of the Method |
static void |
compareInfoModels()
Description of the Method |
static String |
getBaseServiceUrl()
|
static String |
getCollectionMetadataHandle(String aggHandle)
|
static String |
getNCSCollectionID(NSDLCollectionReader collReader)
Extracts the NCS collection id from a NSDLCollectionReader instance. |
static String |
getNCSCollectionID(String resourceUrl)
Finds the collection id for the provided collection resource url. |
static List |
getNCSCollectionIDs()
|
static List |
getNCSCollectionRecordIDs()
Gets a list of collection ids from the NCSL Collections collection. |
static NCSCollectReader |
getNCSRecord(String recId)
Returns NCSCollectReader instance for NCS Collect record having provided id. |
static NCSCollectReader |
getNCSRecord(URL resourceUrl)
Gets an NCSCollectReader instance for a given resourceUrl. |
static NCSCollectReader |
getNCSRecordByTitle(String title)
Gets the nCSRecordByTitle attribute of the NSDLCollectionUtils class |
static void |
main(String[] args)
The main program for the NSDLCollectionUtils class |
static void |
setBaseServiceUrl(String baseUrl)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NSDLCollectionUtils()
Method Detail |
---|
public static void setBaseServiceUrl(String baseUrl)
public static String getBaseServiceUrl()
public static String getCollectionMetadataHandle(String aggHandle)
public static String getNCSCollectionID(NSDLCollectionReader collReader)
Never returns null so we can stuff into xml without worry
collReader
- Description of the Parameter
public static NCSCollectReader getNCSRecord(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 Parameter
public static String getNCSCollectionID(String resourceUrl)
resourceUrl
- Description of the Parameter
public static List getNCSCollectionRecordIDs() throws Exception
Exception
- Description of the Exceptionpublic static List getNCSCollectionIDs() throws Exception
Exception
public static NCSCollectReader getNCSRecord(String recId) throws Exception
recId
- Description of the Parameter
Exception
- Description of the Exceptionpublic static NCSCollectReader getNCSRecordByTitle(String title) throws Exception
title
- Description of the Parameter
Exception
- Description of the Exceptionpublic static void main(String[] args)
args
- The command line argumentspublic static void compare(String aggHandle) throws Exception
aggHandle
- Description of the Parameter
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 Exception
Exception
- Description of the Exception
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |