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

ProducerPersistenceManagerService - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.portlet.impl.state.producer
Class ProducerPersistenceManagerService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.portal.jems.as.system.AbstractJBossService
              extended byorg.jboss.portal.portlet.impl.state.producer.ProducerPersistenceManagerService
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ProducerPersistenceManager, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class ProducerPersistenceManagerService
extends AbstractJBossService
implements ProducerPersistenceManager

Version:
$Revision: 5448 $
Author:
Julien Viet

Field Summary
private  int counter
          .
private  java.util.Map store
          .
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
ProducerPersistenceManagerService()
           
 
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.
 int getSize()
           
 ProducerStateContext loadState(java.lang.String stateId)
          Load the state.
 void updateState(java.lang.String stateId, PropertyMap propertyMap)
          Update the state.
 
Methods inherited from class org.jboss.portal.jems.as.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, startService, stopService
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

store

private java.util.Map store
.


counter

private int counter
.

Constructor Detail

ProducerPersistenceManagerService

public ProducerPersistenceManagerService()
Method Detail

loadState

public ProducerStateContext loadState(java.lang.String stateId)
                               throws NoSuchStateException,
                                      InvalidStateIdException
Description copied from interface: ProducerPersistenceManager
Load the state.

Specified by:
loadState in interface ProducerPersistenceManager
Parameters:
stateId - the state id
Returns:
the value map or null if it does not exist
Throws:
InvalidStateIdException - if the state id is not valid
NoSuchStateException - is the specified state does not exist

createState

public java.lang.String createState(java.lang.String portletId,
                                    PropertyMap propertyMap)
Description copied from interface: ProducerPersistenceManager
Create the initial state.

Specified by:
createState in interface ProducerPersistenceManager
Parameters:
portletId - the id that this state refers to
Returns:
the id of the state created

cloneState

public java.lang.String cloneState(java.lang.String stateId,
                                   PropertyMap propertyMap)
                            throws NoSuchStateException,
                                   InvalidStateIdException
Description copied from interface: ProducerPersistenceManager
Clone an existing state.

Specified by:
cloneState in interface ProducerPersistenceManager
Parameters:
stateId - the id that this state refers to
propertyMap - the values of the cloned state
Returns:
the state id
Throws:
NoSuchStateException - is the specified state does not exist
InvalidStateIdException - if the state id is not valid

cloneState

public java.lang.String cloneState(java.lang.String stateId)
                            throws java.lang.IllegalArgumentException,
                                   NoSuchStateException,
                                   InvalidStateIdException
Description copied from interface: ProducerPersistenceManager
Clone an existing state.

Specified by:
cloneState in interface ProducerPersistenceManager
Parameters:
stateId - the id that this state refers to
Returns:
the state id
Throws:
NoSuchStateException - is the specified state does not exist
InvalidStateIdException - if the state id is not valid
java.lang.IllegalArgumentException - if the state id is null

updateState

public void updateState(java.lang.String stateId,
                        PropertyMap propertyMap)
                 throws NoSuchStateException,
                        InvalidStateIdException
Description copied from interface: ProducerPersistenceManager
Update the state.

Specified by:
updateState in interface ProducerPersistenceManager
Parameters:
stateId -
propertyMap - the updated state
Throws:
InvalidStateIdException - if the state id is not valid
NoSuchStateException - is the specified state does not exist

destroyState

public void destroyState(java.lang.String stateId)
                  throws InvalidStateIdException,
                         NoSuchStateException
Description copied from interface: ProducerPersistenceManager
Destroy the state.

Specified by:
destroyState in interface ProducerPersistenceManager
Parameters:
stateId -
Throws:
NoSuchStateException - is the specified state does not exist
InvalidStateIdException - if the state id is not valid

getSize

public int getSize()