public interface PortletInvoker
| Modifier and Type | Field and Description |
|---|---|
static String |
LOCAL_PORTLET_INVOKER_ID
The identifier assigned to the local PortletInvoker.
|
| Modifier and Type | Method and Description |
|---|---|
PortletContext |
createClone(PortletStateType stateType,
PortletContext portletContext)
Clone a portlet.
|
List<DestroyCloneFailure> |
destroyClones(List<PortletContext> portletContexts)
Destroy a cloned portlet.
|
PortletContext |
exportPortlet(PortletStateType stateType,
PortletContext originalPortletContext)
Exports a portlet from the invoker which can be used to recreate this portlet during an import portlet operation
The returned portlet Id will be the portlet Id of the base portlet, not a cloned portlet Id If the portlet
contains state, it will be returned regardless if the portlet invoker is set to persist state locally.
|
Portlet |
getPortlet(PortletContext portletContext)
Get information about a specific portlet.
|
Set<Portlet> |
getPortlets()
Return the set of portlet exposed.
|
PropertyMap |
getProperties(PortletContext portletContext)
Return all the properties of the specified portlet.
|
PropertyMap |
getProperties(PortletContext portletContext,
Set<String> keys)
Return a subset of the properties of the specified portlet.
|
PortletStatus |
getStatus(PortletContext portletContext)
Returns the status of a specified
#PortletContext or null if the portlet context does not have a
relationship with this portlet invoker. |
PortletContext |
importPortlet(PortletStateType stateType,
PortletContext contextToImport)
Imports a portlet into the invoker.
|
PortletInvocationResponse |
invoke(PortletInvocation invocation)
Invoke an operation on a specific portlet.
|
boolean |
isActive()
Returns whether this portlet invoker is active and can respond to requests.
|
PortletContext |
setProperties(PortletContext portletContext,
PropertyChange[] changes)
Set the properties on the specified portlet.
|
static final String LOCAL_PORTLET_INVOKER_ID
Set<Portlet> getPortlets() throws PortletInvokerException
PortletInvokerException - a portlet invoker exceptionPortlet getPortlet(PortletContext portletContext) throws IllegalArgumentException, PortletInvokerException
getPortlets(). In particular, cloned portlets wouldn't necessarily be exposed to getPortlets and
still
be known by this PortletInvoker i.e. there exists PortletContexts pc as follows: assert
getPortlet(pc) != null && !getPortlets().contains(portlet);
portletContext - the portlet context in the scope of this invokerPortletInfo for the specified portletIllegalArgumentException - if the portlet context is nullPortletInvokerException - a portlet invoker exceptionPortletStatus getStatus(PortletContext portletContext) throws IllegalArgumentException, PortletInvokerException
#PortletContext or null if the portlet context does not have a
relationship with this portlet invoker.portletContext - the portlet contextIllegalArgumentException - if the portlet context is nullPortletInvokerException - a portlet invoker exceptionPortletInvocationResponse invoke(PortletInvocation invocation) throws IllegalArgumentException, PortletInvokerException
invocation - the portlet invocationIllegalArgumentException - if the invocation is nullPortletInvokerException - a portlet invoker exceptionPortletContext createClone(PortletStateType stateType, PortletContext portletContext) throws IllegalArgumentException, PortletInvokerException, UnsupportedOperationException
stateType - the portlet state type desiredportletContext - the portlet context to clone @return the clone idIllegalArgumentException - if the portletId is nullUnsupportedOperationException - if the invoker does not support this operationPortletInvokerException - a portlet invoker exceptionList<DestroyCloneFailure> destroyClones(List<PortletContext> portletContexts) throws IllegalArgumentException, PortletInvokerException, UnsupportedOperationException
portletContexts - a list of portlet contexts to destroyDestroyCloneFailure, one per clone that couldn't be destroyedIllegalArgumentException - if the portletContext is nullUnsupportedOperationException - if the invoker does not support this operationPortletInvokerException - a portlet invoker exceptionPropertyMap getProperties(PortletContext portletContext, Set<String> keys) throws IllegalArgumentException, PortletInvokerException, UnsupportedOperationException
portletContext - the portlet contextkeys - the set of keys to retrieveIllegalArgumentException - if the portletContext or the keys arguments are nullUnsupportedOperationException - if the invoker does not support this operationPortletInvokerException - a portlet invoker exceptionPropertyMap getProperties(PortletContext portletContext) throws IllegalArgumentException, PortletInvokerException, UnsupportedOperationException
portletContext - the portlet contextIllegalArgumentException - if the portletContext is nullUnsupportedOperationException - if the invoker does not support this operationPortletInvokerException - a portlet invoker exceptionPortletContext setProperties(PortletContext portletContext, PropertyChange[] changes) throws IllegalArgumentException, PortletInvokerException, UnsupportedOperationException
portletContext - the portlet contextchanges - the changesIllegalArgumentException - if the portletContext or the properties is nullUnsupportedOperationException - if the invoker does not support this operationPortletInvokerException - a portlet invoker exceptionPortletContext exportPortlet(PortletStateType stateType, PortletContext originalPortletContext) throws PortletInvokerException
stateType - the portlet state type desiredoriginalPortletContext - the context of the porlet to be exportedPortletInvokerExceptionPortletContext importPortlet(PortletStateType stateType, PortletContext contextToImport) throws PortletInvokerException
stateType - the portlet state type desiredcontextToImport - the context to be importedPortletInvokerExceptionboolean isActive()
true if this portlet invoker can respond to requests, false otherwiseCopyright © 2003-2017 GateIn. All Rights Reserved.