Package net.n2oapp.framework.api.test
Class TestContextEngine
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- net.n2oapp.framework.api.test.TestContextEngine
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>,Context,ContextEngine
public class TestContextEngine extends HashMap<String,Object> implements ContextEngine
- Since:
- 27.10.2016
- Author:
- iryabov
- 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 TestContextEngine()TestContextEngine(Map<String,Object> baseParams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget(String name)Получение значения контекста по имениObjectget(String param, Map<String,Object> baseParams)Получение контекста по базовым параметрам Например, можно получить контекст конкретного пользователяvoidset(Map<String,Object> dataSet)Сохранение значений в контекстvoidset(Map<String,Object> dataSet, Map<String,Object> baseParams)Установка контекста по базовым параметрам-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.n2oapp.framework.api.context.ContextEngine
refresh
-
-
-
-
Method Detail
-
get
public Object get(String param, Map<String,Object> baseParams)
Description copied from interface:ContextEngineПолучение контекста по базовым параметрам Например, можно получить контекст конкретного пользователя- Specified by:
getin interfaceContextEngine- Parameters:
param- - имя контекстаbaseParams- - базовые значения контекста- Returns:
- значение контекста
-
set
public void set(Map<String,Object> dataSet, Map<String,Object> baseParams)
Description copied from interface:ContextEngineУстановка контекста по базовым параметрам- Specified by:
setin interfaceContextEngine- Parameters:
dataSet- - контекстbaseParams- - базовые параметры
-
get
public Object get(String name)
Description copied from interface:ContextПолучение значения контекста по имени
-
-