| Package | Description |
|---|---|
| org.dspace.content.packager |
Provides an API and implementations of content packages, used in the context of ingest (SIP), or dissemination (DIP)
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractMETSIngester.addBitstreams(Context context,
Item item,
METSManifest manifest,
File pkgFile,
PackageParameters params,
AbstractMETSIngester.MdrefManager mdRefCallback)
Add Bitstreams to an Item, based on the files listed in the METS Manifest
|
protected void |
AbstractMETSIngester.addContainerLogo(Context context,
DSpaceObject dso,
METSManifest manifest,
File pkgFile,
PackageParameters params)
Add a Logo to a Community or Collection container object based on a METS
Manifest.
|
static METSManifest |
METSManifest.create(InputStream is,
boolean validate,
String configName)
Create a new manifest object from a serialized METS XML document.
|
void |
METSManifest.crosswalkBitstream(Context context,
PackageParameters params,
Bitstream bitstream,
String fileId,
METSManifest.Mdref callback)
Crosswalk the metadata associated with a particular
file
element into the bitstream it corresponds to. |
void |
METSManifest.crosswalkBundle(Context context,
PackageParameters params,
Bundle bundle,
String fileId,
METSManifest.Mdref callback) |
void |
METSManifest.crosswalkItemDmd(Context context,
PackageParameters params,
DSpaceObject dso,
org.jdom.Element dmdSec,
METSManifest.Mdref callback)
Invokes appropriate crosswalks on Item-wide descriptive metadata.
|
void |
METSManifest.crosswalkObjectOtherAdminMD(Context context,
PackageParameters params,
DSpaceObject dso,
METSManifest.Mdref callback)
Crosswalk all technical and source metadata sections that belong
to the whole object.
|
boolean |
METSManifest.crosswalkObjectSourceMD(Context context,
PackageParameters params,
DSpaceObject dso,
METSManifest.Mdref callback)
Just crosswalk the sourceMD sections; used to set the handle and parent of AIP.
|
protected void |
METSManifest.crosswalkXmd(Context context,
PackageParameters params,
DSpaceObject dso,
org.jdom.Element xmd,
METSManifest.Mdref callback,
boolean createMissingMetadataFields) |
abstract void |
AbstractMETSIngester.finishBitstream(Context context,
Bitstream bs,
org.jdom.Element mfile,
METSManifest manifest,
PackageParameters params)
Subclass-dependent final processing on a Bitstream; could include fixing
up the name, bundle, other attributes.
|
void |
DSpaceMETSIngester.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 |
DSpaceAIPIngester.finishBitstream(Context context,
Bitstream bs,
org.jdom.Element mfile,
METSManifest manifest,
PackageParameters params)
Nothing extra to do to bitstream after ingestion.
|
protected String[] |
METSManifest.getAmdIDs()
Get an aray of all AMDID values for this object
|
List<org.jdom.Element> |
METSManifest.getBundleFiles()
Gets all
file elements which make up
the item's content. |
static String |
METSManifest.getBundleName(org.jdom.Element file)
Get the DSpace bundle name corresponding to the
USE
attribute of the file group enclosing this file element. |
static String |
METSManifest.getBundleName(org.jdom.Element file,
boolean getParent)
Get the DSpace bundle name corresponding to the
USE
attribute of the file group enclosing this file element. |
String[] |
METSManifest.getChildMetsFilePaths()
Retrieve the file paths for the children objects' METS Manifest files.
|
List |
METSManifest.getChildObjDivs()
Get an array of child object
<div>s from the METS Manifest <structMap>. |
List<org.jdom.Element> |
METSManifest.getContentFiles() |
org.jdom.Element[] |
METSManifest.getDmdElements(String dmdList)
Gets all dmdSec elements from a space separated list
|
protected org.jdom.Element |
METSManifest.getElementByXPath(String path,
boolean nullOk) |
protected static InputStream |
AbstractMETSIngester.getFileInputStream(File pkgFile,
PackageParameters params,
String path)
Retrieve the inputStream for a File referenced from a specific path
within a METS package.
|
static String |
METSManifest.getFileName(org.jdom.Element file)
Get the "local" file name of this
file or mdRef element. |
InputStream |
METSManifest.Mdref.getInputStream(org.jdom.Element mdRef)
Make the contents of an external resource mentioned in
an
mdRef element available as an InputStream. |
InputStream |
AbstractMETSIngester.MdrefManager.getInputStream(org.jdom.Element mdref)
Make the contents of an external resource mentioned in an
mdRef element available as an InputStream. |
org.jdom.Element[] |
METSManifest.getItemDmds()
Gets all dmdSec elements containing metadata for the DSpace Item.
|
org.jdom.Element[] |
METSManifest.getItemRightsMD()
Return rights metadata section(s) relevant to item as a whole.
|
InputStream |
METSManifest.getMdContentAsStream(org.jdom.Element mdSec,
METSManifest.Mdref callback)
Return contents of *md element as stream.
|
List<org.jdom.Element> |
METSManifest.getMdContentAsXml(org.jdom.Element mdSec,
METSManifest.Mdref callback)
Return contents of *md element as List of XML Element objects.
|
String |
METSManifest.getMdContentMimeType(org.jdom.Element mdSec)
Returns MIME type of metadata content, if available.
|
List |
METSManifest.getMdFiles()
Gets list of all
mdRef elements in the METS
document. |
String |
METSManifest.getMdType(org.jdom.Element mdSec)
Get the metadata type from within a *mdSec element.
|
String |
AbstractMETSIngester.getObjectHandle(METSManifest manifest)
Determines the handle of the DSpace object represented in this METS doc.
|
org.jdom.Element |
METSManifest.getObjStructDiv()
Return the
<div> which describes this DSpace Object (and its contents)
from the <structMap>. |
DSpaceObject |
AbstractMETSIngester.getParentObject(Context context,
METSManifest manifest)
Determines what parent DSpace object is referenced in this METS doc.
|
String |
METSManifest.getParentOwnerLink()
Return the reference to the Parent Object from the "Parent"
<structMap>. |
org.jdom.Element |
METSManifest.getPrimaryOrLogoBitstream()
Returns file element corresponding to primary bitstream.
|
protected METSManifest |
AbstractMETSIngester.parsePackage(Context context,
File pkgFile,
PackageParameters params)
Parse a given input package, ultimately returning the METS manifest out
of the package.
|
protected DSpaceObject |
AbstractMETSIngester.replaceObject(Context context,
DSpaceObject dso,
METSManifest manifest,
File pkgFile,
PackageParameters params,
String license)
Replace the contents of a single DSpace Object, based on the associated
METS Manifest and the parameters passed to the METSIngester.
|
Copyright © 2016 DuraSpace. All rights reserved.