public class ContainerAdapter extends AbstractAdapter
contentHandler, contextPath, DIM, DIM_URI, lexicalHandler, METS, METS_DEFINED_TYPES, METS_URI, namespaces, XLINK, XLINK_URI, XSI, XSI_URI| Constructor and Description |
|---|
ContainerAdapter(Context context,
DSpaceObject dso,
String contextPath)
Construct a new CommunityCollectionMETSAdapter.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
endElement, getDisseminationCrosswalk, getGenericID, isDefinedMETStype, renderAdministrativeSection, renderBehavioralSection, renderExtraSections, renderFile, renderFile, renderHeader, renderMETS, renderStructuralLink, sendCharacters, setAmdTypes, setDigiProvMDTypes, setDmdTypes, setFileGrpTypes, setRightsMDTypes, setSections, setSourceMDTypes, setStructTypes, setTechMDTypes, startElementpublic ContainerAdapter(Context context, DSpaceObject dso, String contextPath)
dso - A DSpace Community or Collection to adapt.contextPath - The contextPath of this webapplication.public DSpaceObject getContainer()
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 getFileID(Bitstream bitstream)
protected String getGroupFileID(Bitstream bitstream)
protected void renderDescriptiveSection()
throws WingException,
SAXException,
CrosswalkException,
IOException,
SQLException
renderDescriptiveSection in class AbstractAdapterWingExceptionSAXExceptionCrosswalkExceptionIOExceptionSQLExceptionprotected void renderFileSection()
throws SAXException
renderFileSection in class AbstractAdapterSAXExceptionprotected void renderStructureMap()
throws SQLException,
SAXException
renderStructureMap in class AbstractAdapterSQLExceptionSAXExceptionCopyright © 2015 DuraSpace. All Rights Reserved.