|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.functions.FunctionProvider
org.mmbase.util.functions.DescribedFunctionProvider
org.mmbase.module.Module
org.mmbase.module.ProcessorModule
org.mmbase.module.sessions
public class sessions
CLEARSET-NAME : This command clears the session variable called NAME ADDSET-NAME-VALUE : This command adds VALUE to the SESSION variable set called NAME, no duplicates are allowed PUTSET-NAME-VALUE : This command adds VALUE to the SESSION variable set called NAME, duplicates are allowed DELSET-NAME-VALUE : This command deletes VALUE form the SESSION variable set called NAME. CONTAINSSET-NAME-VALUE : returns "YES" if the session variable NAME contains the VALUE, otherwise returns "NO" SETSTRING-NAME : This command gives all values of the session variable NAME, comma separated. SETCOUNT-NAME : This command gives the number of values contained by the session variable NAME. AVGSET-NAME : This command returns the average of a set numbers. CLEARSESSIONINFO : This command clears the SessionInfo.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.mmbase.module.ProcessorModule |
|---|
ProcessorModule.GetNodeListFunction, ProcessorModule.ProcessFunction, ProcessorModule.ReplaceFunction |
| Field Summary | |
|---|---|
(package private) MMObjectBuilder |
props
|
(package private) Hashtable<String,sessionInfo> |
sessions
|
(package private) MMObjectBuilder |
users
|
| Fields inherited from class org.mmbase.module.ProcessorModule |
|---|
PARAM_PAGEINFO, PARAMS_PAGEINFO |
| Fields inherited from class org.mmbase.module.Module |
|---|
configurationPath, getMaintainerFunction, getVersionFunction, properties, STATE_START_TIME |
| Fields inherited from class org.mmbase.util.functions.DescribedFunctionProvider |
|---|
description, guiName, name |
| Fields inherited from class org.mmbase.util.functions.FunctionProvider |
|---|
functions, getFunctions |
| Constructor Summary | |
|---|---|
sessions()
sessions Module constructor. |
|
| Method Summary | |
|---|---|
void |
addSetValue(sessionInfo session,
String key,
String value)
Adds a String to a set. |
void |
addSetValues(sessionInfo session,
String key,
Vector<Object> values)
Adds a number of Strings to a set. |
String |
doAddSet(scanpage sp,
StringTokenizer tok)
Adds a sessionvariable with specified value |
String |
doClearSet(scanpage sp,
StringTokenizer tok)
This methode clears a SESSION variable |
String |
doDelSet(scanpage sp,
StringTokenizer tok)
|
Vector |
doGetSet(scanpage sp,
StringTokenizer tok)
|
String |
doPutSet(scanpage sp,
StringTokenizer tok)
|
void |
forgetSession(String wanted)
|
String |
getAvgSet(scanpage sp,
StringTokenizer tok)
|
String |
getContainsSet(scanpage sp,
StringTokenizer tok)
Checks if a Session variable contains a certain value. |
Vector |
getList(scanpage sp,
StringTagger tagger,
String cmd)
|
sessionInfo |
getSession(scanpage sp,
String wanted)
|
String |
getSetCount(scanpage sp,
StringTokenizer tok)
Gives the number of values contained by a certain session variable |
String |
getSetString(scanpage sp,
StringTokenizer tok)
returns the values of a session variable comma separated |
int |
getSize()
|
Map<String,String> |
getStates()
Returns the module's runtime-generated state information as a unmodifiable map with name-value pairs. |
String |
getValue(sessionInfo session,
String wanted)
|
void |
init()
Initializes the module. |
void |
loadNewProperties(sessionInfo session)
|
void |
loadProperties(sessionInfo session)
|
String |
replace(scanpage sp,
String cmds)
Handle a $MOD command |
String |
saveValue(sessionInfo session,
String key)
|
String |
saveValueNew(sessionInfo session,
String key)
|
String |
setValue(sessionInfo session,
String key,
String value)
Sets or changes a parameter in a sessionInfo. |
void |
setValueFromNode(sessionInfo session,
MMObjectNode node)
|
(package private) void |
setVisitInfo(sessionInfo session)
Stores visiting info (counters) in a session |
Map<String,String> |
state()
|
String |
xmlEscape(String s)
the XML reader will correct the escaped characters again. |
| Methods inherited from class org.mmbase.module.ProcessorModule |
|---|
getList, getListBuilder, getNodeList, onload, process, reload, replace, replace, unload |
| Methods inherited from class org.mmbase.module.Module |
|---|
addInitParameters, checkModules, getInitParameter, getInitParameter, getInitParameter, getInitParameters, getInitParameters, getMaintainer, getModule, getModule, getModule, getModule, getModuleInfo, getModuleLoader, getModuleReader, getModuleReader, getModules, getState, getVersion, hasModule, hasStarted, loadInitParameters, loadInitParameters, maintainance, setInitParameter, setMaintainer, setState, setVersion, shutdown, shutdownModules, startModule, startModules |
| Methods inherited from class org.mmbase.util.functions.DescribedFunctionProvider |
|---|
getDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName, setName |
| Methods inherited from class org.mmbase.util.functions.FunctionProvider |
|---|
addFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Hashtable<String,sessionInfo> sessions
MMObjectBuilder props
MMObjectBuilder users
| Constructor Detail |
|---|
public sessions()
| Method Detail |
|---|
public void init()
ProcessorModuleModule.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead.
init in interface sessionsInterfaceinit in class ProcessorModule
public sessionInfo getSession(scanpage sp,
String wanted)
getSession in interface sessionsInterfacepublic void forgetSession(String wanted)
forgetSession in interface sessionsInterface
public String getValue(sessionInfo session,
String wanted)
getValue in interface sessionsInterface
public String setValue(sessionInfo session,
String key,
String value)
setValue in interface sessionsInterfacesession - the sessionInfo wich has to contain
the parameter.key - the name of the parameter to be set.value - the value to wich the parameter should be set.
public void addSetValues(sessionInfo session,
String key,
Vector<Object> values)
addSetValues in interface sessionsInterfacesession - the sessionInfo containing the set.key - the name of the set.values - a Vector containing the
Strings to be added to the set.
public void addSetValue(sessionInfo session,
String key,
String value)
addSetValue in interface sessionsInterfacesession - the sessionInfo containing the set.key - the name of the set.value - the String to be added to the set.
public void setValueFromNode(sessionInfo session,
MMObjectNode node)
setValueFromNode in interface sessionsInterfacepublic void loadProperties(sessionInfo session)
public void loadNewProperties(sessionInfo session)
public String saveValue(sessionInfo session,
String key)
saveValue in interface sessionsInterface
public String saveValueNew(sessionInfo session,
String key)
public Vector getList(scanpage sp,
StringTagger tagger,
String cmd)
throws ParseException
ParseException
public String replace(scanpage sp,
String cmds)
replace in interface sessionsInterface
public String doAddSet(scanpage sp,
StringTokenizer tok)
public String doPutSet(scanpage sp,
StringTokenizer tok)
public String doClearSet(scanpage sp,
StringTokenizer tok)
public String getAvgSet(scanpage sp,
StringTokenizer tok)
public String doDelSet(scanpage sp,
StringTokenizer tok)
public String getContainsSet(scanpage sp,
StringTokenizer tok)
public Vector doGetSet(scanpage sp,
StringTokenizer tok)
public String getSetString(scanpage sp,
StringTokenizer tok)
public String getSetCount(scanpage sp,
StringTokenizer tok)
public int getSize()
public Map<String,String> getStates()
Module
getStates in class Modulepublic Map<String,String> state()
void setVisitInfo(sessionInfo session)
public String xmlEscape(String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||