|
||||||||||
| 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,
PropertyMap propertyMap)
Clone an existing state. |
java.lang.String |
createState(java.lang.String portletId,
PropertyMap propertyMap)
Create the initial state. |
void |
destroyState(java.lang.String stateId)
Destroy the state. |
ProducerStateContext |
loadState(java.lang.String stateId)
Load the state. |
void |
updateState(java.lang.String stateId,
PropertyMap propertyMap)
Update the state. |
| Method Detail |
public ProducerStateContext 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 valid
public java.lang.String createState(java.lang.String portletId,
PropertyMap propertyMap)
throws java.lang.IllegalArgumentException
portletId - the id that this state refers to
java.lang.IllegalArgumentException - if the portlet id is null
public 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 valid
public java.lang.String cloneState(java.lang.String stateId,
PropertyMap propertyMap)
throws java.lang.IllegalArgumentException,
NoSuchStateException,
InvalidStateIdException
stateId - the id that this state refers topropertyMap - 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 valid
public void updateState(java.lang.String stateId,
PropertyMap propertyMap)
throws java.lang.IllegalArgumentException,
NoSuchStateException,
InvalidStateIdException
stateId - propertyMap - 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 valid
public 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 | |||||||||