|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.portlet.impl.state.consumer.AbstractConsumerPersistenceManagerService
public abstract class AbstractConsumerPersistenceManagerService
Constructor Summary | |
---|---|
AbstractConsumerPersistenceManagerService()
|
Method Summary | |
---|---|
java.lang.String |
createState(ConsumerState state)
Create the initial state. |
void |
destroyState(java.lang.String stateId)
Destroy the state. |
protected abstract ConsumerStateContext |
get(java.lang.String stateId)
|
int |
getSize()
|
ConsumerStateContext |
loadState(java.lang.String stateId)
Load the state. |
protected abstract void |
put(java.lang.String stateId,
ConsumerStateContext state)
|
protected abstract void |
remove(java.lang.String stateId)
|
protected abstract int |
size()
|
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 |
Constructor Detail |
---|
public AbstractConsumerPersistenceManagerService()
Method Detail |
---|
protected abstract ConsumerStateContext get(java.lang.String stateId)
protected abstract void put(java.lang.String stateId, ConsumerStateContext state)
protected abstract void remove(java.lang.String stateId)
protected abstract int size()
public ConsumerStateContext loadState(java.lang.String stateId) throws java.lang.IllegalArgumentException, NoSuchStateException, InvalidStateIdException
ConsumerPersistenceManager
loadState
in interface ConsumerPersistenceManager
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(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
state
- 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
ConsumerPersistenceManager
destroyState
in interface ConsumerPersistenceManager
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 int getSize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |