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,
String contextPath)
Construct a new ItemAdapter
|
| Modifier and Type | Method and Description |
|---|---|
protected 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 String |
getAmdSecID(String admSecName,
String mdType,
DSpaceObject dso)
Return a techMD id for a bitstream.
|
protected String |
getFileID(Bitstream bitstream)
Return a unique id for a bitstream.
|
protected String |
getGroupFileID(Bitstream bitstream)
Return a group id for a bitstream.
|
Item |
getItem()
Return the item
|
protected String |
getMETSID()
Return the item's handle as the METS ID
|
protected String |
getMETSLabel()
Return a helpful label that this is a DSpace Item.
|
protected String |
getMETSOBJEDIT() |
protected String |
getMETSOBJID()
Return the URL of this item in the interface
|
protected String |
getMETSProfile()
Return the official METS SIP Profile.
|
protected void |
renderAdministrativeSection()
Render the METS administrative section.
|
protected void |
renderAmdSubSection(String amdSecName,
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,
String fileID,
String groupID,
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 String getMETSOBJID()
getMETSOBJID in class AbstractAdapterprotected String getMETSOBJEDIT()
getMETSOBJEDIT in class AbstractAdapterprotected String getMETSID()
getMETSID in class AbstractAdapterprotected String getMETSProfile() throws WingException
getMETSProfile in class AbstractAdapterWingExceptionprotected String getMETSLabel()
getMETSLabel in class AbstractAdapterprotected String getGroupFileID(Bitstream bitstream)
protected String getAmdSecID(String admSecName, String mdType, DSpaceObject dso)
protected void renderDescriptiveSection()
throws WingException,
SAXException,
CrosswalkException,
IOException,
SQLException
renderDescriptiveSection in class AbstractAdapterWingExceptionSAXExceptionCrosswalkExceptionIOExceptionSQLExceptionprotected void renderAdministrativeSection()
throws WingException,
SAXException,
CrosswalkException,
IOException,
SQLException
renderAdministrativeSection in class AbstractAdapterWingExceptionSAXExceptionCrosswalkExceptionIOExceptionSQLExceptionprotected void renderAmdSubSection(String amdSecName, String mdType, DisseminationCrosswalk crosswalk, DSpaceObject dso) throws WingException, SAXException, CrosswalkException, IOException, 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 onWingExceptionSAXExceptionCrosswalkExceptionIOExceptionSQLExceptionprotected void renderFileSection()
throws SQLException,
SAXException
renderFileSection in class AbstractAdapterSQLExceptionSAXExceptionprotected void renderStructureMap()
throws SQLException,
SAXException
renderStructureMap in class AbstractAdapterSQLExceptionSAXExceptionprotected void renderExtraSections()
throws SAXException,
SQLException,
IOException
renderExtraSections in class AbstractAdapterSAXExceptionSQLExceptionIOExceptionprotected List<Bundle> findEnabledBundles() throws SQLException
SQLExceptionprotected static Bitstream findOriginalBitstream(Item item, Bitstream derived) throws SQLException
item - the item we're dealing withderived - the derived bitstreamSQLExceptionprotected void renderFileWithAllowed(Item item, Bitstream bitstream, String fileID, String groupID, String admID) throws 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 fileSAXExceptionCopyright © 2016 DuraSpace. All Rights Reserved.