站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

ConsumerPersistenceManager - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.portlet.state.consumer
Interface ConsumerPersistenceManager

All Known Implementing Classes:
ConsumerPersistenceManagerService

public interface ConsumerPersistenceManager

Version:
$Revision: 1.1 $
Author:
Julien Viet

Method Summary
 java.lang.String createState(ConsumerState state)
          Create the initial state.
 void destroyState(java.lang.String stateId)
          Destroy the state.
 ConsumerStateContext loadState(java.lang.String stateId)
          Load the state.
 void updateState(java.lang.String stateId, ConsumerState propertyMap)
          Update the state.
 

Method Detail

loadState

public ConsumerStateContext loadState(java.lang.String stateId)
                               throws java.lang.IllegalArgumentException,
                                      NoSuchStateException,
                                      InvalidStateIdException
Load the state.

Parameters:
stateId - the state id
Returns:
the value map or null if it does not exist
Throws:
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

createState

public java.lang.String createState(ConsumerState state)
                             throws java.lang.IllegalArgumentException
Create the initial state.

Returns:
the id of the state created
Throws:
java.lang.IllegalArgumentException - if the portlet id is null

updateState

public void updateState(java.lang.String stateId,
                        ConsumerState propertyMap)
                 throws java.lang.IllegalArgumentException,
                        NoSuchStateException,
                        InvalidStateIdException
Update the state.

Parameters:
stateId -
propertyMap - the updated state
Throws:
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

destroyState

public void destroyState(java.lang.String stateId)
                  throws java.lang.IllegalArgumentException,
                         NoSuchStateException,
                         InvalidStateIdException
Destroy the state.

Parameters:
stateId -
Throws:
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