public class CollectionReaper
extends java.lang.Object
The Collection record, item records, and status records are all removed from their respective places in the repository file structure and moved to corresponding positions within the baseTrashDir directory.
$Id $
Constructor and Description |
---|
CollectionReaper(java.lang.String collection,
javax.servlet.ServletContext servletContext)
constructor for use from Schemedit app
|
CollectionReaper(java.lang.String metadataRecordsLocation,
java.lang.String collection,
java.lang.String xmlFormat,
java.lang.String id)
Constructor for the debugging the CollectionReaper
|
Modifier and Type | Method and Description |
---|---|
void |
init()
Make sure the repository, baseTrashDir and collections directories exist.
|
static void |
main(java.lang.String[] args)
The main program for the CollectionReaper class
|
void |
reap()
Description of the Method
|
void |
unhookCollection(java.lang.String key)
Remove all data structures referring to a collection, including:
vocabulary entries (collectionKey)
prefix
idGenerator
collectionConfiguration
|
void |
unhookSubCollections()
Unhook the subcollections of a collection containing collection records.
|
public CollectionReaper(java.lang.String metadataRecordsLocation, java.lang.String collection, java.lang.String xmlFormat, java.lang.String id)
metadataRecordLocation
- Description of the Parametercollection
- Description of the ParameterxmlFormat
- Description of the Parameterid
- Description of the Parameterpublic CollectionReaper(java.lang.String collection, javax.servlet.ServletContext servletContext)
collection
- Description of the ParameterservletContext
- Description of the Parameterpublic void init() throws java.lang.Exception
java.lang.Exception
- Description of the Exceptionpublic void reap() throws java.lang.Exception
java.lang.Exception
- Description of the Exceptionpublic void unhookCollection(java.lang.String key) throws java.lang.Exception
key
- NOT YET DOCUMENTEDjava.lang.Exception
- NOT YET DOCUMENTEDpublic void unhookSubCollections() throws java.lang.Exception
java.lang.Exception
- Description of the Exceptionpublic static void main(java.lang.String[] args)
args
- The command line arguments