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,
java.lang.String contextPath)
Construct a new CommunityCollectionMETSAdapter.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, java.lang.String contextPath)
dso - A DSpace Community or Collection to adapt.contextPath - The contextPath of this webapplication.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 AbstractAdapterprotected 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 AbstractAdapterWingExceptionorg.xml.sax.SAXExceptionCrosswalkExceptionjava.io.IOExceptionjava.sql.SQLExceptionprotected void renderFileSection()
throws org.xml.sax.SAXException
renderFileSection in class AbstractAdapterorg.xml.sax.SAXExceptionprotected void renderStructureMap()
throws java.sql.SQLException,
org.xml.sax.SAXException
renderStructureMap in class AbstractAdapterjava.sql.SQLExceptionorg.xml.sax.SAXExceptionCopyright © 2018 DuraSpace. All Rights Reserved.