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 ofMetadataDSpaceCsvExportService
-
-
Constructor Summary
Constructors Constructor Description MetadataDSpaceCsvExportServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DSpaceCSVexport(Context context, Iterator<Item> toExport, boolean exportAll)This method will export all the Items in the given toExport iterator to a DSpaceCSVDSpaceCSVexport(Context context, Community community, boolean exportAll)This method will export all the Items within the given Community to a DSpaceCSVDSpaceCSVhandleExport(Context context, boolean exportAllItems, boolean exportAllMetadata, String identifier, DSpaceRunnableHandler handler)This method will export DSpaceObject objects depending on the parameters it gets.
-
-
-
Method Detail
-
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) 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) 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
-
-