| 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 String |
AbstractMETSDisseminator.addAmdSec(Context context,
DSpaceObject dso,
PackageParameters params,
edu.harvard.hul.ois.mets.Mets mets,
AbstractMETSDisseminator.MdStreamCache extraStreams) |
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 |
AbstractMETSDisseminator.addBitstreamsToZip(Context context,
DSpaceObject dso,
PackageParameters params,
ZipOutputStream zip)
Add Bitstreams associated with a given DSpace Object into an
existing ZipOutputStream
|
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.
|
void |
DSpaceMETSIngester.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 |
DSpaceAIPIngester.addLicense(Context context,
Item item,
String license,
Collection collection,
PackageParameters params)
Ignore license when restoring an manifest-only AIP, since it should
be a bitstream in the AIP already.
|
abstract void |
AbstractMETSIngester.addLicense(Context context,
Item item,
String license,
Collection collection,
PackageParameters params)
Add license(s) to Item based on contents of METS and other policies.
|
protected void |
AbstractMETSIngester.addManifestBitstream(Context context,
Item item,
METSManifest manifest)
Save/Preserve the METS Manifest as a Bitstream attached to the given
DSpace item.
|
protected void |
AbstractMETSIngester.addTemplateItem(Context context,
DSpaceObject dso,
METSManifest manifest,
File pkgFile,
PackageParameters params,
AbstractMETSIngester.MdrefManager callback)
Add a Template Item to a Collection container object based on a METS
Manifest.
|
protected void |
AbstractMETSDisseminator.addToAmdSec(edu.harvard.hul.ois.mets.AmdSec fAmdSec,
String[] mdTypes,
Class mdSecClass,
Context context,
DSpaceObject dso,
PackageParameters params,
AbstractMETSDisseminator.MdStreamCache extraStreams) |
static void |
PackageUtils.checkItemMetadata(Item item)
Test that item has adequate metadata.
|
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 |
DSpaceMETSIngester.crosswalkObjectDmd(Context context,
DSpaceObject dso,
METSManifest manifest,
AbstractMETSIngester.MdrefManager callback,
org.jdom.Element[] dmds,
PackageParameters params)
Choose DMD section(s) to crosswalk.
|
void |
DSpaceAIPIngester.crosswalkObjectDmd(Context context,
DSpaceObject dso,
METSManifest manifest,
AbstractMETSIngester.MdrefManager callback,
org.jdom.Element[] dmds,
PackageParameters params)
Choose DMD section(s) to crosswalk.
|
abstract void |
AbstractMETSIngester.crosswalkObjectDmd(Context context,
DSpaceObject dso,
METSManifest manifest,
AbstractMETSIngester.MdrefManager callback,
org.jdom.Element[] dmds,
PackageParameters params)
Select the
dmdSec element(s) to apply to the Item. |
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) |
void |
PDFPackager.disseminate(Context context,
DSpaceObject dso,
PackageParameters params,
File pkgFile)
VERY crude dissemination: just look for the first
bitstream with the PDF package type, and toss it out.
|
void |
DSpaceAIPDisseminator.disseminate(Context context,
DSpaceObject dso,
PackageParameters params,
File pkgFile) |
void |
AbstractMETSDisseminator.disseminate(Context context,
DSpaceObject dso,
PackageParameters params,
File pkgFile)
Export the object (Item, Collection, or Community) as a
"package" on the indicated OutputStream.
|
void |
DSpaceMETSIngester.finishObject(Context context,
DSpaceObject dso,
PackageParameters params) |
void |
DSpaceAIPIngester.finishObject(Context context,
DSpaceObject dso,
PackageParameters params)
Last change to fix up a DSpace Object.
|
abstract void |
AbstractMETSIngester.finishObject(Context context,
DSpaceObject dso,
PackageParameters params)
Hook for final "finishing" operations on the new Object.
|
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 |
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 |
AbstractMETSIngester.getObjectHandle(METSManifest manifest)
Determines the handle of the DSpace object represented in this METS doc.
|
int |
DSpaceMETSIngester.getObjectType(METSManifest manifest) |
int |
DSpaceAIPIngester.getObjectType(METSManifest manifest)
Return the type of DSpaceObject in this package; it is
in the TYPE attribute of the mets:mets element.
|
abstract int |
AbstractMETSIngester.getObjectType(METSManifest manifest)
Determines what type of DSpace object is represented in this METS doc.
|
DSpaceObject |
AbstractMETSIngester.getParentObject(Context context,
METSManifest manifest)
Determines what parent DSpace object is referenced in this METS doc.
|
DSpaceObject |
PDFPackager.ingest(Context context,
DSpaceObject parent,
File pkgFile,
PackageParameters params,
String license)
Create new Item out of the ingested package, in the indicated
collection.
|
DSpaceObject |
AbstractMETSIngester.ingest(Context context,
DSpaceObject parent,
File pkgFile,
PackageParameters params,
String license)
Create a new DSpace object out of a METS content package.
|
protected DSpaceObject |
AbstractMETSIngester.ingestObject(Context context,
DSpaceObject parent,
METSManifest manifest,
File pkgFile,
PackageParameters params,
String license)
Ingest/import a single DSpace Object, based on the associated METS
Manifest and the parameters passed to the METSIngester
|
protected edu.harvard.hul.ois.mets.Mets |
AbstractMETSDisseminator.makeManifest(Context context,
DSpaceObject dso,
PackageParameters params,
AbstractMETSDisseminator.MdStreamCache extraStreams)
Write out a METS manifest.
|
protected edu.harvard.hul.ois.mets.helper.MdSec |
AbstractMETSDisseminator.makeMdSec(Context context,
DSpaceObject dso,
Class mdSecClass,
String typeSpec,
PackageParameters params,
AbstractMETSDisseminator.MdStreamCache extraStreams)
Create an element wrapped around a metadata reference (either mdWrap
or mdRef); i.e.
|
DSpaceObject |
AbstractMETSIngester.replace(Context context,
DSpaceObject dsoToReplace,
File pkgFile,
PackageParameters params)
Replace an existing DSpace object with the contents of a METS-based
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.
|
protected void |
AbstractMETSDisseminator.writeZipPackage(Context context,
DSpaceObject dso,
PackageParameters params,
OutputStream pkg)
Make a Zipped up METS package for the given DSpace Object
|
Copyright © 2017 DuraSpace. All rights reserved.