public class CommunityBrowser extends AbstractDSpaceTransformer implements org.apache.cocoon.caching.CacheableProcessingComponent
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CommunityBrowser.TreeNode
Private class to represent the tree structure of communities & collections.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
depth
What depth is the maximum depth of the tree
|
protected boolean |
excludeCollections
Should collections be excluded from the list
|
protected CommunityBrowser.TreeNode |
root
Cached version the community / collection hierarchy
|
static Message |
T_dspace_home
Language Strings
|
static Message |
T_head |
static Message |
T_select |
static Message |
T_title |
static Message |
T_trail |
context, contextPath, eperson, knot, objectModel, parameters, servletPath, sitemapURI, url| Constructor and Description |
|---|
CommunityBrowser() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBody(Body body)
Add a community-browser division that includes references to community and
collection metadata.
|
void |
addPageMeta(PageMeta pageMeta)
Add a page title and trail links.
|
void |
buildList(List list,
CommunityBrowser.TreeNode node)
Recursively build a list of the community / collection hierarchy based upon
the given NodeTree.
|
void |
buildReferenceSet(ReferenceSet referenceSet,
CommunityBrowser.TreeNode node)
Recursively build an includeset of the community / collection hierarchy based upon
the given NodeTree.
|
Serializable |
getKey()
Generate the unique caching key.
|
org.apache.excalibur.source.SourceValidity |
getValidity()
Generate the cache validity object.
|
void |
recycle()
recycle
|
void |
setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters parameters)
Set the component up, pulling any configuration values from the sitemap
parameters.
|
addOptions, addUserMeta, decodeFromURL, dispose, encodeForURL, generateURL, getComponentName, getObjectManager, handleExceptioncreateWingDocument, endDocument, endElement, endPrefixMapping, getDefaultMessageCatalogue, message, message, setupWing, startDocument, startElement, startPrefixMappingcharacters, comment, endCDATA, endDTD, endEntity, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startEntitysetConsumer, setContentHandler, setLexicalHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntitycomment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntitypublic static final Message T_dspace_home
public static final Message T_title
public static final Message T_trail
public static final Message T_head
public static final Message T_select
protected boolean excludeCollections
protected int depth
protected CommunityBrowser.TreeNode root
public void setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters parameters)
throws org.apache.cocoon.ProcessingException,
SAXException,
IOException
setup in interface org.apache.cocoon.sitemap.SitemapModelComponentsetup in class AbstractDSpaceTransformerorg.apache.cocoon.ProcessingExceptionSAXExceptionIOExceptionpublic Serializable getKey()
getKey in interface org.apache.cocoon.caching.CacheableProcessingComponentpublic org.apache.excalibur.source.SourceValidity getValidity()
getValidity in interface org.apache.cocoon.caching.CacheableProcessingComponentpublic void addPageMeta(PageMeta pageMeta) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException
addPageMeta in interface DSpaceTransformeraddPageMeta in interface WingTransformeraddPageMeta in class AbstractDSpaceTransformerSAXExceptionWingExceptionUIExceptionSQLExceptionIOExceptionAuthorizeExceptionpublic void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException
addBody in interface DSpaceTransformeraddBody in interface WingTransformeraddBody in class AbstractDSpaceTransformerSAXExceptionWingExceptionUIExceptionSQLExceptionIOExceptionAuthorizeExceptionpublic void buildReferenceSet(ReferenceSet referenceSet, CommunityBrowser.TreeNode node) throws WingException
referenceSet - The include setnode - The current node of the hierarchy.WingExceptionpublic void buildList(List list, CommunityBrowser.TreeNode node) throws WingException
list - The parent listnode - The current node of the hierarchy.WingExceptionpublic void recycle()
recycle in interface org.apache.avalon.excalibur.pool.Recyclablerecycle in class AbstractDSpaceTransformerCopyright © 2014 DuraSpace. All Rights Reserved.