public interface ISharedStateContext
For instance an IDataState
. In a business application groups of views
may share the same data like beans. And other groups of views will share
their own data. A shared environment is an abstraction above this group.
Views may share the ISharedStateContext
and will also share their
properties and data.
Modifier and Type | Method and Description |
---|---|
void |
addNewTransient(Object newEntry)
Adds a new "not persistent" entry.
|
IDataState |
getDirtyAwareGlobalState()
Returns an immutable compound state that handles the global and dirty
state.
|
IDataState |
getDirtyState()
Returns the dirty state that contains all dirty objects for the shared
state.
|
IDataState |
getGlobalDataState()
Returns the "used state" that contains all objects that are currently
used for the shared state.
|
String |
getId()
Returns the unique id of the environment.
|
Object |
getProperty(Object key)
Returns the value for the key or
null if no value
registered. |
Object[] |
getPropertyKeys()
Returns all keys that are registered in the environment.
|
void |
makeUndirty(Object key,
Object dto)
Makes the given dto undirty.
|
void |
setProperty(Object key,
Object value)
Set and key value pair to be shared in the environment.
|
void setProperty(Object key, Object value)
key
- the keyvalue
- the valueObject getProperty(Object key)
null
if no value
registered.key
- the keyObject[] getPropertyKeys()
IDataState getDirtyState()
IDataState getGlobalDataState()
IDataState getDirtyAwareGlobalState()
void makeUndirty(Object key, Object dto)
key
- the keydto
- the dtovoid addNewTransient(Object newEntry)
HashUtil
.
The object will be put into the dirtyState but not the global state.
newEntry
- the new entryCopyright © 2013-2016 Loetz GmbH&Co.KG - Heidelberg - Germany, Eclipse OSBP Project, OS.bee