DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.ndr.util
Class DevelTools

java.lang.Object
  extended by org.dlese.dpc.schemedit.ndr.util.DevelTools

public class DevelTools
extends Object

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
static String apiUrl
          NOT YET DOCUMENTED
static String ndrHost
          NOT YET DOCUMENTED
 
Constructor Summary
DevelTools()
           
 
Method Summary
static void addAgent(String id)
           
static void deleteEmptyMDPs()
          NOT YET DOCUMENTED
static void deleteStaleMDPs(String dateStr)
          NOT YET DOCUMENTED
static void displayEmptyMDPs()
          Display MDPs that have no items
static void displayRecentMDPs()
          NOT YET DOCUMENTED
static void displayStaleMDPs(String dateStr)
           
static String findCollectionMetadata(String collectionAggregator)
           
static List findNCSApplicationAgents()
           
static String getCollectionMetadataItemId()
           
static List getEmtpyMDPHandles()
           
static void main(String[] args)
          The main program for the DevelTools class
static void modififyAgent()
           
static void modifyMetadataProvider()
          NOT YET DOCUMENTED
static void purge(String thresholdDateStr)
          Utility for cleaning up - Delete all metadata records that d0 NOT belong to collections modified since the threshold date.
static void setDebug(boolean bool)
          Sets the debug attribute of the DevelTools class
static void undeleteNDRObject(String handle, NDRConstants.NDRObjectType objectType)
          This call does not seem to be working??
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ndrHost

public static final String ndrHost
NOT YET DOCUMENTED

See Also:
Constant Field Values

apiUrl

public static final String apiUrl
NOT YET DOCUMENTED

See Also:
Constant Field Values
Constructor Detail

DevelTools

public DevelTools()
Method Detail

purge

public static void purge(String thresholdDateStr)
                  throws Exception
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

public static void addAgent(String id)
                     throws Exception
Throws:
Exception

modififyAgent

public static void modififyAgent()
                          throws Exception
Throws:
Exception

modifyMetadataProvider

public static void modifyMetadataProvider()
                                   throws Exception
NOT YET DOCUMENTED

Throws:
Exception - NOT YET DOCUMENTED

findCollectionMetadata

public static String findCollectionMetadata(String collectionAggregator)
                                     throws Exception
Throws:
Exception

findNCSApplicationAgents

public static List findNCSApplicationAgents()

getCollectionMetadataItemId

public static String getCollectionMetadataItemId()

main

public static void main(String[] args)
                 throws Exception
The main program for the DevelTools class

Parameters:
args - The command line arguments
Throws:
Exception - NOT YET DOCUMENTED

displayStaleMDPs

public static void displayStaleMDPs(String dateStr)

displayRecentMDPs

public static void displayRecentMDPs()
NOT YET DOCUMENTED


displayEmptyMDPs

public static void displayEmptyMDPs()
                             throws Exception
Display MDPs that have no items

Throws:
Exception - NOT YET DOCUMENTED

getEmtpyMDPHandles

public static List getEmtpyMDPHandles()
                               throws Exception
Throws:
Exception

deleteEmptyMDPs

public static void deleteEmptyMDPs()
                            throws Exception
NOT YET DOCUMENTED

Throws:
Exception - NOT YET DOCUMENTED

deleteStaleMDPs

public static void deleteStaleMDPs(String dateStr)
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

DLESE Tools
v1.6.0