|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An abstraction for enabling state management on the producer side.
Method Summary | |
java.lang.String |
cloneState(java.lang.String stateId)
Clone an existing state. |
java.lang.String |
cloneState(java.lang.String stateId,
ValueMap valueMap)
Clone an existing state. |
java.lang.String |
createState(java.lang.String portletId,
ValueMap valueMap)
Create the initial state. |
void |
destroyState(java.lang.String stateId)
Destroy the state. |
State |
loadState(java.lang.String stateId)
Load the state. |
void |
updateState(java.lang.String stateId,
ValueMap valueMap)
Update the state. |
Method Detail |
public State loadState(java.lang.String stateId) throws java.lang.IllegalArgumentException, NoSuchStateException, InvalidStateIdException
stateId
- the state id
java.lang.IllegalArgumentException
- if the state id is null
NoSuchStateException
- is the specified state does not exist
InvalidStateIdException
- if the state id is not validpublic java.lang.String createState(java.lang.String portletId, ValueMap valueMap) throws java.lang.IllegalArgumentException
portletId
- the id that this state refers to
java.lang.IllegalArgumentException
- if the portlet id is nullpublic java.lang.String cloneState(java.lang.String stateId) throws java.lang.IllegalArgumentException, NoSuchStateException, InvalidStateIdException
stateId
- the id that this state refers to
java.lang.IllegalArgumentException
- if the state id is null
NoSuchStateException
- is the specified state does not exist
InvalidStateIdException
- if the state id is not validpublic java.lang.String cloneState(java.lang.String stateId, ValueMap valueMap) throws java.lang.IllegalArgumentException, NoSuchStateException, InvalidStateIdException
stateId
- the id that this state refers tovalueMap
- the values of the cloned state
java.lang.IllegalArgumentException
- if the state id is null or the value is nul
NoSuchStateException
- is the specified state does not exist
InvalidStateIdException
- if the state id is not validpublic void updateState(java.lang.String stateId, ValueMap valueMap) throws java.lang.IllegalArgumentException, NoSuchStateException, InvalidStateIdException
stateId
- valueMap
- the updated state
java.lang.IllegalArgumentException
- if the state id is null or the values are null
NoSuchStateException
- is the specified state does not exist
InvalidStateIdException
- if the state id is not validpublic void destroyState(java.lang.String stateId) throws java.lang.IllegalArgumentException, NoSuchStateException, InvalidStateIdException
stateId
-
java.lang.IllegalArgumentException
- if the state id is null
NoSuchStateException
- is the specified state does not exist
InvalidStateIdException
- if the state id is not valid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |