|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.portlet.impl.state.consumer.ConsumerPersistenceManagerService
Field Summary | |
private int |
counter
. |
private java.util.Map |
store
. |
Constructor Summary | |
ConsumerPersistenceManagerService()
|
Method Summary | |
private void |
checkId(java.lang.String stateId)
|
java.lang.String |
createState(ConsumerState state)
Create the initial state. |
void |
destroyState(java.lang.String stateId)
Destroy the state. |
int |
getSize()
|
ConsumerStateContext |
loadState(java.lang.String stateId)
Load the state. |
void |
updateState(java.lang.String stateId,
ConsumerState state)
Update the state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Map store
private int counter
Constructor Detail |
public ConsumerPersistenceManagerService()
Method Detail |
public ConsumerStateContext loadState(java.lang.String stateId) throws java.lang.IllegalArgumentException, NoSuchStateException, InvalidStateIdException
ConsumerPersistenceManager
loadState
in interface ConsumerPersistenceManager
stateId
- the state id
InvalidStateIdException
- if the state id is not valid
NoSuchStateException
- is the specified state does not exist
java.lang.IllegalArgumentException
- if the state id is nullpublic java.lang.String createState(ConsumerState state) throws java.lang.IllegalArgumentException
ConsumerPersistenceManager
createState
in interface ConsumerPersistenceManager
java.lang.IllegalArgumentException
- if the portlet id is nullpublic void updateState(java.lang.String stateId, ConsumerState state) throws java.lang.IllegalArgumentException, NoSuchStateException, InvalidStateIdException
ConsumerPersistenceManager
updateState
in interface ConsumerPersistenceManager
stateId
- state
- the updated state
InvalidStateIdException
- if the state id is not valid
NoSuchStateException
- is the specified state does not exist
java.lang.IllegalArgumentException
- if the state id is null or the values are nullpublic void destroyState(java.lang.String stateId) throws java.lang.IllegalArgumentException, NoSuchStateException, InvalidStateIdException
ConsumerPersistenceManager
destroyState
in interface ConsumerPersistenceManager
stateId
-
NoSuchStateException
- is the specified state does not exist
InvalidStateIdException
- if the state id is not valid
java.lang.IllegalArgumentException
- if the state id is nullpublic int getSize()
private void checkId(java.lang.String stateId) throws java.lang.IllegalArgumentException, InvalidStateIdException
java.lang.IllegalArgumentException
InvalidStateIdException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |