Package org.cxbox.core.crudma.state.impl
Class BcStateAwareImpl
java.lang.Object
org.cxbox.core.crudma.state.impl.BcStateAwareImpl
- All Implemented Interfaces:
BcStateAware
Implementation of
BcStateAware that Uses HTTP servlet as state provider.
Uses a "ClientId" HTTP header as store key and HttpSession attribute as store- See Also:
-
BcStateAwareBcStateHttpSession
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClear all state records for current clientObtain state for business component instancebooleanObtain information if this record was already persisted.voidset(BusinessComponent bc, BcState bcState) Change state for business component instance
-
Constructor Details
-
BcStateAwareImpl
public BcStateAwareImpl()
-
-
Method Details
-
clear
Description copied from interface:BcStateAwareClear all state records for current client- Specified by:
clearin interfaceBcStateAware
-
set
Description copied from interface:BcStateAwareChange state for business component instance- Specified by:
setin interfaceBcStateAware- Parameters:
bc- is Business component state key (name and record identifier)bcState- is BCState that must be changed
-
getState
Description copied from interface:BcStateAwareObtain state for business component instance- Specified by:
getStatein interfaceBcStateAware- Parameters:
bc- is Business component state key (name and record identifier)- Returns:
- a state for current business component and current client
-
isPersisted
Description copied from interface:BcStateAwareObtain information if this record was already persisted. This method is necessary to determine whether to create a record from current state.- Specified by:
isPersistedin interfaceBcStateAware- Parameters:
bc- is Business component state key (name and record identifier)
-