public class MetadataExport extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
exportAll
Whether to export all metadata, or just normally edited metadata
|
protected ItemService |
itemService |
protected Iterator<Item> |
toExport
The items to export
|
| Modifier | Constructor and Description |
|---|---|
protected |
MetadataExport() |
|
MetadataExport(Context c,
Community toExport,
boolean exportAll)
Method to export a community (and sub-communities and collections)
|
|
MetadataExport(Context c,
Iterator<Item> toExport,
boolean exportAll)
Set up a new metadata export
|
| Modifier and Type | Method and Description |
|---|---|
protected Iterator<Item> |
buildFromCommunity(Context context,
Community community,
List<Integer> itemIDs,
int indent)
Build an array list of item ids that are in a community (include sub-communities and collections)
|
DSpaceCSV |
export()
Run the export
|
static void |
main(String[] argv)
main method to run the metadata exporter
|
protected ItemService itemService
protected boolean exportAll
protected MetadataExport()
public MetadataExport(Context c, Iterator<Item> toExport, boolean exportAll)
c - The ContexttoExport - The ItemIterator of items to exportexportAll - whether to export all metadata or not (include handle, provenance etc)protected Iterator<Item> buildFromCommunity(Context context, Community community, List<Integer> itemIDs, int indent) throws SQLException
community - The community to build fromitemIDs - The itemID (used for recursion - use an empty ArrayList)indent - How many spaces to use when writing out the names of items addedSQLExceptionpublic DSpaceCSV export()
Copyright © 2016 DuraSpace. All Rights Reserved.