|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PortletInvoker
is an abstraction for a set of portlets. It defines a context for performing
operations are possible on a particular portlet among the set.
Method Summary | |
java.lang.String |
createClone(java.lang.String portletId)
Clone a portlet. |
void |
destroyClone(java.lang.String portletId)
Destroy a cloned portlet. |
Portlet |
getPortlet(java.lang.String portletId)
Get information about a specific portlet. |
java.util.Set |
getPortlets()
Return the set of portlet exposed. |
ValueMap |
getProperties(java.lang.String portletId)
Return the properties of the specified portlet. |
void |
invoke(PortletInvocation invocation)
Invoke an operation on a specific portlet. |
void |
setProperties(java.lang.String portletId,
ValueMap properties)
Set the properties on the specified portlet. |
Method Detail |
public java.util.Set getPortlets() throws PortletInvokerException
PortletInvokerException
public Portlet getPortlet(java.lang.String portletId) throws java.lang.IllegalArgumentException, PortletInvokerException
portletId
- the portlet identifier in the context of this invoker
PortletInfo
for the specified portlet
java.lang.IllegalArgumentException
- if the portletId is null
PortletInvokerException
public void invoke(PortletInvocation invocation) throws java.lang.IllegalArgumentException, PortletInvokerException
invocation
- the portlet invocation
java.lang.IllegalArgumentException
- if the invocation is null
PortletInvokerException
public java.lang.String createClone(java.lang.String portletId) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
java.lang.IllegalArgumentException
- if the portletId is null
java.lang.UnsupportedOperationException
- if the invoker does not support this operation
PortletInvokerException
public void destroyClone(java.lang.String portletId) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
portletId
- the clone id
java.lang.IllegalArgumentException
- if the portletId is null
java.lang.UnsupportedOperationException
- if the invoker does not support this operation
PortletInvokerException
public ValueMap getProperties(java.lang.String portletId) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
portletId
- the portlet id
java.lang.IllegalArgumentException
- if the portletId is null
java.lang.UnsupportedOperationException
- if the invoker does not support this operation
PortletInvokerException
public void setProperties(java.lang.String portletId, ValueMap properties) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
portletId
- the portlet idproperties
- the new properties
java.lang.IllegalArgumentException
- if the portletId 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 |