public class CommunityBrowser extends AbstractDSpaceTransformer implements org.apache.cocoon.caching.CacheableProcessingComponent
The configuration option available:
<depth exclude-collections="true">999</depth>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CommunityBrowser.TreeNode
Private class to represent the tree structure of communities and collections.
|
| Modifier and Type | Field and Description |
|---|---|
protected CommunityService |
communityService |
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
protected CommunityService communityService
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 AbstractDSpaceTransformerresolver - source resolver.objectModel - object model.src - source.parameters - sitemap parameters.org.apache.cocoon.ProcessingException - passed through.SAXException - passed through.IOException - passed through.public 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 AbstractDSpaceTransformerpageMeta - to be added.SAXException - passed through.WingException - passed through.UIException - passed through.SQLException - passed through.IOException - passed through.AuthorizeException - passed through.public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException
addBody in interface DSpaceTransformeraddBody in interface WingTransformeraddBody in class AbstractDSpaceTransformerbody - to be added.SAXException - passed through.WingException - passed through.UIException - passed through.SQLException - passed through.IOException - passed through.AuthorizeException - passed through.public void buildReferenceSet(ReferenceSet referenceSet, CommunityBrowser.TreeNode node) throws WingException
referenceSet - The include setnode - The current node of the hierarchy.WingException - passed through.public void buildList(List list, CommunityBrowser.TreeNode node) throws WingException
list - The parent listnode - The current node of the hierarchy.WingException - passed through.public void recycle()
AbstractWingTransformerrecycle in interface org.apache.avalon.excalibur.pool.Recyclablerecycle in class AbstractDSpaceTransformerCopyright © 2016 DuraSpace. All rights reserved.