|
||||||||||
| 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.ContainerAdapter
public class ContainerAdapter
This is an adapter which translates DSpace containers (communities & collections) into METS documents. This adapter follows the DSpace METS profile however that profile does not define how a community or collection should be described, but we make the obvious decisions to deviate when nessasary from the profile. The METS document consists of three parts: descriptive metadata section, file section, and a structural map. The descriptive metadata sections holds metadata about the item being adapted using DSpace crosswalks. This is the same way the item adapter works. However the file section and structural map are a bit different. In these casses the the only files listed is the one logo that may be attached to a community or collection.
| 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 | |
|---|---|
ContainerAdapter(Context context,
DSpaceObject dso,
java.lang.String contextPath)
Construct a new CommunityCollectionMETSAdapter. |
|
| Method Summary | |
|---|---|
DSpaceObject |
getContainer()
Return the container, community or collection, object |
protected java.lang.String |
getFileID(Bitstream bitstream)
Return a unique id for the given bitstream |
protected java.lang.String |
getGroupFileID(Bitstream bitstream)
Return a group id for the given bitstream |
protected java.lang.String |
getMETSID()
Use the handle as the id for this METS document |
protected java.lang.String |
getMETSLabel()
Return a friendly label for the METS document to say we are a community or collection. |
protected java.lang.String |
getMETSOBJEDIT()
|
protected java.lang.String |
getMETSOBJID()
Return the URL of this community/collection in the interface |
protected java.lang.String |
getMETSProfile()
Return the profile to use for communities and collections. |
protected void |
renderDescriptiveSection()
Render the METS descriptive section. |
protected void |
renderFileSection()
Render the METS file section. |
protected void |
renderStructureMap()
Render the container's structural map. |
| Methods inherited from class org.dspace.app.xmlui.objectmanager.AbstractAdapter |
|---|
endElement, getDisseminationCrosswalk, getGenericID, isDefinedMETStype, renderAdministrativeSection, renderBehavioralSection, renderExtraSections, 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 ContainerAdapter(Context context,
DSpaceObject dso,
java.lang.String contextPath)
dso - A DSpace Community or Collection to adapt.contextPath - The contextPath of this webapplication.| Method Detail |
|---|
public DSpaceObject getContainer()
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 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 renderFileSection()
throws org.xml.sax.SAXException
renderFileSection in class AbstractAdapterorg.xml.sax.SAXException
protected void renderStructureMap()
throws java.sql.SQLException,
org.xml.sax.SAXException
renderStructureMap in class AbstractAdapterjava.sql.SQLException
org.xml.sax.SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||