Class ItemImport

  • All Implemented Interfaces:
    Runnable
    Direct Known Subclasses:
    ItemImportCLI

    public class ItemImport
    extends DSpaceRunnable<ItemImportScriptConfiguration>
    Import items into DSpace. The conventional use is upload files by copying them. DSpace writes the item's bitstreams into its assetstore. Metadata is also loaded to the DSpace database.

    A second use assumes the bitstream files already exist in a storage resource accessible to DSpace. In this case the bitstreams are 'registered'. That is, the metadata is loaded to the DSpace database and DSpace is given the location of the file which is subsumed into DSpace.

    The distinction is controlled by the format of lines in the 'contents' file. See comments in processContentsFile() below.

    Modified by David Little, UCSD Libraries 12/21/04 to allow the registration of files (bitstreams) into DSpace.

    • Field Detail

      • TEMP_DIR

        public static String TEMP_DIR
      • MAPFILE_FILENAME

        public static String MAPFILE_FILENAME
      • MAPFILE_BITSTREAM_TYPE

        public static String MAPFILE_BITSTREAM_TYPE
      • template

        protected boolean template
      • command

        protected String command
      • sourcedir

        protected String sourcedir
      • mapfile

        protected String mapfile
      • eperson

        protected String eperson
      • collections

        protected String[] collections
      • isTest

        protected boolean isTest
      • isExcludeContent

        protected boolean isExcludeContent
      • isResume

        protected boolean isResume
      • useWorkflow

        protected boolean useWorkflow
      • useWorkflowSendEmail

        protected boolean useWorkflowSendEmail
      • isQuiet

        protected boolean isQuiet
      • commandLineCollections

        protected boolean commandLineCollections
      • zip

        protected boolean zip
      • remoteUrl

        protected boolean remoteUrl
      • zipfilename

        protected String zipfilename
      • zipvalid

        protected boolean zipvalid
      • help

        protected boolean help
      • workDir

        protected File workDir
      • workFile

        protected File workFile
      • epersonService

        protected static final EPersonService epersonService
      • handleService

        protected static final HandleService handleService
    • Constructor Detail

      • ItemImport

        public ItemImport()