Package org.ow2.clif.server.util
Class EventStorageState
- java.lang.Object
-
- org.ow2.clif.server.util.EventStorageState
-
public class EventStorageState extends java.lang.ObjectThis class provides helpful utilities to manage the storage of events. Each type of event have a storage state, which tells whether or not this type of event has to be stored (via the StorageProxy). This storage state is a boolean, held by a BooleanHolder.- Author:
- Emmanuel Varoquaux, Bruno Dillenseger
- See Also:
BooleanHolder
-
-
Constructor Summary
Constructors Constructor Description EventStorageState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidputEventStorageStates(java.util.Map<java.lang.String,java.io.Serializable> parameters, java.util.Map<java.lang.String,java.lang.Object> eventStorageStatesMap)Utility for GetCurrentParameters().static booleansetEventStorageState(java.util.Map<java.lang.String,java.lang.Object> eventStorageStatesMap, java.lang.String parameter, java.io.Serializable value)Utility for changeParameter().
-
-
-
Method Detail
-
putEventStorageStates
public static void putEventStorageStates(java.util.Map<java.lang.String,java.io.Serializable> parameters, java.util.Map<java.lang.String,java.lang.Object> eventStorageStatesMap)Utility for GetCurrentParameters(). Puts the storage states of each type of event into the parameters Map.- Parameters:
parameters- the parameter MapeventStorageStatesMap- a Map between parameter names and BooleanHolders/filter String.
-
setEventStorageState
public static boolean setEventStorageState(java.util.Map<java.lang.String,java.lang.Object> eventStorageStatesMap, java.lang.String parameter, java.io.Serializable value) throws ClifExceptionUtility for changeParameter(). Tries to set a BooleanHolder from a parameter.- Parameters:
eventStorageStatesMap- a Map between parameter names and BooleanHolders and String filter.parameter- the name of the parameter.value- the value of the parameter.- Returns:
truein case of success (a BooleanHolder/filter has been set),falseotherwise.- Throws:
ClifException
-
-