|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.bridge.jsp.taglib.pageflow.TreeHelper
public class TreeHelper
This helper-class has all Tree- and Leaf-related functionality. The algorithms that find the page to include in the directory structure are implemented here. The 'TreeInclude', 'LeafInclude', 'TreeFile' and 'LeafFile' all use this helper class. See their documentation for more information about the algorithms.
| Constructor Summary | |
|---|---|
TreeHelper()
|
|
| Method Summary | |
|---|---|
void |
doFinally()
|
protected String |
findLeafFile(String includePage,
String objectlist,
HttpSession session)
Method to find the file to 'LeafInclude' given a list of objectnumbers |
String |
findTreeFile(String includePage,
String objectlist,
HttpSession session)
Method to find the file to 'TreeInclude' given a list of objectnumbers |
protected String |
getLeafFile(String prefix,
String objectlist,
String includePage,
boolean maySmartpath,
HttpSession session)
Return the path to the include file. |
void |
setBackwardsCompatible(boolean b)
|
void |
setCloud(Cloud cl)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeHelper()
| Method Detail |
|---|
public void setCloud(Cloud cl)
public void setBackwardsCompatible(boolean b)
protected String findLeafFile(String includePage,
String objectlist,
HttpSession session)
throws JspTagException,
IOException
includePage - The page to include (relative path, may include URL parameters)objectlist - The list of objectnumbers (comma-seperated) that is used to find the correct file to includesession - The session context can contain version information (used in getVerion).
JspTagException
IOException
protected String getLeafFile(String prefix,
String objectlist,
String includePage,
boolean maySmartpath,
HttpSession session)
throws JspTagException,
IOException
includePage - The page to include (relative path, may include URL parameters)objectlist - The list of objectnumbers (comma-seperated) that is used to find the correct file to includesession - The session context can contain version information (used in getVerion).maySmartpath - Boolean indicating whether or not getLeafFile may call a 'getSmartpath' on the given objectsprefix - The path that was already established by previous calls to getLeafFile, deeper in the recursion tree.
JspTagException
IOException
public String findTreeFile(String includePage,
String objectlist,
HttpSession session)
throws JspTagException,
IOException
includePage - The page to include (relative path, may include URL parameters)objectlist - The list of objectnumbers (comma-seperated) that is used to find the correct file to includesession - The session context can contain version information (used in getVerion).
TODO: add support for 'intermediate paths' as LeafInclude has.
JspTagException
IOExceptionpublic void doFinally()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||