|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.outerj.daisy.navigation.impl.AbstractParentNode
org.outerj.daisy.navigation.impl.GroupNode
Field Summary |
Fields inherited from class org.outerj.daisy.navigation.impl.AbstractParentNode |
children |
Fields inherited from interface org.outerj.daisy.navigation.impl.Node |
NAVIGATION_NS |
Constructor Summary | |
GroupNode(java.lang.String id,
java.lang.String label)
|
Method Summary | |
boolean |
checkId(java.lang.String id)
Returns true if the id of this node equals the specified id. |
java.lang.String |
findFirstDocumentNode(java.lang.String path,
long userId,
long[] roleIds)
|
void |
generateXml(org.xml.sax.ContentHandler contentHandler,
int depth,
java.lang.String path,
long userId,
long[] roleIds)
Generates a full, non-contextualized navigation tree up to the specified depth. |
void |
generateXml(org.xml.sax.ContentHandler contentHandler,
Node[] activeNodePath,
int pos,
boolean includeOnlyActivePath,
java.lang.String path,
long userId,
long[] roleIds)
|
java.lang.String |
getId()
Returns the id of this node, only works when isIdentifiable() returns true,
otherwise throws an UnsupportedOperationException. |
boolean |
isExpandable()
Returns true for expandable nodes, these are nodes which themselves are not a part of the generated navigation tree, but are replaced by one or more other nodes. |
boolean |
isIdentifiable()
Returns true if this node has an ID and will generate a corresponding node in the output tree. |
boolean |
isVisible(long userId,
long[] roleIds)
Returns true if this node or any of its chilren would produce a visible node in the generated navigation tree. |
void |
populateNodeLookupMap(java.util.Map map,
java.lang.String path)
Nodes representing documents should add themselves to the map, using as key a VariantKey object and as value a String object representing the navigation tree path. |
Methods inherited from class org.outerj.daisy.navigation.impl.AbstractParentNode |
add, generateXml, generateXml, getExpandedChildList, searchDocument, searchPath |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GroupNode(java.lang.String id, java.lang.String label)
id
- an ID that should be unique within the parent node.Method Detail |
public boolean checkId(java.lang.String id)
Node
public boolean isExpandable()
Node
public void populateNodeLookupMap(java.util.Map map, java.lang.String path) throws org.outerj.daisy.repository.RepositoryException
Node
populateNodeLookupMap
in interface Node
populateNodeLookupMap
in class AbstractParentNode
org.outerj.daisy.repository.RepositoryException
public void generateXml(org.xml.sax.ContentHandler contentHandler, int depth, java.lang.String path, long userId, long[] roleIds) throws org.outerj.daisy.repository.RepositoryException, org.xml.sax.SAXException
Node
generateXml
in interface Node
generateXml
in class AbstractParentNode
org.outerj.daisy.repository.RepositoryException
org.xml.sax.SAXException
public void generateXml(org.xml.sax.ContentHandler contentHandler, Node[] activeNodePath, int pos, boolean includeOnlyActivePath, java.lang.String path, long userId, long[] roleIds) throws org.outerj.daisy.repository.RepositoryException, org.xml.sax.SAXException
generateXml
in interface Node
generateXml
in class AbstractParentNode
org.outerj.daisy.repository.RepositoryException
org.xml.sax.SAXException
public boolean isVisible(long userId, long[] roleIds) throws org.outerj.daisy.repository.RepositoryException
Node
org.outerj.daisy.repository.RepositoryException
public boolean isIdentifiable()
Node
public java.lang.String getId()
Node
Node.isIdentifiable()
returns true,
otherwise throws an UnsupportedOperationException.
getId
in interface Node
getId
in class AbstractParentNode
public java.lang.String findFirstDocumentNode(java.lang.String path, long userId, long[] roleIds) throws org.outerj.daisy.repository.RepositoryException
org.outerj.daisy.repository.RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |