public class Jumpers extends MMObjectBuilder
JumpersFilter. JumperNotFoundURL Determines the default url (such as a
home page or error page) when no jumper is found. If not specified nothing
will be done if no jumper is found.| Modifier and Type | Field and Description |
|---|---|
protected Cache |
jumpCache
Cache for URL jumpers.
|
protected static String |
jumperNotFoundURL
Default redirect if no jumper can be found.
|
AGE_PARAMETERS, broadCastChanges, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, EVENT_TYPE_LOCAL, EVENT_TYPE_REMOTE, FIELD_NUMBER, FIELD_OBJECT_TYPE, FIELD_OWNER, fields, genericBlobCache, getFunctions, GUI_INDICATOR, GUI_PARAMETERS, guiFunction, infoFunction, internalVersion, nodeCache, oType, pluralNames, searchAge, singularNames, SYSTEM_OWNER, TEMPNODE_DEFAULT_SIZE, temporaryNodes, TMP_FIELD_EXISTS, TMP_FIELD_NUMBER, virtual, WRAP_PARAMETERS, wrapFunctionmaxNodesFromQuery, mmb, storageConnector, tableNamefunctions| Constructor and Description |
|---|
Jumpers() |
| Modifier and Type | Method and Description |
|---|---|
void |
delJumpCache(String key)
Removes a specified key from the cache.
|
void |
delJumpCache(String number,
boolean nodeLocalChanged) |
protected Object |
executeFunction(MMObjectNode node,
String function,
List arguments)
Executes a function on the field of a node, and returns the result.
|
String |
getGUIIndicator(MMObjectNode node,
Parameters args)
A complicated default implementation for GUI.
|
String |
getIDJumper(String key) |
String |
getJump(String key) |
String |
getJump(String key,
boolean reload)
Retrieves a jumper for a specified key.
|
String |
getJump(StringTokenizer tok)
Retrieves a jumper for a specified key.
|
String |
getJump(StringTokenizer tok,
boolean reload) |
boolean |
init()
Initializes the builder.
|
void |
notify(NodeEvent event) |
addEventListener, addField, addLocalObserver, addRemoteObserver, broadcastChanges, checkAddTmpField, clearBlobCache, commit, create, createAlias, createAlias, createIfNotExists, delete, equals, equals, executeFunction, fieldLocalChanged, getAncestors, getBlobCache, getClassName, getConfigFile, getConfigResource, getDataTypeCollector, getDBState, getDBType, getDefaultTeaser, getDefaultUrl, getDescendants, getDescription, getDescription, getDescriptions, getEmptyNode, getField, getFieldNames, getFields, getFields, getFunction, getFunctionParameters, getFunctions, getGUIIndicator, getGUIIndicator, getHTML, getInitParameter, getInitParameters, getInitParameters, getInternalVersion, getList, getLocaleGUIIndicator, getLocaleGUIIndicator, getMachineName, getMaintainer, getNewNode, getNewTmpNode, getNextField, getNextField, getNode, getNode, getNode, getNodeFromCache, getNodeGUIIndicator, getNumber, getObjectType, getObjectValue, getParentBuilder, getPluralName, getPluralName, getPluralNames, getRelations_main, getSearchAge, getShort, getShortedByte, getShortedInputStream, getShortedText, getSingularName, getSingularName, getSingularNames, getSmartPath, getTmpNode, getURLEncode, getValue, getVersion, getWAP, getXMLPath, hasField, hashCode, hashCode, hostname_function, insert, insert, isExtensionOf, isNodeCached, isNull, isVirtual, loadInitParameters, newFunctionInstance, nodeLocalChanged, nodeRemoteChanged, notify, preCommit, process, removeEventListener, removeField, removeLocalObserver, removeNode, removeRelations, removeRemoteObserver, removeSyncNodes, replace, safeCache, sendFieldChangeSignal, setDefaults, setDescription, setDescriptions, setFields, setInitParameter, setMaintainer, setPluralNames, setSearchAge, setSingularNames, setUniqueValue, setUniqueValue, setValue, setValue, setVersion, setXMLPath, shutdown, testValidData, toString, toString, update, updateFields, wrapcount, count, created, getFullTableName, getMMBase, getNode, getNodes, getNodes, getNodes, getNodeType, getStorageConnector, getTableName, search, searchVector, setMMBase, setTableName, sizeaddFunction, createParameters, getFunction, getFunctions, getFunctionValueprotected Cache jumpCache
protected static String jumperNotFoundURL
null, a url will not be 'redirected' if the search for a
jumper failed. This may cause a 404 error on your server if the path
specified is unavailable. However, you may need it if other servlets rely
on specific paths that would otherwise be caught by the jumper servlet.
The value fo this field is set using the JumperNotFoundURL
property in the builder configuration file.public boolean init()
init in class MMObjectBuildertrueMMObjectBuilder.create()public String getGUIIndicator(MMObjectNode node, Parameters args)
MMObjectBuildergetGUIIndicator in class MMObjectBuilderpublic String getJump(StringTokenizer tok)
tok - the tokenizer, in which the first token is the key to search
for.public String getJump(StringTokenizer tok, boolean reload)
public void delJumpCache(String key)
key - the key to removepublic void delJumpCache(String number, boolean nodeLocalChanged)
public String getJump(String key, boolean reload)
key - the key to search for.public void notify(NodeEvent event)
notify in interface NodeEventListenernotify in class MMObjectBuilderhere we handle all the backward compatibility stuff.
this method covers for both node and relation events.protected Object executeFunction(MMObjectNode node, String function, List arguments)
MMObjectBuilderMMObjectBuilder.getValue(org.mmbase.module.core.MMObjectNode, java.lang.String) method.
Derived builders should override this method to provide additional functions.MMBase 1.9-SNAPSHOT - ${javadoctimestamp}