Class MetadataDSpaceCsvExportServiceImpl

java.lang.Object
org.dspace.content.MetadataDSpaceCsvExportServiceImpl
All Implemented Interfaces:
MetadataDSpaceCsvExportService

public class MetadataDSpaceCsvExportServiceImpl extends Object implements MetadataDSpaceCsvExportService
  • 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: MetadataDSpaceCsvExportService
      This 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:
      handleExport in interface MetadataDSpaceCsvExportService
      Parameters:
      context - The relevant DSpace context
      exportAllItems - A boolean indicating whether or not the entire repository should be exported
      exportAllMetadata - Defines if all metadata should be exported or only the allowed ones
      identifier - 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: MetadataDSpaceCsvExportService
      This method will export all the Items in the given toExport iterator to a DSpaceCSV
      Specified by:
      export in interface MetadataDSpaceCsvExportService
      Parameters:
      context - The relevant DSpace context
      toExport - The iterator containing the items to export
      exportAll - 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: MetadataDSpaceCsvExportService
      This method will export all the Items within the given Community to a DSpaceCSV
      Specified by:
      export in interface MetadataDSpaceCsvExportService
      Parameters:
      context - The relevant DSpace context
      community - The Community that contains the Items to be exported
      exportAll - 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:
      getCsvExportLimit in interface MetadataDSpaceCsvExportService