Uses of Class
org.dspace.content.packager.PackageValidationException
Packages that use PackageValidationException
Package
Description
Provides an API and implementations of content packages, used in the context of ingest (SIP), or dissemination (DIP)
-
Uses of PackageValidationException in org.dspace.content.packager
Methods in org.dspace.content.packager that throw PackageValidationExceptionModifier and TypeMethodDescriptionprotected StringAbstractMETSDisseminator.addAmdSec(Context context, DSpaceObject dso, PackageParameters params, edu.harvard.hul.ois.mets.Mets mets, AbstractMETSDisseminator.MdStreamCache extraStreams) protected voidAbstractMETSIngester.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 Manifestprotected voidAbstractMETSDisseminator.addBitstreamsToZip(Context context, DSpaceObject dso, PackageParameters params, ZipOutputStream zip) Add Bitstreams associated with a given DSpace Object into an existing ZipOutputStreamprotected voidAbstractMETSIngester.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.abstract voidAbstractMETSIngester.addLicense(Context context, Item item, String license, Collection collection, PackageParameters params) Add license(s) to Item based on contents of METS and other policies.voidDSpaceAIPIngester.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.voidDSpaceMETSIngester.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.protected voidAbstractMETSIngester.addManifestBitstream(Context context, Item item, METSManifest manifest) Save/Preserve the METS Manifest as a Bitstream attached to the given DSpace item.protected voidAbstractMETSIngester.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 voidAbstractMETSDisseminator.addToAmdSec(edu.harvard.hul.ois.mets.AmdSec fAmdSec, String[] mdTypes, Class mdSecClass, Context context, DSpaceObject dso, PackageParameters params, AbstractMETSDisseminator.MdStreamCache extraStreams) static voidPackageUtils.checkItemMetadata(Item item) Test that item has adequate metadata.voidMETSManifest.crosswalkBitstream(Context context, PackageParameters params, Bitstream bitstream, String fileId, METSManifest.Mdref callback) Crosswalk the metadata associated with a particularfileelement into the bitstream it corresponds to.voidMETSManifest.crosswalkBundle(Context context, PackageParameters params, Bundle bundle, String fileId, METSManifest.Mdref callback) voidMETSManifest.crosswalkItemDmd(Context context, PackageParameters params, DSpaceObject dso, org.jdom2.Element dmdSec, METSManifest.Mdref callback) Invokes appropriate crosswalks on Item-wide descriptive metadata.abstract voidAbstractMETSIngester.crosswalkObjectDmd(Context context, DSpaceObject dso, METSManifest manifest, AbstractMETSIngester.MdrefManager callback, org.jdom2.Element[] dmds, PackageParameters params) Select thedmdSecelement(s) to apply to the Item.voidDSpaceAIPIngester.crosswalkObjectDmd(Context context, DSpaceObject dso, METSManifest manifest, AbstractMETSIngester.MdrefManager callback, org.jdom2.Element[] dmds, PackageParameters params) Choose DMD section(s) to crosswalk.voidDSpaceMETSIngester.crosswalkObjectDmd(Context context, DSpaceObject dso, METSManifest manifest, AbstractMETSIngester.MdrefManager callback, org.jdom2.Element[] dmds, PackageParameters params) Choose DMD section(s) to crosswalk.voidMETSManifest.crosswalkObjectOtherAdminMD(Context context, PackageParameters params, DSpaceObject dso, METSManifest.Mdref callback) Crosswalk all technical and source metadata sections that belong to the whole object.booleanMETSManifest.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 voidMETSManifest.crosswalkXmd(Context context, PackageParameters params, DSpaceObject dso, org.jdom2.Element xmd, METSManifest.Mdref callback, boolean createMissingMetadataFields) voidAbstractMETSDisseminator.disseminate(Context context, DSpaceObject dso, PackageParameters params, File pkgFile) Export the object (Item, Collection, or Community) as a "package" on the indicated OutputStream.voidDSpaceAIPDisseminator.disseminate(Context context, DSpaceObject dso, PackageParameters params, File pkgFile) voidPDFPackager.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.abstract voidAbstractMETSIngester.finishObject(Context context, DSpaceObject dso, PackageParameters params) Hook for final "finishing" operations on the new Object.voidDSpaceAIPIngester.finishObject(Context context, DSpaceObject dso, PackageParameters params) Last change to fix up a DSpace Object.voidDSpaceMETSIngester.finishObject(Context context, DSpaceObject dso, PackageParameters params) METSManifest.Mdref.getInputStream(org.jdom2.Element mdRef) Make the contents of an external resource mentioned in anmdRefelement available as anInputStream.METSManifest.getMdContentAsStream(org.jdom2.Element mdSec, METSManifest.Mdref callback) Return contents of *md element as stream.AbstractMETSIngester.getObjectHandle(METSManifest manifest) Determines the handle of the DSpace object represented in this METS doc.AbstractMETSIngester.getObjectID(METSManifest manifest) abstract intAbstractMETSIngester.getObjectType(METSManifest manifest) Determines what type of DSpace object is represented in this METS doc.intDSpaceAIPIngester.getObjectType(METSManifest manifest) Return the type of DSpaceObject in this package; it is in the TYPE attribute of the mets:mets element.intDSpaceMETSIngester.getObjectType(METSManifest manifest) AbstractMETSIngester.getParentObject(Context context, METSManifest manifest) Determines what parent DSpace object is referenced in this METS doc.AbstractMETSIngester.ingest(Context context, DSpaceObject parent, File pkgFile, PackageParameters params, String license) Create a new DSpace object out of a METS content package.PDFPackager.ingest(Context context, DSpaceObject parent, File pkgFile, PackageParameters params, String license) Create new Item out of the ingested package, in the indicated collection.protected DSpaceObjectAbstractMETSIngester.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 METSIngesterprotected edu.harvard.hul.ois.mets.MetsAbstractMETSDisseminator.makeManifest(Context context, DSpaceObject dso, PackageParameters params, AbstractMETSDisseminator.MdStreamCache extraStreams) Write out a METS manifest.protected edu.harvard.hul.ois.mets.helper.MdSecAbstractMETSDisseminator.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.dmdSec, techMd, sourceMd, etc.AbstractMETSIngester.replace(Context context, DSpaceObject dsoToReplace, File pkgFile, PackageParameters params) Replace an existing DSpace object with the contents of a METS-based package.protected DSpaceObjectAbstractMETSIngester.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 voidAbstractMETSDisseminator.writeZipPackage(Context context, DSpaceObject dso, PackageParameters params, OutputStream pkg) Make a Zipped up METS package for the given DSpace Object