Package io.vertigo.struts2.core
Class KActionContext
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Serializable>
-
- io.vertigo.struts2.core.KActionContext
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Serializable>
public final class KActionContext extends HashMap<String,Serializable>
Liste des couples (clé, object) enregistrés.- Author:
- npiedeloup
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description KActionContext()Constructeur.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(Object key)StringfindKey(io.vertigo.datamodel.structure.model.DtObject dtObject)StringfindKey(io.vertigo.vega.webservice.model.UiObject<?> uiObject)Serializableget(Object key)BooleangetBoolean(String key)StringgetId()IntegergetInteger(String key)LonggetLong(String key)StringgetString(String key)<O extends io.vertigo.datamodel.structure.model.DtObject>
io.vertigo.vega.webservice.model.UiList<O>getUiList(String key)<O extends io.vertigo.datamodel.structure.model.DtObject>
StrutsUiListModifiable<O>getUiListModifiable(String key)<O extends io.vertigo.datamodel.structure.model.DtObject>
io.vertigo.vega.webservice.model.UiObject<O>getUiObject(String key)booleanisDirty()voidmakeModifiable()Génère un nouvel Id et passe le context en modifiable.voidmakeUnmodifiable()passe le context en non-modifiable.voidmarkDirty()Mark this context as Dirty : shouldn't be stored and keep old id.Serializableput(String key, Serializable value)Serializableremove(Object key)-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Field Detail
-
CTX
public static final String CTX
Clée de l'id de context dans le context.- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public Serializable get(Object key)
- Specified by:
getin interfaceMap<String,Serializable>- Overrides:
getin classHashMap<String,Serializable>
-
getUiObject
public <O extends io.vertigo.datamodel.structure.model.DtObject> io.vertigo.vega.webservice.model.UiObject<O> getUiObject(String key)
- Parameters:
key- Clé de context- Returns:
- UiObject du context
-
getUiList
public <O extends io.vertigo.datamodel.structure.model.DtObject> io.vertigo.vega.webservice.model.UiList<O> getUiList(String key)
- Parameters:
key- Clé de context- Returns:
- UiList du context
-
getUiListModifiable
public <O extends io.vertigo.datamodel.structure.model.DtObject> StrutsUiListModifiable<O> getUiListModifiable(String key)
- Parameters:
key- Clé de context- Returns:
- UiListModifiable du context
-
getString
public String getString(String key)
- Parameters:
key- Clé de context- Returns:
- String du context
-
getInteger
public Integer getInteger(String key)
- Parameters:
key- Clé de context- Returns:
- Integer du context
-
getBoolean
public Boolean getBoolean(String key)
- Parameters:
key- Clé de context- Returns:
- Boolean du context
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<String,Serializable>- Overrides:
containsKeyin classHashMap<String,Serializable>
-
findKey
public String findKey(io.vertigo.vega.webservice.model.UiObject<?> uiObject)
- Parameters:
uiObject- UiObject recherché- Returns:
- Clé de context de l'élément (null si non trouvé)
-
findKey
public String findKey(io.vertigo.datamodel.structure.model.DtObject dtObject)
- Parameters:
dtObject- DtObject recherché- Returns:
- Clé de context de l'élément (null si non trouvé)
-
put
public Serializable put(String key, Serializable value)
- Specified by:
putin interfaceMap<String,Serializable>- Overrides:
putin classHashMap<String,Serializable>
-
remove
public Serializable remove(Object key)
- Specified by:
removein interfaceMap<String,Serializable>- Overrides:
removein classHashMap<String,Serializable>
-
getId
public String getId()
- Returns:
- Clé de ce context
-
makeModifiable
public void makeModifiable()
Génère un nouvel Id et passe le context en modifiable.
-
makeUnmodifiable
public void makeUnmodifiable()
passe le context en non-modifiable.
-
markDirty
public void markDirty()
Mark this context as Dirty : shouldn't be stored and keep old id.
-
isDirty
public boolean isDirty()
- Returns:
- if context dirty : shouldn't be stored and keep old id
-
-