|
||||||||||
| 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,
String contextPath)
Construct a new CommunityCollectionMETSAdapter. |
|
| Method Summary | |
|---|---|
DSpaceObject |
getContainer()
Return the container, community or collection, object |
protected String |
getFileID(Bitstream bitstream)
Return a unique id for the given bitstream |
protected String |
getGroupFileID(Bitstream bitstream)
Return a group id for the given bitstream |
protected String |
getMETSID()
Use the handle as the id for this METS document |
protected String |
getMETSLabel()
Return a friendly label for the METS document to say we are a community or collection. |
protected String |
getMETSOBJEDIT()
|
protected String |
getMETSOBJID()
Return the URL of this community/collection in the interface |
protected 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,
String contextPath)
dso - A DSpace Community or Collection to adapt.contextPath - The contextPath of this webapplication.| Method Detail |
|---|
public DSpaceObject getContainer()
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 void renderDescriptiveSection()
throws WingException,
SAXException,
CrosswalkException,
IOException,
SQLException
renderDescriptiveSection in class AbstractAdapterWingException
SAXException
CrosswalkException
IOException
SQLException
protected void renderFileSection()
throws SAXException
renderFileSection in class AbstractAdapterSAXException
protected void renderStructureMap()
throws SQLException,
SAXException
renderStructureMap in class AbstractAdapterSQLException
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||