Package org.dlese.dpc.schemedit.ndr.util
Class DevelTools
java.lang.Object
org.dlese.dpc.schemedit.ndr.util.DevelTools
Utilities for cleaning up NDR test repository.
- Version:
- $Id: DevelTools.java,v 1.9 2009/03/20 23:33:56 jweather Exp $
- Author:
- ostwald
$Id $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidNOT YET DOCUMENTEDstatic voiddeleteStaleMDPs(String dateStr) NOT YET DOCUMENTEDstatic voidDisplay MDPs that have no itemsstatic voidNOT YET DOCUMENTEDstatic voiddisplayStaleMDPs(String dateStr) static StringfindCollectionMetadata(String collectionAggregator) static Liststatic Stringstatic Liststatic voidThe main program for the DevelTools classstatic voidstatic voidNOT YET DOCUMENTEDstatic voidUtility for cleaning up - Delete all metadata records that d0 NOT belong to collections modified since the threshold date.static voidsetDebug(boolean bool) Sets the debug attribute of the DevelTools classstatic voidundeleteNDRObject(String handle, NDRConstants.NDRObjectType objectType) This call does not seem to be working??
-
Field Details
-
ndrHost
NOT YET DOCUMENTED- See Also:
-
apiUrl
NOT YET DOCUMENTED- See Also:
-
-
Constructor Details
-
DevelTools
public DevelTools()
-
-
Method Details
-
purge
Utility for cleaning up - Delete all metadata records that d0 NOT belong to collections modified since the threshold date.- for each MDP -- if fresh (last modified AFTER threshold) --- add MD handles to "keepers" - for each MDP --- if stale (last modified BEFORE threshold) ---- for each MD ----- if not in "keepers", delete MD
- Parameters:
thresholdDateStr- NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-
undeleteNDRObject
public static void undeleteNDRObject(String handle, NDRConstants.NDRObjectType objectType) throws Exception This call does not seem to be working??- Throws:
Exception
-
addAgent
- Throws:
Exception
-
modififyAgent
- Throws:
Exception
-
modifyMetadataProvider
NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-
findCollectionMetadata
- Throws:
Exception
-
findNCSApplicationAgents
-
getCollectionMetadataItemId
-
main
The main program for the DevelTools class- Parameters:
args- The command line arguments- Throws:
Exception- NOT YET DOCUMENTED
-
displayStaleMDPs
-
displayRecentMDPs
public static void displayRecentMDPs()NOT YET DOCUMENTED -
displayEmptyMDPs
Display MDPs that have no items- Throws:
Exception- NOT YET DOCUMENTED
-
getEmtpyMDPHandles
- Throws:
Exception
-
deleteEmptyMDPs
NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-
deleteStaleMDPs
NOT YET DOCUMENTED- Parameters:
dateStr- NOT YET DOCUMENTED
-
setDebug
public static void setDebug(boolean bool) Sets the debug attribute of the DevelTools class- Parameters:
bool- The new debug value
-