Class DevelTools

java.lang.Object
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 Details

  • Constructor Details

    • DevelTools

      public DevelTools()
  • Method Details

    • 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