|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.portal.jems.as.system.AbstractJBossService org.jboss.portal.portlet.state.producer.ProducerPortletInvoker
Field Summary | |
private static java.lang.String |
CONSUMER_CLONE_ID
. |
private ProducerPersistenceManager |
persistenceManager
. |
private PortletInvoker |
portletInvoker
. |
private static java.lang.String |
PRODUCER_CLONE_ID_PREFIX
. |
private StateConverter |
stateConverter
. |
private StateManagementPolicy |
stateManagementPolicy
. |
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 | |
ProducerPortletInvoker()
|
Method Summary | |
PortletContext |
createClone(PortletContext portletContext)
Clone a portlet. |
java.util.List |
destroyClones(java.util.List portletContexts)
Destroy a cloned portlet. |
ProducerPersistenceManager |
getPersistenceManager()
|
Portlet |
getPortlet(PortletContext portletContext)
Get information about a specific portlet. |
PortletInvoker |
getPortletInvoker()
|
java.util.Set |
getPortlets()
Return the set of portlet exposed. |
private ProducerState |
getProducerState(PortletContext portletContext)
Return the producer state from the specified portlet context or null if that portlet context reference a producer offered portlet. |
PropertyMap |
getProperties(PortletContext portletContext)
Return all the properties of the specified portlet. |
PropertyMap |
getProperties(PortletContext portletContext,
java.util.Set keys)
Return a subset of the properties of the specified portlet. |
private PropertyMap |
getPropertiesFromMetaData(java.lang.String portletId)
Retrieve the properties from the portlet meta data. |
StateConverter |
getStateConverter()
|
StateManagementPolicy |
getStateManagementPolicy()
|
PortletInvocationResponse |
invoke(PortletInvocation invocation)
Invoke an operation on a specific portlet. |
private StatefulPortletContext |
marshall(java.lang.String portletId,
PropertyMap props)
|
void |
setPersistenceManager(ProducerPersistenceManager ppm)
|
void |
setPortletInvoker(PortletInvoker portletInvoker)
|
PortletContext |
setProperties(PortletContext portletContext,
PropertyChange[] changes)
Set the properties on the specified portlet. |
void |
setStateConverter(StateConverter stateConverter)
|
void |
setStateManagementPolicy(StateManagementPolicy stateManagementPolicy)
|
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 |
private static final java.lang.String PRODUCER_CLONE_ID_PREFIX
private static final java.lang.String CONSUMER_CLONE_ID
private PortletInvoker portletInvoker
private ProducerPersistenceManager persistenceManager
private StateManagementPolicy stateManagementPolicy
private StateConverter stateConverter
Constructor Detail |
public ProducerPortletInvoker()
Method Detail |
public PortletInvoker getPortletInvoker()
public void setPortletInvoker(PortletInvoker portletInvoker)
public ProducerPersistenceManager getPersistenceManager()
public void setPersistenceManager(ProducerPersistenceManager ppm)
public StateManagementPolicy getStateManagementPolicy()
public void setStateManagementPolicy(StateManagementPolicy stateManagementPolicy)
public StateConverter getStateConverter()
public void setStateConverter(StateConverter stateConverter)
public java.util.Set getPortlets() throws PortletInvokerException
PortletInvoker
getPortlets
in interface PortletInvoker
PortletInvokerException
public Portlet getPortlet(PortletContext portletContext) throws java.lang.IllegalArgumentException, PortletInvokerException
PortletInvoker
getPortlet
in interface PortletInvoker
portletContext
- the portlet context in the scope of this invoker
PortletInfo
for the specified portlet
java.lang.IllegalArgumentException
- if the portlet context is null
PortletInvokerException
public PortletInvocationResponse invoke(PortletInvocation invocation) throws PortletInvokerException, InvocationException
PortletInvoker
invoke
in interface PortletInvoker
invocation
- the portlet invocation
PortletInvokerException
InvocationException
public PortletContext createClone(PortletContext portletContext) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
createClone
in interface PortletInvoker
java.lang.UnsupportedOperationException
- if the invoker does not support this operation
java.lang.IllegalArgumentException
- if the portletId is null
PortletInvokerException
public java.util.List destroyClones(java.util.List portletContexts) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
destroyClones
in interface PortletInvoker
portletContexts
- a list of portlet contexts to destroy
java.lang.IllegalArgumentException
- if the portletId is null
java.lang.UnsupportedOperationException
- if the invoker does not support this operation
PortletInvokerException
public PropertyMap getProperties(PortletContext portletContext, java.util.Set keys) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
getProperties
in interface PortletInvoker
portletContext
- the portlet contextkeys
- the set of keys to retrieve
java.lang.UnsupportedOperationException
- if the invoker does not support this operation
java.lang.IllegalArgumentException
- if the portletId or the keys arguments are null
PortletInvokerException
public PropertyMap getProperties(PortletContext portletContext) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
getProperties
in interface PortletInvoker
portletContext
- the portlet context
java.lang.UnsupportedOperationException
- if the invoker does not support this operation
java.lang.IllegalArgumentException
- if the portletId is null
PortletInvokerException
public PortletContext setProperties(PortletContext portletContext, PropertyChange[] changes) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
setProperties
in interface PortletInvoker
portletContext
- the portlet contextchanges
- the changes
java.lang.UnsupportedOperationException
- if the invoker does not support this operation
java.lang.IllegalArgumentException
- if the portletId or the properties is null
PortletInvokerException
private StatefulPortletContext marshall(java.lang.String portletId, PropertyMap props) throws PortletInvokerException
PortletInvokerException
private PropertyMap getPropertiesFromMetaData(java.lang.String portletId) throws PortletInvokerException
portletId
- the portlet id
PortletInvokerException
private ProducerState getProducerState(PortletContext portletContext) throws NoSuchPortletException, InvalidPortletIdException
portletContext
- the portlet context
NoSuchPortletException
- if the underlying state does not exist
InvalidPortletIdException
- if the state id is not valid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |