org.dspace.app.packager
Class Packager

java.lang.Object
  extended by org.dspace.app.packager.Packager

public class Packager
extends Object

Command-line interface to the Packager plugin.

This class ONLY exists to provide a CLI for the packager plugins. It does not "manage" the plugins and it is not called from within DSpace, but the name follows a DSpace convention.

It can invoke one of the Submission (SIP) packagers to create a new DSpace Item out of a package, or a Dissemination (DIP) packager to write an Item out as a package.

Usage is as follows:
(Add the -h option to get the command to show its own help)

  1. To submit a SIP:
   java org.dspace.app.packager.Packager
       -e {ePerson}
       -t {PackagerType}
       -c {collection-handle} [ -c {collection} ...]
       -o {name}={value} [ -o {name}={value} ..]
       [-w]
       {package-filename}
 
   {PackagerType} must match one of the aliases of the chosen Packager
   plugin.
 
   The "-w" option circumvents Workflow, and is optional.  The "-o"
   option, which may be repeated, passes options to the packager
   (e.g. "metadataOnly" to a DIP packager).
 
  2. To write out a DIP:
   java org.dspace.content.packager.Packager
       -d
       -e {ePerson}
       -t {PackagerType}
       -i {item-handle}
       -o {name}={value} [ -o {name}={value} ..]
       {package-filename}
 
   The "-d" switch chooses a Dissemination packager, and is required.
   The "-o" option, which may be repeated, passes options to the packager
   (e.g. "metadataOnly" to a DIP packager).
 
Note that {package-filename} may be "-" for standard input or standard output, respectively.

Version:
$Revision: 3733 $
Author:
Larry Stone

Constructor Summary
Packager()
           
 
Method Summary
static void main(String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Packager

public Packager()
Method Detail

main

public static void main(String[] argv)
                 throws Exception
Throws:
Exception


Copyright © 2010 DuraSpace. All Rights Reserved.