|
||||||||||
| 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,
String contextPath)
Construct a new ItemAdapter |
|
| Method Summary | |
|---|---|
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 helpfull 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 |
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,
String contextPath)
item - The DSpace item to adapt.contextPath - The contextpath for this webapplication.| Method Detail |
|---|
public Item getItem()
protected String getMETSOBJID()
getMETSOBJID in class AbstractAdapterprotected String getMETSOBJEDIT()
getMETSOBJEDIT in class AbstractAdapterprotected String getMETSID()
getMETSID in class AbstractAdapter
protected String getMETSProfile()
throws WingException
getMETSProfile in class AbstractAdapterWingExceptionprotected String getMETSLabel()
getMETSLabel in class AbstractAdapterprotected String getFileID(Bitstream bitstream)
protected 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 AbstractAdapterWingException
SAXException
CrosswalkException
IOException
SQLException
protected void renderAdministrativeSection()
throws WingException,
SAXException,
CrosswalkException,
IOException,
SQLException
renderAdministrativeSection in class AbstractAdapterWingException
SAXException
CrosswalkException
IOException
SQLException
protected 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 on
WingException
SAXException
CrosswalkException
IOException
SQLException
protected void renderFileSection()
throws SQLException,
SAXException
renderFileSection in class AbstractAdapterSQLException
SAXException
protected void renderStructureMap()
throws SQLException,
SAXException
renderStructureMap in class AbstractAdapterSQLException
SAXException
protected void renderExtraSections()
throws SAXException,
SQLException,
IOException
renderExtraSections in class AbstractAdapterSAXException
SQLException
IOException
protected List<Bundle> findEnabledBundles()
throws SQLException
SQLException
protected static Bitstream findOriginalBitstream(Item item,
Bitstream derived)
throws SQLException
item - the item we're dealing withderived - the derived bitstream
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||