public class DSpaceMETSIngester extends AbstractMETSIngester
METSManifest,
AbstractMETSIngester,
AbstractPackageIngester,
PackageIngesterAbstractMETSIngester.MdrefManager| Modifier and Type | Field and Description |
|---|---|
protected static String |
PROFILE_START |
bitstreamFormatService, bitstreamService, bundleService, collectionService, communityService, handleService, itemService, workspaceItemService| Constructor and Description |
|---|
DSpaceMETSIngester() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLicense(Context context,
Item item,
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.
|
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.
|
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,
InputStream in,
PackageParameters params) |
addBitstreams, addContainerLogo, addManifestBitstream, addTemplateItem, decodeHandleURN, getFileInputStream, getManifestBitstreamFormat, getObjectHandle, getParentObject, ingest, ingestObject, parsePackage, preserveManifest, removeObject, replace, replaceObject, useCollectionTemplateaddPackageReference, addToIngestedMap, getIngestedList, getIngestedMap, getPackageReferences, ingestAll, replaceAllprotected static final String PROFILE_START
public void crosswalkObjectDmd(Context context, DSpaceObject dso, METSManifest manifest, AbstractMETSIngester.MdrefManager callback, org.jdom.Element[] dmds, PackageParameters params) throws CrosswalkException, PackageValidationException, AuthorizeException, SQLException, 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 contextdso - DSpace Objectmanifest - 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.CrosswalkException - if crosswalk errorPackageValidationException - if validation errorIOException - if IO errorSQLException - if database errorAuthorizeException - if authorization errorpublic void addLicense(Context context, Item item, String license, Collection collection, PackageParameters params) throws PackageValidationException, AuthorizeException, SQLException, IOException
addLicense in class AbstractMETSIngestercontext - the DSpace contextitem - Itemlicense - optional user-supplied Deposit License text (may be null)collection - DSpace Collection to which the item is being submitted.PackageValidationException - if validation errorIOException - if IO errorSQLException - if database errorAuthorizeException - if authorization errorpublic void finishObject(Context context, DSpaceObject dso, PackageParameters params) throws PackageValidationException, CrosswalkException, AuthorizeException, SQLException, IOException
AbstractMETSIngesterfinishObject in class AbstractMETSIngestercontext - the DSpace contextdso - the DSpace Objectparams - the Packager ParametersPackageValidationException - if package validation errorCrosswalkException - if crosswalk errorAuthorizeException - if authorization errorSQLException - if database errorIOException - if IO errorpublic int getObjectType(METSManifest manifest) throws PackageValidationException
AbstractMETSIngestergetObjectType in class AbstractMETSIngestermanifest - METS manifestPackageValidationException - if package validation errorpublic void finishBitstream(Context context, Bitstream bs, org.jdom.Element mfile, METSManifest manifest, PackageParameters params) throws MetadataValidationException, SQLException, AuthorizeException, IOException
finishBitstream in class AbstractMETSIngestercontext - contextbs - bitstreammfile - elementmanifest - METS manifestparams - package paramsMetadataValidationException - if validation errorIOException - if IO errorSQLException - if database errorAuthorizeException - if authorization errorpublic String getConfigurationName()
AbstractMETSIngestergetConfigurationName in class AbstractMETSIngesterpublic boolean probe(Context context, InputStream in, PackageParameters params)
public String getParameterHelp()
-o or
--option flags with the Packager script.getParameterHelp in interface PackageIngestergetParameterHelp in class AbstractMETSIngesterCopyright © 2016 DuraSpace. All rights reserved.