|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 Parameter
public CollectionReaper(String collection,
ServletContext servletContext)
collection - Description of the ParameterservletContext - Description of the Parameter| Method Detail |
|---|
public void init()
throws Exception
Exception - Description of the Exception
public void reap()
throws Exception
Exception - Description of the Exception
public void unhookCollection(String key)
throws Exception
key - NOT YET DOCUMENTED
Exception - NOT YET DOCUMENTED
public 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 | ||||||||