public class DSpaceMETSDisseminator extends AbstractMETSDisseminator
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.
AbstractMETSDisseminator.MdStreamCacheTEMPLATE_TYPE_SUFFIX| Constructor and Description |
|---|
DSpaceMETSDisseminator() |
| Modifier and Type | Method and Description |
|---|---|
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. |
java.lang.String |
bundleToFileGrp(java.lang.String bname)
Returns name of METS fileGrp corresponding to a DSpace bundle name.
|
java.lang.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.
|
java.lang.String[] |
getDmdTypes(Context context,
DSpaceObject dso,
PackageParameters params)
Get DMD choice for Item.
|
java.lang.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. |
java.lang.String |
getProfile()
Return identifier string for the profile this produces.
|
java.lang.String[] |
getRightsMdTypes(Context context,
DSpaceObject dso,
PackageParameters params)
Add rights MD (licenses) for DSpace item.
|
java.lang.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.
|
java.lang.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.
|
addAmdSec, addBitstreamsToZip, addLogoBitstream, addToAmdSec, disseminate, findOriginalBitstream, gensym, getHandleURN, getMIMEType, getObjectTypeString, linkLicenseRefsToBitstreams, makeBitstreamURL, makeChildDiv, makeFileDiv, makeManifest, makeMdSec, makePersistentID, resetCounter, setMdType, setMdType, writeZipPackageaddToPackageList, disseminateAll, getPackageListpublic java.lang.String getProfile()
getProfile in class AbstractMETSDisseminatorpublic java.lang.String bundleToFileGrp(java.lang.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 AbstractMETSDisseminatorpublic java.lang.String[] getDmdTypes(Context context, DSpaceObject dso, PackageParameters params) throws java.sql.SQLException, java.io.IOException, AuthorizeException
getDmdTypes in class AbstractMETSDisseminatorparams - the PackageParameters passed to the disseminator.java.sql.SQLExceptionjava.io.IOExceptionAuthorizeExceptionpublic java.lang.String[] getTechMdTypes(Context context, DSpaceObject dso, PackageParameters params) throws java.sql.SQLException, java.io.IOException, AuthorizeException
getTechMdTypes in class AbstractMETSDisseminatorparams - the PackageParameters passed to the disseminator.java.sql.SQLExceptionjava.io.IOExceptionAuthorizeExceptionpublic java.lang.String[] getSourceMdTypes(Context context, DSpaceObject dso, PackageParameters params) throws java.sql.SQLException, java.io.IOException, AuthorizeException
AbstractMETSDisseminatorgetDmdTypes() above.getSourceMdTypes in class AbstractMETSDisseminatorparams - the PackageParameters passed to the disseminator.java.sql.SQLExceptionjava.io.IOExceptionAuthorizeExceptionpublic java.lang.String[] getDigiprovMdTypes(Context context, DSpaceObject dso, PackageParameters params) throws java.sql.SQLException, java.io.IOException, AuthorizeException
AbstractMETSDisseminatorgetDmdTypes() above.getDigiprovMdTypes in class AbstractMETSDisseminatorparams - the PackageParameters passed to the disseminator.java.sql.SQLExceptionjava.io.IOExceptionAuthorizeExceptionpublic java.lang.String[] getRightsMdTypes(Context context, DSpaceObject dso, PackageParameters params) throws java.sql.SQLException, java.io.IOException, AuthorizeException
getRightsMdTypes in class AbstractMETSDisseminatorparams - the PackageParameters passed to the disseminator.java.sql.SQLExceptionjava.io.IOExceptionAuthorizeExceptionpublic void addStructMap(Context context, DSpaceObject dso, PackageParameters params, edu.harvard.hul.ois.mets.Mets mets) throws java.sql.SQLException, java.io.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 structMapsjava.sql.SQLExceptionjava.io.IOExceptionAuthorizeExceptionedu.harvard.hul.ois.mets.helper.MetsExceptionpublic boolean includeBundle(Bundle bundle)
includeBundle in class AbstractMETSDisseminatorpublic java.lang.String getParameterHelp()
-o or
--option flags with the Packager script.getParameterHelp in interface PackageDisseminatorgetParameterHelp in class AbstractMETSDisseminatorCopyright © 2018 DuraSpace. All Rights Reserved.