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| Modifier and Type | Field and Description |
|---|---|
protected static String |
CREATIVE_COMMONS_RDF_MDTYPE |
protected static String |
CREATIVE_COMMONS_TEXT_MDTYPE |
protected static String |
DSPACE_DEPOSIT_LICENSE_MDTYPE |
protected static String |
PROFILE_LABEL
Identifier for the package we produce, i.e.
|
authorizeService, bitstreamService, configurationService, creativeCommonsService, DEFAULT_MODIFIED_DATE, idCounter, outputter, siteService, TEMPLATE_TYPE_SUFFIXcommunityService, itemService| 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, crosswalkToMetsElement, disseminate, findOriginalBitstream, gensym, getHandleURN, getMIMEType, getObjectTypeString, linkLicenseRefsToBitstreams, makeBitstreamURL, makeChildDiv, makeFileDiv, makeManifest, makeMdSec, makePersistentID, resetCounter, setMdType, setMdType, writeZipPackageaddToPackageList, disseminateAll, getPackageListprotected static final String PROFILE_LABEL
protected static final String DSPACE_DEPOSIT_LICENSE_MDTYPE
protected static final String CREATIVE_COMMONS_RDF_MDTYPE
protected static final String CREATIVE_COMMONS_TEXT_MDTYPE
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 AbstractMETSDisseminatorcontext - contextdso - DSpaceObjectparams - packaging paramspublic String[] getDmdTypes(Context context, DSpaceObject dso, PackageParameters params) throws SQLException, IOException, AuthorizeException
getDmdTypes in class AbstractMETSDisseminatorcontext - contextdso - DSpaceObjectparams - the PackageParameters passed to the disseminator.IOException - if IO errorSQLException - if database errorAuthorizeException - if authorization errorpublic String[] getTechMdTypes(Context context, DSpaceObject dso, PackageParameters params) throws SQLException, IOException, AuthorizeException
getTechMdTypes in class AbstractMETSDisseminatorcontext - contextdso - DSpaceObjectparams - the PackageParameters passed to the disseminator.IOException - if IO errorSQLException - if database errorAuthorizeException - if authorization errorpublic String[] getSourceMdTypes(Context context, DSpaceObject dso, PackageParameters params) throws SQLException, IOException, AuthorizeException
AbstractMETSDisseminatorgetDmdTypes() above.getSourceMdTypes in class AbstractMETSDisseminatorcontext - contextdso - DSpaceObjectparams - the PackageParameters passed to the disseminator.SQLException - if database errorIOException - if IO errorAuthorizeException - if authorization errorpublic String[] getDigiprovMdTypes(Context context, DSpaceObject dso, PackageParameters params) throws SQLException, IOException, AuthorizeException
AbstractMETSDisseminatorgetDmdTypes() above.getDigiprovMdTypes in class AbstractMETSDisseminatorcontext - contextdso - DSpaceObjectparams - the PackageParameters passed to the disseminator.SQLException - if database errorIOException - if IO errorAuthorizeException - if authorization errorpublic String[] getRightsMdTypes(Context context, DSpaceObject dso, PackageParameters params) throws SQLException, IOException, AuthorizeException
getRightsMdTypes in class AbstractMETSDisseminatorcontext - contextdso - DSpaceObjectparams - the PackageParameters passed to the disseminator.IOException - if IO errorSQLException - if database errorAuthorizeException - if authorization errorpublic 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 AbstractMETSDisseminatorcontext - contextdso - DSpaceObjectparams - the PackageParameters passed to the disseminator.mets - the METS document to which to add structMapsSQLException - if database errorIOException - if IO errorAuthorizeException - if authorization erroredu.harvard.hul.ois.mets.helper.MetsException - if METS errorpublic boolean includeBundle(Bundle bundle)
includeBundle in class AbstractMETSDisseminatorbundle - bundlepublic String getParameterHelp()
-o or
--option flags with the Packager script.getParameterHelp in interface PackageDisseminatorgetParameterHelp in class AbstractMETSDisseminatorCopyright © 2016 DuraSpace. All rights reserved.