|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.portal.portlet.container.PortletContainerInvoker
public class PortletContainerInvoker
An implementation of portlet invoker that makes a call to a portlet container.
| Field Summary | |
|---|---|
static java.lang.String |
PORTLET_CONTAINER
The key under which the portlet container is stored in the request scope of the invocation. |
| Constructor Summary | |
|---|---|
PortletContainerInvoker()
|
|
| Method Summary | |
|---|---|
PortletContext |
createClone(PortletContext portletContext)
Clone a portlet. |
java.util.List |
destroyClones(java.util.List portletContexts)
Destroy a cloned portlet. |
Portlet |
getPortlet(PortletContext portletContext)
Get information about a specific portlet. |
java.util.Set |
getPortlets()
Return the set of portlet exposed. |
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. |
PortletApplicationRegistry |
getRegistry()
|
InterceptorStackFactory |
getStackFactory()
|
PortletInvocationResponse |
invoke(PortletInvocation invocation)
Invoke an operation on a specific portlet. |
void |
portletContainerRegistered(PortletContainer portletContainer)
A portlet container has been registered. |
void |
portletContainerUnregistered(PortletContainer portletContainer)
A portlet container has been unregistered. |
PortletContext |
setProperties(PortletContext portletContext,
PropertyChange[] changes)
Set the properties on the specified portlet. |
void |
setRegistry(PortletApplicationRegistry registry)
|
void |
setStackFactory(InterceptorStackFactory stackFactory)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PORTLET_CONTAINER
| Constructor Detail |
|---|
public PortletContainerInvoker()
| Method Detail |
|---|
public PortletApplicationRegistry getRegistry()
public void setRegistry(PortletApplicationRegistry registry)
public InterceptorStackFactory getStackFactory()
public void setStackFactory(InterceptorStackFactory stackFactory)
public void portletContainerRegistered(PortletContainer portletContainer)
PortletApplicationRegistryListener
portletContainerRegistered in interface PortletApplicationRegistryListenerpublic void portletContainerUnregistered(PortletContainer portletContainer)
PortletApplicationRegistryListener
portletContainerUnregistered in interface PortletApplicationRegistryListener
public void start()
throws java.lang.Exception
java.lang.Exception
public void stop()
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Set getPortlets()
PortletInvoker
getPortlets in interface PortletInvoker
public Portlet getPortlet(PortletContext portletContext)
throws java.lang.IllegalArgumentException,
PortletInvokerException
PortletInvoker
getPortlet in interface PortletInvokerportletContext - 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 PortletInvokerinvocation - the portlet invocation
PortletInvokerException
InvocationException
public PropertyMap getProperties(PortletContext portletContext,
java.util.Set keys)
throws java.lang.IllegalArgumentException,
PortletInvokerException,
java.lang.UnsupportedOperationException
PortletInvoker
getProperties in interface PortletInvokerportletContext - the portlet contextkeys - the set of keys to retrieve
java.lang.IllegalArgumentException - if the portletContext or the keys arguments are null
java.lang.UnsupportedOperationException - if the invoker does not support this operation
PortletInvokerException
public PropertyMap getProperties(PortletContext portletContext)
throws java.lang.IllegalArgumentException,
PortletInvokerException,
java.lang.UnsupportedOperationException
PortletInvoker
getProperties in interface PortletInvokerportletContext - the portlet context
java.lang.IllegalArgumentException - if the portletContext is null
java.lang.UnsupportedOperationException - if the invoker does not support this operation
PortletInvokerException
public PortletContext createClone(PortletContext portletContext)
throws java.lang.IllegalArgumentException,
PortletInvokerException,
java.lang.UnsupportedOperationException
PortletInvoker
createClone in interface PortletInvokerjava.lang.IllegalArgumentException - if the portletId is null
java.lang.UnsupportedOperationException - if the invoker does not support this operation
PortletInvokerException
public java.util.List destroyClones(java.util.List portletContexts)
throws java.lang.IllegalArgumentException,
PortletInvokerException,
java.lang.UnsupportedOperationException
PortletInvoker
destroyClones in interface PortletInvokerportletContexts - a list of portlet contexts to destroy
DestroyCloneFailure, one per clone that couldn't be
destroyed
java.lang.IllegalArgumentException - if the portletContext is null
java.lang.UnsupportedOperationException - if the invoker does not support this operation
PortletInvokerException
public PortletContext setProperties(PortletContext portletContext,
PropertyChange[] changes)
throws java.lang.IllegalArgumentException,
PortletInvokerException,
java.lang.UnsupportedOperationException
PortletInvoker
setProperties in interface PortletInvokerportletContext - the portlet contextchanges - the changes
java.lang.IllegalArgumentException - if the portletContext or the properties is null
java.lang.UnsupportedOperationException - if the invoker does not support this operation
PortletInvokerException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||