public interface ConsumerPersistenceManager<S extends Serializable>
| Modifier and Type | Method and Description |
|---|---|
String |
createState(ConsumerState<S> state)
Create the initial state.
|
void |
destroyState(String stateId)
Destroy the state.
|
PortletStateType<S> |
getStateType()
Returns the consumer state type.
|
ConsumerStateContext<S> |
loadState(String stateId)
Load the state.
|
void |
updateState(String stateId,
ConsumerState<S> propertyMap)
Update the state.
|
PortletStateType<S> getStateType()
ConsumerStateContext<S> loadState(String stateId) throws IllegalArgumentException, NoSuchStateException, InvalidStateIdException
stateId - the state idIllegalArgumentException - if the state id is nullNoSuchStateException - is the specified state does not existInvalidStateIdException - if the state id is not validString createState(ConsumerState<S> state) throws IllegalArgumentException
state - the stateIllegalArgumentException - if the portlet id is nullvoid updateState(String stateId, ConsumerState<S> propertyMap) throws IllegalArgumentException, NoSuchStateException, InvalidStateIdException
stateId - the state idpropertyMap - the updated stateIllegalArgumentException - if the state id is null or the values are nullNoSuchStateException - is the specified state does not existInvalidStateIdException - if the state id is not validvoid destroyState(String stateId) throws IllegalArgumentException, NoSuchStateException, InvalidStateIdException
stateId - the state idIllegalArgumentException - if the state id is nullNoSuchStateException - is the specified state does not existInvalidStateIdException - if the state id is not validCopyright © 2003-2020 GateIn. All Rights Reserved.