|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.uiuc.ndiipp.hubandspoke.packager.FromHubPackager
edu.uiuc.ndiipp.hubandspoke.packager.Hub2DspacePackager
public class Hub2DspacePackager
Class responsible for transforming a hub package into a package ingestable by Dspace. Expects to be fed a METS file conformant to the EchoDep profile (http://www.loc.gov/standards/mets/profiles/00000015.xml)
Any files not referenced in the METS file will not be packaged for DSpace ingestion.
| Constructor Summary | |
|---|---|
Hub2DspacePackager()
|
|
| Method Summary | |
|---|---|
java.io.File |
createRepositoryPackage(HaSMETSProfile hubpackage,
java.lang.String id)
Carry out the transformation on the given package. |
java.io.File |
createRepositoryPackage(HaSMETSProfile hubpackage,
java.lang.String output_dir,
java.lang.String id)
Carry out the transformation on the given package |
java.io.File |
createRepositoryPackage(java.lang.String pathtomets,
java.lang.String id)
Carry out the transformation on the given package. |
java.io.File |
createRepositoryPackage(java.lang.String pathtomets,
java.lang.String output_path,
java.lang.String id)
Carry out the transformation on the given package. |
static void |
main(java.lang.String[] args)
Command line interface to transform a hub package into a package ingestable by Dspace USAGE: Hub2DspacePackager /path/to/hub/package /output/dir dspaceAssignedHandle |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Hub2DspacePackager()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - - path to the hub package, path to the output directory, dspace handle
public java.io.File createRepositoryPackage(java.lang.String pathtomets,
java.lang.String id)
throws HaSMETSProfileException,
PackagerException
pathtomets - - location of the METS fileid - - handle retrieved from the POST method of LRCRUD
PackagerException
HaSMETSProfileException
public java.io.File createRepositoryPackage(java.lang.String pathtomets,
java.lang.String output_path,
java.lang.String id)
throws HaSMETSProfileException,
PackagerException
pathtomets - - location of the METS fileid - - handle retrieved from the POST method of LRCRUD
HaSMETSProfileException
PackagerException
public java.io.File createRepositoryPackage(HaSMETSProfile hubpackage,
java.lang.String id)
throws HaSMETSProfileException,
PackagerException
hubpackage - - HaSMETSProfile objectid - - handle retrieved from the POST method of LRCRUD
HaSMETSProfileException
PackagerException
public java.io.File createRepositoryPackage(HaSMETSProfile hubpackage,
java.lang.String output_dir,
java.lang.String id)
throws PackagerException,
HaSMETSProfileException
createRepositoryPackage in class FromHubPackagerhubpackage - - HaSMETSProfile objectoutput_dir - - Place to put the zipid - - handle retrieved from the POST method of LRCRUD
HaSMETSProfileException
PackagerException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||