org.dspace.app.itemupdate
Class ItemUpdate

java.lang.Object
  extended by org.dspace.app.itemupdate.ItemUpdate

public class ItemUpdate
extends Object

Provides some batch editing capabilities for items in DSpace: Metadata fields - Add, Delete Bitstreams - Add, Delete The design has been for compatibility with ItemImporter in the use of the DSpace archive format which is used to specify changes on a per item basis. The directory names to correspond to each item are arbitrary and will only be used for logging purposes. The reference to the item is from a required dc.identifier with the item handle to be included in the dublin_core.xml (or similar metadata) file. Any combination of these actions is permitted in a single run of this class The order of actions is important when used in combination. It is the responsibility of the calling class (here, ItemUpdate) to register UpdateAction classes in the order to which they are to be performed. It is unfortunate that so much code needs to be borrowed from ItemImport as it is not reusable in private methods, etc. Some of this has been placed into the MetadataUtilities class for possible reuse elsewhere.

Author:
W. Hays based on a conceptual design by R. Rodgers

Field Summary
static String CONTENTS_FILE
           
static String DELETE_CONTENTS_FILE
           
static Map<String,String> filterAliases
           
static String HANDLE_PREFIX
           
static String SUPPRESS_UNDO_FILENAME
           
static boolean verbose
           
 
Constructor Summary
ItemUpdate()
           
 
Method Summary
static void main(String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUPPRESS_UNDO_FILENAME

public static String SUPPRESS_UNDO_FILENAME

CONTENTS_FILE

public static final String CONTENTS_FILE
See Also:
Constant Field Values

DELETE_CONTENTS_FILE

public static final String DELETE_CONTENTS_FILE
See Also:
Constant Field Values

HANDLE_PREFIX

public static String HANDLE_PREFIX

filterAliases

public static Map<String,String> filterAliases

verbose

public static boolean verbose
Constructor Detail

ItemUpdate

public ItemUpdate()
Method Detail

main

public static void main(String[] argv)
Parameters:
argv -


Copyright © 2010 DuraSpace. All Rights Reserved.