Package org.dspace.content
Class MetadataDSpaceCsvExportServiceImpl
java.lang.Object
org.dspace.content.MetadataDSpaceCsvExportServiceImpl
- All Implemented Interfaces:
MetadataDSpaceCsvExportService
public class MetadataDSpaceCsvExportServiceImpl
extends Object
implements MetadataDSpaceCsvExportService
Implementation of
MetadataDSpaceCsvExportService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexport(Context context, Iterator<Item> toExport, boolean exportAll, DSpaceRunnableHandler handler) This method will export all the Items in the given toExport iterator to a DSpaceCSVexport(Context context, Community community, boolean exportAll, DSpaceRunnableHandler handler) This method will export all the Items within the given Community to a DSpaceCSVinthandleExport(Context context, boolean exportAllItems, boolean exportAllMetadata, String identifier, DSpaceRunnableHandler handler) This method will export DSpaceObject objects depending on the parameters it gets.
-
Constructor Details
-
MetadataDSpaceCsvExportServiceImpl
public MetadataDSpaceCsvExportServiceImpl()
-
-
Method Details
-
handleExport
public DSpaceCSV handleExport(Context context, boolean exportAllItems, boolean exportAllMetadata, String identifier, DSpaceRunnableHandler handler) throws Exception Description copied from interface:MetadataDSpaceCsvExportServiceThis method will export DSpaceObject objects depending on the parameters it gets. It can export all the items in the repository, all the items in a community, all the items in a collection or a specific item. The latter three are specified by the handle parameter. The entire repository can be exported by defining the exportAllItems parameter as true- Specified by:
handleExportin interfaceMetadataDSpaceCsvExportService- Parameters:
context- The relevant DSpace contextexportAllItems- A boolean indicating whether or not the entire repository should be exportedexportAllMetadata- Defines if all metadata should be exported or only the allowed onesidentifier- The handle or UUID for the DSpaceObject to be exported, can be a Community, Collection or Item- Returns:
- A DSpaceCSV object containing the exported information
- Throws:
Exception- If something goes wrong
-
export
public DSpaceCSV export(Context context, Iterator<Item> toExport, boolean exportAll, DSpaceRunnableHandler handler) throws Exception Description copied from interface:MetadataDSpaceCsvExportServiceThis method will export all the Items in the given toExport iterator to a DSpaceCSV- Specified by:
exportin interfaceMetadataDSpaceCsvExportService- Parameters:
context- The relevant DSpace contexttoExport- The iterator containing the items to exportexportAll- Defines if all metadata should be exported or only the allowed ones- Returns:
- A DSpaceCSV object containing the exported information
- Throws:
Exception- If something goes wrong
-
export
public DSpaceCSV export(Context context, Community community, boolean exportAll, DSpaceRunnableHandler handler) throws Exception Description copied from interface:MetadataDSpaceCsvExportServiceThis method will export all the Items within the given Community to a DSpaceCSV- Specified by:
exportin interfaceMetadataDSpaceCsvExportService- Parameters:
context- The relevant DSpace contextcommunity- The Community that contains the Items to be exportedexportAll- Defines if all metadata should be exported or only the allowed ones- Returns:
- A DSpaceCSV object containing the exported information
- Throws:
Exception- If something goes wrong
-
getCsvExportLimit
public int getCsvExportLimit()- Specified by:
getCsvExportLimitin interfaceMetadataDSpaceCsvExportService
-