|
||||||||||
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.federation.impl.FederatingPortletInvokerService
Field Summary | |
private java.util.Map |
registry
The registred FederatedPortletInvokers. |
(package private) static java.lang.String |
SEPARATOR
The separator used in the id to route to the correct invoker. |
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 | |
FederatingPortletInvokerService()
|
Method Summary | |
PortletContext |
createClone(PortletContext compoundPortletContext)
Clone a portlet. |
java.util.List |
destroyClones(java.util.List portletIds)
Destroy a cloned portlet. |
FederatedPortletInvoker |
getFederatedInvoker(java.lang.String id)
Return a portlet invoker registered or null if not found |
java.util.Collection |
getFederatedInvokers()
Return the registered portlet invokers. |
private FederatedPortletInvoker |
getFederatedPortletInvokerFor(PortletContext compoundPortletContext)
Retrieves the portlet invoker associated with the specified compound portlet id or null if it is not found. |
private FederatedPortletInvoker |
getFederatedPortletInvokerFor(java.lang.String compoundPortletId)
Retrieves the portlet invoker associated with the specified compound portlet id or null if it is not found. |
Portlet |
getPortlet(PortletContext compoundPortletContext)
Get information about a specific portlet. |
java.util.Set |
getPortlets()
Return the set of portlet exposed. |
PropertyMap |
getProperties(PortletContext compoundPortletContext)
Return all the properties of the specified portlet. |
PropertyMap |
getProperties(PortletContext compoundPortletContext,
java.util.Set keys)
Return a subset of the properties of the specified portlet. |
PortletInvocationResponse |
invoke(PortletInvocation invocation)
Invoke an operation on a specific portlet. |
void |
registerInvoker(PortletInvokerRegistration registration)
Register an invoker. |
PortletContext |
setProperties(PortletContext compoundPortletContext,
PropertyChange[] changes)
Set the properties on the specified portlet. |
void |
unregisterInvoker(PortletInvokerRegistration registration)
Unregister an invoker. |
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 |
static final java.lang.String SEPARATOR
private java.util.Map registry
Constructor Detail |
public FederatingPortletInvokerService()
Method Detail |
public void registerInvoker(PortletInvokerRegistration registration)
FederatingPortletInvoker
registerInvoker
in interface FederatingPortletInvoker
registration
- the invoker to registerpublic void unregisterInvoker(PortletInvokerRegistration registration)
FederatingPortletInvoker
unregisterInvoker
in interface FederatingPortletInvoker
registration
- the invoker to registerpublic FederatedPortletInvoker getFederatedInvoker(java.lang.String id) throws java.lang.IllegalArgumentException
FederatingPortletInvoker
getFederatedInvoker
in interface FederatingPortletInvoker
id
- the id
java.lang.IllegalArgumentException
- if the id is nullpublic java.util.Collection getFederatedInvokers()
FederatingPortletInvoker
getFederatedInvokers
in interface FederatingPortletInvoker
public java.util.Set getPortlets() throws PortletInvokerException
PortletInvoker
getPortlets
in interface PortletInvoker
PortletInvokerException
public Portlet getPortlet(PortletContext compoundPortletContext) throws java.lang.IllegalArgumentException, PortletInvokerException
PortletInvoker
getPortlet
in interface PortletInvoker
compoundPortletContext
- 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
PortletInvoker
invoke
in interface PortletInvoker
invocation
- the portlet invocation
PortletInvokerException
public PortletContext createClone(PortletContext compoundPortletContext) throws PortletInvokerException
PortletInvoker
createClone
in interface PortletInvoker
PortletInvokerException
public java.util.List destroyClones(java.util.List portletIds) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
destroyClones
in interface PortletInvoker
portletIds
- 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 compoundPortletContext, java.util.Set keys) throws PortletInvokerException
PortletInvoker
getProperties
in interface PortletInvoker
compoundPortletContext
- the portlet contextkeys
- the set of keys to retrieve
PortletInvokerException
public PropertyMap getProperties(PortletContext compoundPortletContext) throws PortletInvokerException
PortletInvoker
getProperties
in interface PortletInvoker
compoundPortletContext
- the portlet context
PortletInvokerException
public PortletContext setProperties(PortletContext compoundPortletContext, PropertyChange[] changes) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
setProperties
in interface PortletInvoker
compoundPortletContext
- 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 FederatedPortletInvoker getFederatedPortletInvokerFor(PortletContext compoundPortletContext) throws java.lang.IllegalArgumentException, NoSuchPortletException
compoundPortletContext
- the portlet context for which the invoker is to be retrieved
java.lang.IllegalArgumentException
- if the compound portlet id is not well formed or null
NoSuchPortletException
private FederatedPortletInvoker getFederatedPortletInvokerFor(java.lang.String compoundPortletId) throws java.lang.IllegalArgumentException, NoSuchPortletException
compoundPortletId
- the portlet id for which the invoker is to be retrieved
java.lang.IllegalArgumentException
- if the compound portlet id is not well formed or null
NoSuchPortletException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |