|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.mmbase.util.functions.SmartPathFunction
public class SmartPathFunction
Returns the path to use for TREEPART, TREEFILE, LEAFPART and LEAFFILE.
The system searches in a provided base path for a filename that matches the supplied number/alias of
a node (possibly extended with a version number). See the documentation on the TREEPART SCAN command for more info.
This class can be overridden to make an even smarter search possible.
Used to be SmartPathFunction.
| Field Summary | |
|---|---|
protected boolean |
backwardsCompatible
|
protected String |
documentRoot
|
protected String |
nodeNumber
|
protected Object |
parent
|
protected String |
path
|
protected static Cache<String,String> |
smartPathCache
|
protected String |
version
|
protected ResourceLoader |
webRoot
|
| Constructor Summary | |
|---|---|
SmartPathFunction(Object p)
|
|
| Method Summary | |
|---|---|
boolean |
getBackwardsCompatible()
|
ResourceLoader |
getLoader()
|
protected String |
getSmartPath()
The found path as a String, or null if not found |
void |
setBackwardsCompatible(boolean b)
|
void |
setLoader(ResourceLoader r)
|
void |
setNode(Node n)
|
void |
setNodeNumber(String nm)
The number or alias of the node to filter on |
void |
setPath(String p)
The subpath of the path to search |
void |
setRoot(String r)
Deprecated. Use setLoader(ResourceLoader). |
void |
setVersion(String v)
The version number (or null if not applicable) to filter on |
String |
smartKey()
|
String |
smartpath()
The found path as a String, or null if not found |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Cache<String,String> smartPathCache
protected final Object parent
protected String nodeNumber
protected String version
protected String path
protected String documentRoot
protected boolean backwardsCompatible
protected ResourceLoader webRoot
| Constructor Detail |
|---|
public SmartPathFunction(Object p)
| Method Detail |
|---|
public void setNodeNumber(String nm)
public void setNode(Node n)
public void setVersion(String v)
null if not applicable) to filter on
public void setRoot(String r)
setLoader(ResourceLoader).
public void setLoader(ResourceLoader r)
public ResourceLoader getLoader()
public void setPath(String p)
public void setBackwardsCompatible(boolean b)
public boolean getBackwardsCompatible()
public String smartKey()
public final String smartpath()
throws IllegalAccessException,
InvocationTargetException
String, or null if not found
IllegalAccessException
InvocationTargetException
protected String getSmartPath()
throws IllegalAccessException,
InvocationTargetException
String, or null if not found
IllegalAccessException
InvocationTargetException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||