|
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.repository.CollectionReaper
public class CollectionReaper
Deletes a collections by moving metadata records to a "baseTrashDir" directory.
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 Summary | |
---|---|
CollectionReaper(String collection,
ServletContext servletContext)
constructor for use from Schemedit app |
|
CollectionReaper(String metadataRecordsLocation,
String collection,
String xmlFormat,
String id)
Constructor for the debugging the CollectionReaper |
Method Summary | |
---|---|
void |
init()
Make sure the repository, baseTrashDir and collections directories exist. |
static void |
main(String[] args)
The main program for the CollectionReaper class |
void |
reap()
Description of the Method |
void |
unhookCollection(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectionReaper(String metadataRecordsLocation, String collection, String xmlFormat, String id)
metadataRecordLocation
- Description of the Parametercollection
- Description of the ParameterxmlFormat
- Description of the Parameterid
- Description of the Parameterpublic CollectionReaper(String collection, ServletContext servletContext)
collection
- Description of the ParameterservletContext
- Description of the ParameterMethod Detail |
---|
public void init() throws Exception
Exception
- Description of the Exceptionpublic void reap() throws Exception
Exception
- Description of the Exceptionpublic void unhookCollection(String key) throws Exception
key
- NOT YET DOCUMENTED
Exception
- NOT YET DOCUMENTEDpublic void unhookSubCollections() throws Exception
Exception
- Description of the Exceptionpublic static void main(String[] args)
args
- The command line arguments
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |