public class ContainerAdapter extends AbstractAdapter
| Modifier and Type | Field and Description |
|---|---|
protected CollectionService |
collectionService |
protected CommunityService |
communityService |
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) |
protected String |
getGroupFileID(Bitstream bitstream) |
protected String |
getMETSID()
Use the handle as the id for this METS document.
|
protected String |
getMETSLabel() |
protected String |
getMETSOBJEDIT() |
protected String |
getMETSOBJID() |
protected String |
getMETSProfile()
Return the profile to use for communities and collections.
|
protected void |
renderDescriptiveSection()
Render the METS descriptive section.
|
protected void |
renderFileSection(Context context)
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, startElementprotected CommunityService communityService
protected CollectionService collectionService
public ContainerAdapter(Context context, DSpaceObject dso, String contextPath)
context - session context.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 AbstractAdapterWingException - never.protected String getMETSLabel()
getMETSLabel in class AbstractAdapterprotected String getFileID(Bitstream bitstream)
bitstream - the bitstream to be identified.protected String getGroupFileID(Bitstream bitstream)
bitstream - the bitstream to be queried.protected void renderDescriptiveSection()
throws WingException,
SAXException,
CrosswalkException,
IOException,
SQLException
Example:
<dmdSec>
<mdWrap MDTYPE="MODS">
<xmlData>
... content from the crosswalk ...
</xmlDate>
</mdWrap>
</dmdSec>
renderDescriptiveSection in class AbstractAdapterWingException - on XML errors.SAXException - passed through.CrosswalkException - passed through.IOException - if items could not be counted.SQLException - passed through.protected void renderFileSection(Context context) throws SAXException, SQLException
Example:
<fileSec>
<fileGrp USE="LOGO">
<file ... >
<fLocate ... >
</file>
</fileGrp>
</fileSec>
renderFileSection in class AbstractAdaptercontext - session context.SAXException - passed through.SQLException - passed through.protected void renderStructureMap()
throws SQLException,
SAXException
Example:
<structMap TYPE="LOGICAL" LABEL="DSpace">
<div TYPE="DSpace Collection" DMDID="space-separated list of ids">
<fptr FILEID="logo id"/>
</div>
</structMap>
renderStructureMap in class AbstractAdapterSQLException - passed through.SAXException - passed through.Copyright © 2016 DuraSpace. All rights reserved.