public class MetadataExport extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Context |
context |
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,
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 Context context
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, int indent) throws SQLException
context - DSpace contextcommunity - The community to build fromindent - How many spaces to use when writing out the names of items addedSQLException - if database errorpublic DSpaceCSV export()
Copyright © 2022 LYRASIS. All rights reserved.