public abstract class AbstractPortletStatePersistenceManager extends Object implements PortletStatePersistenceManager
| Constructor and Description |
|---|
AbstractPortletStatePersistenceManager() |
| Modifier and Type | Method and Description |
|---|---|
String |
cloneState(String stateId)
Clone an existing state.
|
String |
cloneState(String stateId,
PropertyMap propertyMap)
Clone an existing state.
|
String |
createState(String portletId,
PropertyMap propertyMap)
Create the initial state.
|
protected abstract String |
createStateContext(String portletId,
PropertyMap propertyMap) |
void |
destroyState(String stateId)
Destroy the state.
|
protected abstract PortletStateContext |
destroyStateContext(String stateId) |
protected PortletState |
getState(String stateId) |
protected abstract PortletStateContext |
getStateContext(String stateId) |
PortletStateContext |
loadState(String stateId)
Load the state.
|
void |
updateState(String stateId,
PropertyMap propertyMap)
Update the state.
|
protected abstract void |
updateStateContext(PortletStateContext stateContext) |
public AbstractPortletStatePersistenceManager()
public PortletStateContext loadState(String stateId) throws IllegalArgumentException, NoSuchStateException, InvalidStateIdException
PortletStatePersistenceManagerloadState in interface PortletStatePersistenceManagerstateId - the state idIllegalArgumentException - if the state id is nullNoSuchStateException - is the specified state does not existInvalidStateIdException - if the state id is not validprotected PortletState getState(String stateId) throws NoSuchStateException, InvalidStateIdException
public String createState(String portletId, PropertyMap propertyMap)
PortletStatePersistenceManagercreateState in interface PortletStatePersistenceManagerportletId - the id that this state refers topublic String cloneState(String stateId, PropertyMap propertyMap) throws NoSuchStateException, InvalidStateIdException
PortletStatePersistenceManagercloneState in interface PortletStatePersistenceManagerstateId - the id that this state refers topropertyMap - the values of the cloned stateNoSuchStateException - is the specified state does not existInvalidStateIdException - if the state id is not validpublic String cloneState(String stateId) throws IllegalArgumentException, NoSuchStateException, InvalidStateIdException
PortletStatePersistenceManagercloneState in interface PortletStatePersistenceManagerstateId - the id that this state refers toIllegalArgumentException - if the state id is nullNoSuchStateException - is the specified state does not existInvalidStateIdException - if the state id is not validpublic void updateState(String stateId, PropertyMap propertyMap) throws NoSuchStateException, InvalidStateIdException
PortletStatePersistenceManagerupdateState in interface PortletStatePersistenceManagerpropertyMap - the updated stateNoSuchStateException - is the specified state does not existInvalidStateIdException - if the state id is not validpublic void destroyState(String stateId) throws InvalidStateIdException, NoSuchStateException
PortletStatePersistenceManagerdestroyState in interface PortletStatePersistenceManagerInvalidStateIdException - if the state id is not validNoSuchStateException - is the specified state does not existprotected abstract PortletStateContext getStateContext(String stateId) throws InvalidStateIdException
InvalidStateIdExceptionprotected abstract String createStateContext(String portletId, PropertyMap propertyMap)
protected abstract PortletStateContext destroyStateContext(String stateId) throws InvalidStateIdException
InvalidStateIdExceptionprotected abstract void updateStateContext(PortletStateContext stateContext)
Copyright © 2003-2016 GateIn. All Rights Reserved.