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.MdStreamCache
TEMPLATE_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. |
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.
|
addAmdSec, addBitstreamsToZip, addLogoBitstream, addToAmdSec, disseminate, findOriginalBitstream, gensym, getHandleURN, getMIMEType, getObjectTypeString, linkLicenseRefsToBitstreams, makeBitstreamURL, makeChildDiv, makeFileDiv, makeManifest, makeMdSec, makePersistentID, resetCounter, setMdType, setMdType, writeZipPackage
addToPackageList, disseminateAll, getPackageList
public String getProfile()
getProfile
in class AbstractMETSDisseminator
public String bundleToFileGrp(String bname)
bundleToFileGrp
in class AbstractMETSDisseminator
bname
- 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 AbstractMETSDisseminator
params
- 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 AbstractMETSDisseminator
params
- the PackageParameters passed to the disseminator.SQLException
IOException
AuthorizeException
public String[] getSourceMdTypes(Context context, DSpaceObject dso, PackageParameters params) throws SQLException, IOException, AuthorizeException
AbstractMETSDisseminator
getDmdTypes()
above.getSourceMdTypes
in class AbstractMETSDisseminator
params
- the PackageParameters passed to the disseminator.SQLException
IOException
AuthorizeException
public String[] getDigiprovMdTypes(Context context, DSpaceObject dso, PackageParameters params) throws SQLException, IOException, AuthorizeException
AbstractMETSDisseminator
getDmdTypes()
above.getDigiprovMdTypes
in class AbstractMETSDisseminator
params
- 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 AbstractMETSDisseminator
params
- 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
AbstractMETSDisseminator
structMap
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 AbstractMETSDisseminator
mets
- the METS document to which to add structMapsSQLException
IOException
AuthorizeException
edu.harvard.hul.ois.mets.helper.MetsException
public boolean includeBundle(Bundle bundle)
includeBundle
in class AbstractMETSDisseminator
public String getParameterHelp()
-o
or
--option
flags with the Packager script.getParameterHelp
in interface PackageDisseminator
getParameterHelp
in class AbstractMETSDisseminator
Copyright © 2016 DuraSpace. All Rights Reserved.