public class ItemUpdate extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ActionManager |
actionMgr |
static String |
CONTENTS_FILE |
static String |
DELETE_CONTENTS_FILE |
protected String |
eperson |
protected static EPersonService |
epersonService |
static Map<String,String> |
filterAliases |
static String |
HANDLE_PREFIX |
protected static ItemService |
itemService |
static String |
SUPPRESS_UNDO_FILENAME |
protected List<String> |
undoActionList |
static boolean |
verbose |
| Constructor and Description |
|---|
ItemUpdate() |
| Modifier and Type | Method and Description |
|---|---|
protected File |
initUndoArchive(File sourceDir)
to avoid overwriting the undo source tree on repeated processing
sequence numbers are added and checked
|
static void |
main(String[] argv) |
protected void |
processArchive(Context context,
String sourceDirPath,
String itemField,
String metadataIndexName,
boolean alterProvenance,
boolean isTest)
process an archive
|
protected void |
setEPerson(Context context,
String eperson)
Set EPerson doing import
|
public static final String SUPPRESS_UNDO_FILENAME
public static final String CONTENTS_FILE
public static final String DELETE_CONTENTS_FILE
public static String HANDLE_PREFIX
public static boolean verbose
protected static final EPersonService epersonService
protected static final ItemService itemService
protected ActionManager actionMgr
protected String eperson
public static void main(String[] argv)
argv - commandline argsprotected void processArchive(Context context, String sourceDirPath, String itemField, String metadataIndexName, boolean alterProvenance, boolean isTest) throws Exception
context - DSpace ContextsourceDirPath - source pathitemField - item fieldmetadataIndexName - index namealterProvenance - whether to alter provenanceisTest - test flagException - if errorprotected File initUndoArchive(File sourceDir) throws FileNotFoundException, IOException
sourceDir - - the original source directoryFileNotFoundException - if file doesn't existIOException - if IO errorCopyright © 2017 DuraSpace. All rights reserved.