public class ItemAdapter extends AbstractAdapter
contentHandler, contextPath, DIM, DIM_URI, lexicalHandler, METS, METS_DEFINED_TYPES, METS_URI, namespaces, XLINK, XLINK_URI, XSI, XSI_URI| Constructor and Description |
|---|
ItemAdapter(Context context,
Item item,
java.lang.String contextPath)
Construct a new ItemAdapter
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<Bundle> |
findEnabledBundles()
Checks which Bundles of current item a user has requested.
|
protected static Bitstream |
findOriginalBitstream(Item item,
Bitstream derived)
For a bitstream that's a thumbnail or extracted text, find the
corresponding bitstream it was derived from, in the ORIGINAL bundle.
|
protected java.lang.String |
getAmdSecID(java.lang.String admSecName,
java.lang.String mdType,
DSpaceObject dso)
Return a techMD id for a bitstream.
|
protected java.lang.String |
getFileID(Bitstream bitstream)
Return a unique id for a bitstream.
|
protected java.lang.String |
getGroupFileID(Bitstream bitstream)
Return a group id for a bitstream.
|
Item |
getItem()
Return the item
|
protected java.lang.String |
getMETSID()
Return the item's handle as the METS ID
|
protected java.lang.String |
getMETSLabel()
Return a helpful label that this is a DSpace Item.
|
protected java.lang.String |
getMETSOBJEDIT() |
protected java.lang.String |
getMETSOBJID()
Return the URL of this item in the interface
|
protected java.lang.String |
getMETSProfile()
Return the official METS SIP Profile.
|
protected void |
renderAdministrativeSection()
Render the METS administrative section.
|
protected void |
renderAmdSubSection(java.lang.String amdSecName,
java.lang.String mdType,
DisseminationCrosswalk crosswalk,
DSpaceObject dso)
Render a sub-section of the administrative metadata section.
|
protected void |
renderDescriptiveSection()
Render the METS descriptive section.
|
protected void |
renderExtraSections()
Render any extra METS section.
|
protected void |
renderFileSection()
Render the METS file section.
|
protected void |
renderFileWithAllowed(Item item,
Bitstream bitstream,
java.lang.String fileID,
java.lang.String groupID,
java.lang.String admID)
Generate a METS file element for a given bitstream.
|
protected void |
renderStructureMap()
Render the item's structural map.
|
endElement, getDisseminationCrosswalk, getGenericID, isDefinedMETStype, renderBehavioralSection, renderFile, renderFile, renderHeader, renderMETS, renderStructuralLink, sendCharacters, setAmdTypes, setDigiProvMDTypes, setDmdTypes, setFileGrpTypes, setRightsMDTypes, setSections, setSourceMDTypes, setStructTypes, setTechMDTypes, startElementpublic Item getItem()
protected java.lang.String getMETSOBJID()
getMETSOBJID in class AbstractAdapterprotected java.lang.String getMETSOBJEDIT()
getMETSOBJEDIT in class AbstractAdapterprotected java.lang.String getMETSID()
getMETSID in class AbstractAdapterprotected java.lang.String getMETSProfile()
throws WingException
getMETSProfile in class AbstractAdapterWingExceptionprotected java.lang.String getMETSLabel()
getMETSLabel in class AbstractAdapterprotected java.lang.String getFileID(Bitstream bitstream)
protected java.lang.String getGroupFileID(Bitstream bitstream)
protected java.lang.String getAmdSecID(java.lang.String admSecName,
java.lang.String mdType,
DSpaceObject dso)
protected void renderDescriptiveSection()
throws WingException,
org.xml.sax.SAXException,
CrosswalkException,
java.io.IOException,
java.sql.SQLException
renderDescriptiveSection in class AbstractAdapterWingExceptionorg.xml.sax.SAXExceptionCrosswalkExceptionjava.io.IOExceptionjava.sql.SQLExceptionprotected void renderAdministrativeSection()
throws WingException,
org.xml.sax.SAXException,
CrosswalkException,
java.io.IOException,
java.sql.SQLException
renderAdministrativeSection in class AbstractAdapterWingExceptionorg.xml.sax.SAXExceptionCrosswalkExceptionjava.io.IOExceptionjava.sql.SQLExceptionprotected void renderAmdSubSection(java.lang.String amdSecName,
java.lang.String mdType,
DisseminationCrosswalk crosswalk,
DSpaceObject dso)
throws WingException,
org.xml.sax.SAXException,
CrosswalkException,
java.io.IOException,
java.sql.SQLException
amdSecName - Name of administrative metadata sectionmdType - Type of metadata section (e.g. PREMIS)crosswalk - The DisseminationCrosswalk to use to generate this sectiondso - The current DSpace object to use the crosswalk onWingExceptionorg.xml.sax.SAXExceptionCrosswalkExceptionjava.io.IOExceptionjava.sql.SQLExceptionprotected void renderFileSection()
throws java.sql.SQLException,
org.xml.sax.SAXException
renderFileSection in class AbstractAdapterjava.sql.SQLExceptionorg.xml.sax.SAXExceptionprotected void renderStructureMap()
throws java.sql.SQLException,
org.xml.sax.SAXException
renderStructureMap in class AbstractAdapterjava.sql.SQLExceptionorg.xml.sax.SAXExceptionprotected void renderExtraSections()
throws org.xml.sax.SAXException,
java.sql.SQLException,
java.io.IOException
renderExtraSections in class AbstractAdapterorg.xml.sax.SAXExceptionjava.sql.SQLExceptionjava.io.IOExceptionprotected java.util.List<Bundle> findEnabledBundles() throws java.sql.SQLException
java.sql.SQLExceptionprotected static Bitstream findOriginalBitstream(Item item, Bitstream derived) throws java.sql.SQLException
item - the item we're dealing withderived - the derived bitstreamjava.sql.SQLExceptionprotected void renderFileWithAllowed(Item item, Bitstream bitstream, java.lang.String fileID, java.lang.String groupID, java.lang.String admID) throws org.xml.sax.SAXException
item - If the bitstream is associated with an item provide the item
otherwise leave null.bitstream - The bitstream to build a file element for.fileID - The unique file id for this file.groupID - The group id for this file, if it is derived from another file
then they should share the same groupID.admID - The IDs of the administrative metadata sections which pertain
to this fileorg.xml.sax.SAXExceptionCopyright © 2018 DuraSpace. All Rights Reserved.