|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.portlet.state.consumer.ConsumerPortletInvoker
| Nested Class Summary | |
private class |
ConsumerPortletInvoker.ConsumerContext
|
private static class |
ConsumerPortletInvoker.StatefulInstanceContextImpl
|
| Field Summary | |
private static java.lang.String |
CLONE_ID_PREFIX
. |
private ConsumerPersistenceManager |
persistenceManager
. |
private PortletInvoker |
producer
. |
| Constructor Summary | |
ConsumerPortletInvoker()
|
|
| Method Summary | |
PortletContext |
createClone(PortletContext portletContext)
Clone a portlet. |
java.util.List |
destroyClones(java.util.List portletContexts)
Destroy a cloned portlet. |
private ConsumerPortletInvoker.ConsumerContext |
getConsumerContext(PortletContext portletContext)
|
Portlet |
getPortlet(PortletContext portletContext)
Get information about a specific portlet. |
java.util.Set |
getPortlets()
Return the set of portlet exposed. |
PortletInvoker |
getProducer()
|
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. |
PortletInvocationResponse |
invoke(PortletInvocation invocation)
Invoke an operation on a specific portlet. |
void |
setPersistenceManager(ConsumerPersistenceManager persistenceManager)
|
void |
setProducer(PortletInvoker producer)
|
PortletContext |
setProperties(PortletContext portletContext,
PropertyChange[] changes)
Set the properties on the specified portlet. |
PortletContext |
unwrapCCP(java.lang.String wrappedCCP)
|
PortletContext |
unwrapPOP(java.lang.String wrappedPOPId)
|
java.lang.String |
wrapCCP(PortletContext ccpCtx)
|
java.lang.String |
wrapPOP(PortletContext popCtx)
|
| 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 CLONE_ID_PREFIX
private PortletInvoker producer
private ConsumerPersistenceManager persistenceManager
| Constructor Detail |
public ConsumerPortletInvoker()
| Method Detail |
public PortletContext unwrapCCP(java.lang.String wrappedCCP) throws InvalidPortletIdException
InvalidPortletIdExceptionpublic PortletContext unwrapPOP(java.lang.String wrappedPOPId) throws InvalidPortletIdException
InvalidPortletIdExceptionpublic java.lang.String wrapCCP(PortletContext ccpCtx) throws InvalidPortletIdException
InvalidPortletIdExceptionpublic java.lang.String wrapPOP(PortletContext popCtx) throws InvalidPortletIdException
InvalidPortletIdExceptionpublic PortletInvoker getProducer()
public void setProducer(PortletInvoker producer)
public void setPersistenceManager(ConsumerPersistenceManager persistenceManager)
public java.util.Set getPortlets()
throws PortletInvokerException
PortletInvoker
getPortlets in interface PortletInvokerPortletInvokerExceptionpublic 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
PortletInvokerExceptionpublic PortletInvocationResponse invoke(PortletInvocation invocation) throws java.lang.IllegalArgumentException, PortletInvokerException
PortletInvoker
invoke in interface PortletInvokerinvocation - the portlet invocation
java.lang.IllegalArgumentException - if the invocation is null
PortletInvokerExceptionpublic PortletContext createClone(PortletContext portletContext) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
createClone in interface PortletInvokerjava.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 PortletInvokerportletContexts - 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
PortletInvokerExceptionpublic 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.UnsupportedOperationException - if the invoker does not support this operation
java.lang.IllegalArgumentException - if the portletId or the keys arguments are null
PortletInvokerExceptionpublic PropertyMap getProperties(PortletContext portletContext) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
getProperties in interface PortletInvokerportletContext - the portlet context
java.lang.UnsupportedOperationException - if the invoker does not support this operation
java.lang.IllegalArgumentException - if the portletId is null
PortletInvokerExceptionpublic 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.UnsupportedOperationException - if the invoker does not support this operation
java.lang.IllegalArgumentException - if the portletId or the properties is null
PortletInvokerExceptionprivate ConsumerPortletInvoker.ConsumerContext getConsumerContext(PortletContext portletContext) throws java.lang.IllegalArgumentException, NoSuchPortletException, InvalidPortletIdException
java.lang.IllegalArgumentException
NoSuchPortletException
InvalidPortletIdException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||