|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.xmlui.objectmanager.AbstractAdapter
org.dspace.app.xmlui.objectmanager.ItemAdapter
public class ItemAdapter
This is an adapter which translate a DSpace item into a METS document following the DSpace METS profile, err well mostly. At least if you use the proper configuration it will be fully complaint with the profile, however this adapter will allow you to configure it to be incorrect. When we are configured to be non-complaint with the profile the MET's profile is changed to reflect the diviation. The DSpace profile states that metadata should be given in MODS format. However you can configure this adapter to use any metadata crosswalk. When that case is detected we change the profile to say that we are divating from the standard profile and it lists what metadata has been added. There are four parts to an item's METS document: descriptive metadata, file section, structural map, and extra sections.
| Field Summary |
|---|
| Fields inherited from class org.dspace.app.xmlui.objectmanager.AbstractAdapter |
|---|
contentHandler, contextPath, DIM, DIM_URI, lexicalHandler, METS, METS_DEFINED_TYPES, METS_URI, namespaces, XLINK, XLINK_URI, XSI, XSI_URI |
| Constructor Summary | |
|---|---|
ItemAdapter(Context context,
Item item,
java.lang.String contextPath)
Construct a new ItemAdapter |
|
| Method Summary | |
|---|---|
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 helpfull 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 |
renderStructureMap()
Render the item's structural map. |
| Methods inherited from class org.dspace.app.xmlui.objectmanager.AbstractAdapter |
|---|
endElement, getDisseminationCrosswalk, getGenericID, isDefinedMETStype, renderBehavioralSection, renderFile, renderFile, renderHeader, renderMETS, renderStructuralLink, sendCharacters, setAmdTypes, setDigiProvMDTypes, setDmdTypes, setFileGrpTypes, setRightsMDTypes, setSections, setSourceMDTypes, setStructTypes, setTechMDTypes, startElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ItemAdapter(Context context,
Item item,
java.lang.String contextPath)
item - The DSpace item to adapt.contextPath - The contextpath for this webapplication.| Method Detail |
|---|
public 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 AbstractAdapter
protected 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 AbstractAdapterWingException
org.xml.sax.SAXException
CrosswalkException
java.io.IOException
java.sql.SQLException
protected void renderAdministrativeSection()
throws WingException,
org.xml.sax.SAXException,
CrosswalkException,
java.io.IOException,
java.sql.SQLException
renderAdministrativeSection in class AbstractAdapterWingException
org.xml.sax.SAXException
CrosswalkException
java.io.IOException
java.sql.SQLException
protected 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 on
WingException
org.xml.sax.SAXException
CrosswalkException
java.io.IOException
java.sql.SQLException
protected void renderFileSection()
throws java.sql.SQLException,
org.xml.sax.SAXException
renderFileSection in class AbstractAdapterjava.sql.SQLException
org.xml.sax.SAXException
protected void renderStructureMap()
throws java.sql.SQLException,
org.xml.sax.SAXException
renderStructureMap in class AbstractAdapterjava.sql.SQLException
org.xml.sax.SAXException
protected void renderExtraSections()
throws org.xml.sax.SAXException,
java.sql.SQLException,
java.io.IOException
renderExtraSections in class AbstractAdapterorg.xml.sax.SAXException
java.sql.SQLException
java.io.IOException
protected java.util.List<Bundle> findEnabledBundles()
throws java.sql.SQLException
java.sql.SQLException
protected static Bitstream findOriginalBitstream(Item item,
Bitstream derived)
throws java.sql.SQLException
item - the item we're dealing withderived - the derived bitstream
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||