org.mmbase.bridge.jsp.taglib
Class ListTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--org.mmbase.bridge.jsp.taglib.ContextReferrerTag
                    |
                    +--org.mmbase.bridge.jsp.taglib.CloudReferrerTag
                          |
                          +--org.mmbase.bridge.jsp.taglib.NodeReferrerTag
                                |
                                +--org.mmbase.bridge.jsp.taglib.AbstractNodeProviderTag
                                      |
                                      +--org.mmbase.bridge.jsp.taglib.AbstractNodeListTag
                                            |
                                            +--org.mmbase.bridge.jsp.taglib.ListTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, ListProvider, NodeProvider, java.io.Serializable, javax.servlet.jsp.tagext.Tag, TagIdentifier
Direct Known Subclasses:
RelatedTag

public class ListTag
extends AbstractNodeListTag

ListTag, provides functionality for listing cluster nodes ('multilevel' search) in MMBase

Author:
Kees Jongenburger, Michiel Meeuwissen, Pierre van Rooden
See Also:
Serialized Form

Field Summary
protected  java.lang.String distinctString
           
protected  java.lang.String fields
           
protected  java.lang.String nodesString
           
protected  java.lang.String pathString
           
protected  java.lang.String searchString
           
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.AbstractNodeListTag
changed, constraints, currentItemIndex, directions, max, NOT_HANDLED, offset, orderby, returnList, returnValues, timerHandle
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
contextId, PAGE_CATEGORY, pageContextTag, referid, writerid
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ListTag()
           
 
Method Summary
 int doStartTag()
          Performs the search
protected  java.lang.String getPath()
           
protected  java.lang.String getSearchNodes()
           
protected  java.lang.String parseNodes(java.lang.String nodes)
           
 void setDistinct(java.lang.String distinct)
           
 void setFields(java.lang.String fields)
           
 void setNodes(java.lang.String nodes)
          Sets the nodes to start the search with.
 void setPath(java.lang.String path)
           
 void setSearchdir(java.lang.String search)
          The search parameter, determines how directionality affects the search.
 void setType(java.lang.String type)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.AbstractNodeListTag
doAfterBody, doEndTag, doInitBody, doStartTagHelper, getCurrent, getIndex, isChanged, setConstraints, setDirections, setMax, setOffset, setOrderby, setReturnValues, setReturnValues, size
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.AbstractNodeProviderTag
fillVars, getNodeVar, setJspvar, setModified, setNodeVar
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.NodeReferrerTag
findNodeProvider, findNodeProvider, getNode, setNode
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag
findCloudProvider, findCloudProvider, getCloud, getCloudContext, getNode, getNodeOrNull, setCloud
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
findParentTag, findParentTag, findWriter, findWriter, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContextTag, getObject, getReferid, getString, release, setContext, setPageContext, setReferid, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.BodyTag
setBodyContent
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, release, setPageContext, setParent
 
Methods inherited from interface org.mmbase.bridge.jsp.taglib.TagIdentifier
getId
 

Field Detail

nodesString

protected java.lang.String nodesString

pathString

protected java.lang.String pathString

distinctString

protected java.lang.String distinctString

searchString

protected java.lang.String searchString

fields

protected java.lang.String fields
Constructor Detail

ListTag

public ListTag()
Method Detail

setFields

public void setFields(java.lang.String fields)
               throws javax.servlet.jsp.JspTagException
Parameters:
fields - a comma separated list of fields of the nodes.

setNodes

public void setNodes(java.lang.String nodes)
              throws javax.servlet.jsp.JspTagException
Sets the nodes to start the search with. The value '-1' interpreted as null, whcih indicates no predefined startnodes are sued (a more general search is conducted instead).
Parameters:
nodes - a node or a comma separated list of nodes.

parseNodes

protected java.lang.String parseNodes(java.lang.String nodes)
                               throws javax.servlet.jsp.JspTagException

setPath

public void setPath(java.lang.String path)
             throws javax.servlet.jsp.JspTagException
Parameters:
type - a comma separated list of nodeManagers

setType

public void setType(java.lang.String type)
             throws javax.servlet.jsp.JspTagException
Parameters:
type - a comma separated list of nodeManagers

setSearchdir

public void setSearchdir(java.lang.String search)
                  throws javax.servlet.jsp.JspTagException
The search parameter, determines how directionality affects the search. Possible values are both, destination, source, either, and all
Parameters:
search - the swerach value

setDistinct

public void setDistinct(java.lang.String distinct)
Parameters:
distinct - the selection query for the object we are looking for

getSearchNodes

protected java.lang.String getSearchNodes()
                                   throws javax.servlet.jsp.JspTagException

getPath

protected java.lang.String getPath()
                            throws javax.servlet.jsp.JspTagException

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspTagException
Performs the search
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport


MMBase build 1.6.5.20030923