public class DSpaceMETSIngester extends AbstractMETSIngester
METSManifest,
AbstractMETSIngester,
AbstractPackageIngester,
PackageIngesterAbstractMETSIngester.MdrefManager| Constructor and Description |
|---|
DSpaceMETSIngester() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLicense(Context context,
Item item,
java.lang.String license,
Collection collection,
PackageParameters params)
Policy: For DSpace deposit license, take deposit license
supplied by explicit argument first, else use collection's
default deposit license.
|
void |
crosswalkObjectDmd(Context context,
DSpaceObject dso,
METSManifest manifest,
AbstractMETSIngester.MdrefManager callback,
org.jdom.Element[] dmds,
PackageParameters params)
Choose DMD section(s) to crosswalk.
|
void |
finishBitstream(Context context,
Bitstream bs,
org.jdom.Element mfile,
METSManifest manifest,
PackageParameters params)
Take a second pass over files to correct names of derived files
(e.g.
|
void |
finishObject(Context context,
DSpaceObject dso,
PackageParameters params)
Hook for final "finishing" operations on the new Object.
|
java.lang.String |
getConfigurationName()
Returns keyword that makes the configuration keys of this subclass
unique, e.g.
|
int |
getObjectType(METSManifest manifest)
Determines what type of DSpace object is represented in this METS doc.
|
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. |
boolean |
probe(Context context,
java.io.InputStream in,
PackageParameters params) |
addBitstreams, addContainerLogo, addManifestBitstream, addTemplateItem, decodeHandleURN, getFileInputStream, getManifestBitstreamFormat, getObjectHandle, getParentObject, ingest, ingestObject, parsePackage, preserveManifest, removeObject, replace, replaceObject, useCollectionTemplateaddPackageReference, addToIngestedList, getIngestedList, getPackageReferences, ingestAll, replaceAllpublic void crosswalkObjectDmd(Context context, DSpaceObject dso, METSManifest manifest, AbstractMETSIngester.MdrefManager callback, org.jdom.Element[] dmds, PackageParameters params) throws CrosswalkException, PackageValidationException, AuthorizeException, java.sql.SQLException, java.io.IOException
The algorithm is:
1. Use whatever the dmd parameter specifies as the primary DMD.
2. If (1) is unspecified, find MODS (preferably) or DC as primary DMD.
3. If (1) or (2) succeeds, crosswalk it and ignore all other DMDs with
same GROUPID
4. Crosswalk remaining DMDs not eliminated already.
crosswalkObjectDmd in class AbstractMETSIngestercontext - the DSpace contextmanifest - the METSManifestcallback - the MdrefManager (manages all external metadata files
referenced by METS mdref elements)dmds - array of Elements, each a METS dmdSec that
applies to the Item as a whole.CrosswalkExceptionPackageValidationExceptionAuthorizeExceptionjava.sql.SQLExceptionjava.io.IOExceptionpublic void addLicense(Context context, Item item, java.lang.String license, Collection collection, PackageParameters params) throws PackageValidationException, AuthorizeException, java.sql.SQLException, java.io.IOException
addLicense in class AbstractMETSIngestercontext - the DSpace contextlicense - optional user-supplied Deposit License text (may be null)collection - DSpace Collection to which the item is being submitted.PackageValidationExceptionAuthorizeExceptionjava.sql.SQLExceptionjava.io.IOExceptionpublic void finishObject(Context context, DSpaceObject dso, PackageParameters params) throws PackageValidationException, CrosswalkException, AuthorizeException, java.sql.SQLException, java.io.IOException
AbstractMETSIngesterfinishObject in class AbstractMETSIngestercontext - the DSpace contextdso - the DSpace Objectparams - the Packager ParametersPackageValidationExceptionCrosswalkExceptionAuthorizeExceptionjava.sql.SQLExceptionjava.io.IOExceptionpublic int getObjectType(METSManifest manifest) throws PackageValidationException
AbstractMETSIngestergetObjectType in class AbstractMETSIngesterPackageValidationExceptionpublic void finishBitstream(Context context, Bitstream bs, org.jdom.Element mfile, METSManifest manifest, PackageParameters params) throws MetadataValidationException, java.sql.SQLException, AuthorizeException, java.io.IOException
finishBitstream in class AbstractMETSIngesterMetadataValidationExceptionjava.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionpublic java.lang.String getConfigurationName()
AbstractMETSIngestergetConfigurationName in class AbstractMETSIngesterpublic boolean probe(Context context, java.io.InputStream in, PackageParameters params)
public java.lang.String getParameterHelp()
-o or
--option flags with the Packager script.getParameterHelp in interface PackageIngestergetParameterHelp in class AbstractMETSIngesterCopyright © 2018 DuraSpace. All Rights Reserved.