|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.content.packager.AbstractPackageDisseminator
org.dspace.content.packager.AbstractMETSDisseminator
org.dspace.content.packager.DSpaceMETSDisseminator
public class DSpaceMETSDisseminator
Packager plugin to produce a METS (Metadata Encoding & Transmission Standard) package that is accepted as a DSpace METS SIP (Submission Information Package). See http://www.loc.gov/standards/mets/ for more information on METS.
This class does not produce a true DSpace DIP, because there was no DIP standard when it was implemented. It does contain some features beyond the requirements of a SIP (e.g. deposit licenses), anticipating the DIP specification.
DSpaceMETSDisseminator was intended to be an useful example of a packager plugin, and a way to create packages acceptable to the METS SIP importer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.dspace.content.packager.AbstractMETSDisseminator |
|---|
AbstractMETSDisseminator.MdStreamCache |
| Field Summary |
|---|
| Fields inherited from class org.dspace.content.packager.AbstractMETSDisseminator |
|---|
TEMPLATE_TYPE_SUFFIX |
| Constructor Summary | |
|---|---|
DSpaceMETSDisseminator()
|
|
| Method Summary | |
|---|---|
void |
addStructMap(Context context,
DSpaceObject dso,
PackageParameters params,
edu.harvard.hul.ois.mets.Mets mets)
Add any additional structMap elements to the
METS document, as required by this subclass. |
String |
bundleToFileGrp(String bname)
Returns name of METS fileGrp corresponding to a DSpace bundle name. |
String[] |
getDigiprovMdTypes(Context context,
DSpaceObject dso,
PackageParameters params)
Get the type string of the "digiprov" (digital provenance) metadata to create for each object and each Bitstream in an Item. |
String[] |
getDmdTypes(Context context,
DSpaceObject dso,
PackageParameters params)
Get DMD choice for Item. |
String |
getParameterHelp()
Returns a user help string which should describe the additional valid command-line options that this packager implementation will accept when using the -o or
--option flags with the Packager script. |
String |
getProfile()
Return identifier string for the profile this produces. |
String[] |
getRightsMdTypes(Context context,
DSpaceObject dso,
PackageParameters params)
Add rights MD (licenses) for DSpace item. |
String[] |
getSourceMdTypes(Context context,
DSpaceObject dso,
PackageParameters params)
Get the type string of the source metadata to create for each object and each Bitstream in an Item. |
String[] |
getTechMdTypes(Context context,
DSpaceObject dso,
PackageParameters params)
Get name of technical metadata crosswalk for Bitstreams. |
boolean |
includeBundle(Bundle bundle)
|
edu.harvard.hul.ois.mets.MetsHdr |
makeMetsHdr(Context context,
DSpaceObject dso,
PackageParameters params)
Create metsHdr element - separate so subclasses can override. |
| Methods inherited from class org.dspace.content.packager.AbstractMETSDisseminator |
|---|
addAmdSec, addBitstreamsToZip, addLogoBitstream, addToAmdSec, disseminate, findOriginalBitstream, gensym, getHandleURN, getMIMEType, getObjectTypeString, linkLicenseRefsToBitstreams, makeBitstreamURL, makeChildDiv, makeFileDiv, makeManifest, makeMdSec, makePersistentID, resetCounter, setMdType, setMdType, writeZipPackage |
| Methods inherited from class org.dspace.content.packager.AbstractPackageDisseminator |
|---|
addToPackageList, disseminateAll, getPackageList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DSpaceMETSDisseminator()
| Method Detail |
|---|
public String getProfile()
getProfile in class AbstractMETSDisseminatorpublic String bundleToFileGrp(String bname)
bundleToFileGrp in class AbstractMETSDisseminatorbname - name of DSpace bundle.
public edu.harvard.hul.ois.mets.MetsHdr makeMetsHdr(Context context,
DSpaceObject dso,
PackageParameters params)
makeMetsHdr in class AbstractMETSDisseminator
public String[] getDmdTypes(Context context,
DSpaceObject dso,
PackageParameters params)
throws SQLException,
IOException,
AuthorizeException
getDmdTypes in class AbstractMETSDisseminatorparams - the PackageParameters passed to the disseminator.
SQLException
IOException
AuthorizeException
public String[] getTechMdTypes(Context context,
DSpaceObject dso,
PackageParameters params)
throws SQLException,
IOException,
AuthorizeException
getTechMdTypes in class AbstractMETSDisseminatorparams - the PackageParameters passed to the disseminator.
SQLException
IOException
AuthorizeException
public String[] getSourceMdTypes(Context context,
DSpaceObject dso,
PackageParameters params)
throws SQLException,
IOException,
AuthorizeException
AbstractMETSDisseminatorgetDmdTypes() above.
getSourceMdTypes in class AbstractMETSDisseminatorparams - the PackageParameters passed to the disseminator.
SQLException
IOException
AuthorizeException
public String[] getDigiprovMdTypes(Context context,
DSpaceObject dso,
PackageParameters params)
throws SQLException,
IOException,
AuthorizeException
AbstractMETSDisseminatorgetDmdTypes() above.
getDigiprovMdTypes in class AbstractMETSDisseminatorparams - the PackageParameters passed to the disseminator.
SQLException
IOException
AuthorizeException
public String[] getRightsMdTypes(Context context,
DSpaceObject dso,
PackageParameters params)
throws SQLException,
IOException,
AuthorizeException
getRightsMdTypes in class AbstractMETSDisseminatorparams - the PackageParameters passed to the disseminator.
SQLException
IOException
AuthorizeException
public void addStructMap(Context context,
DSpaceObject dso,
PackageParameters params,
edu.harvard.hul.ois.mets.Mets mets)
throws SQLException,
IOException,
AuthorizeException,
edu.harvard.hul.ois.mets.helper.MetsException
AbstractMETSDisseminatorstructMap elements to the
METS document, as required by this subclass. A simple default
structure map which fulfills the minimal DSpace METS DIP/SIP
requirements is already present, so this does not need to do anything.
addStructMap in class AbstractMETSDisseminatormets - the METS document to which to add structMaps
SQLException
IOException
AuthorizeException
edu.harvard.hul.ois.mets.helper.MetsExceptionpublic boolean includeBundle(Bundle bundle)
includeBundle in class AbstractMETSDisseminatorpublic String getParameterHelp()
-o or
--option flags with the Packager script.
getParameterHelp in interface PackageDisseminatorgetParameterHelp in class AbstractMETSDisseminator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||