|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectServiceMBeanSupport
org.jboss.portal.jems.as.system.AbstractJBossService
org.jboss.portal.wsrp.consumer.WSRPConsumerImpl
public class WSRPConsumerImpl
| Constructor Summary | |
|---|---|
WSRPConsumerImpl()
|
|
| Method Summary | |
|---|---|
void |
activate()
Prepares this Consumer to be used: service is started, endpoints are ready. |
PortletContext |
createClone(PortletContext portletContext)
Clone a portlet. |
void |
deactivate()
Removes this Consumer from service. |
java.util.List |
destroyClones(java.util.List portletContexts)
Destroy a cloned portlet. |
WSRP_v1_Markup_PortType |
getMarkupService()
|
Portlet |
getPortlet(PortletContext portletContext)
Get information about a specific portlet. |
java.util.Map |
getPortletGroupMap()
|
WSRP_v1_PortletManagement_PortType |
getPortletManagementService()
|
java.util.Set |
getPortlets()
Return the set of portlet exposed. |
java.lang.String |
getProducerId()
Retrieves the identifier for the producer this consumer is associated with. |
ProducerInfo |
getProducerInfo()
|
ProducerSessionInformation |
getProducerSessionInformationFrom(PortletInvocation invocation)
Retrieves the session information for the producer associated with this consumer. |
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. |
WSRP_v1_Registration_PortType |
getRegistrationService()
|
WSRP_v1_ServiceDescription_PortType |
getServiceDescriptionService()
|
SessionHandler |
getSessionHandler()
|
java.util.Set |
getSupportedUserScopes()
|
PortletInvocationResponse |
invoke(PortletInvocation invocation)
Invoke an operation on a specific portlet. |
boolean |
isActive()
|
boolean |
isRefreshNeeded()
|
void |
onEvent(PortalEventContext eventContext,
PortalEvent event)
Just delegate to SessionHandler |
RefreshResult |
refresh(boolean forceRefresh)
|
void |
refreshProducerInfo()
|
void |
releaseSessions()
Releases all the sessions held by this Consumer |
void |
setProducerInfo(ProducerInfo producerInfo)
|
PortletContext |
setProperties(PortletContext portletContext,
PropertyChange[] changes)
Set the properties on the specified portlet. |
void |
setServiceFactory(ServiceFactory serviceFactory)
Needed to wire Consumer tests. |
protected void |
startService()
|
protected void |
stopService()
|
boolean |
supportsUserScope(java.lang.String userScope)
Determines whether the specified user scope (for markup caching) is supported. |
| Methods inherited from class org.jboss.portal.jems.as.system.AbstractJBossService |
|---|
create, destroy, getState, getStateString, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WSRPConsumerImpl()
| Method Detail |
|---|
public ProducerInfo getProducerInfo()
getProducerInfo in interface WSRPConsumerpublic void setProducerInfo(ProducerInfo producerInfo)
setProducerInfo in interface WSRPConsumer
public java.util.Set getPortlets()
throws InvokerUnavailableException
PortletInvoker
getPortlets in interface PortletInvokerInvokerUnavailableException
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
PortletInvoker
invoke in interface PortletInvokerinvocation - the portlet invocation
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 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 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
PortletInvokerExceptionpublic java.lang.String getProducerId()
WSRPConsumer
getProducerId in interface WSRPConsumerpublic SessionHandler getSessionHandler()
public java.util.Map getPortletGroupMap()
throws PortletInvokerException
PortletInvokerExceptionpublic java.util.Set getSupportedUserScopes()
public boolean supportsUserScope(java.lang.String userScope)
userScope - the user scope which support is to be determined
true if the given user scope is supported, false otherwisepublic ProducerSessionInformation getProducerSessionInformationFrom(PortletInvocation invocation)
WSRPConsumer
getProducerSessionInformationFrom in interface WSRPConsumerinvocation - a portlet invocation from which the session information should be extracted.
ProducerSessionInformation
public void activate()
throws java.lang.Exception
WSRPConsumer
activate in interface WSRPConsumerjava.lang.Exception
public void deactivate()
throws java.lang.Exception
WSRPConsumer
deactivate in interface WSRPConsumerjava.lang.Exceptionpublic boolean isActive()
isActive in interface WSRPConsumerpublic boolean isRefreshNeeded()
isRefreshNeeded in interface WSRPConsumer
public RefreshResult refresh(boolean forceRefresh)
throws PortletInvokerException
refresh in interface WSRPConsumerPortletInvokerException
protected void startService()
throws java.lang.Exception
java.lang.Exception
protected void stopService()
throws java.lang.Exception
java.lang.Exceptionpublic void setServiceFactory(ServiceFactory serviceFactory)
serviceFactory -
public WSRP_v1_ServiceDescription_PortType getServiceDescriptionService()
throws PortletInvokerException
PortletInvokerException
public WSRP_v1_Markup_PortType getMarkupService()
throws PortletInvokerException
PortletInvokerException
public WSRP_v1_PortletManagement_PortType getPortletManagementService()
throws PortletInvokerException
PortletInvokerException
public WSRP_v1_Registration_PortType getRegistrationService()
throws PortletInvokerException
PortletInvokerException
public void refreshProducerInfo()
throws PortletInvokerException
refreshProducerInfo in interface WSRPConsumerPortletInvokerException
public void releaseSessions()
throws PortletInvokerException
WSRPConsumer
releaseSessions in interface WSRPConsumerPortletInvokerException
public void onEvent(PortalEventContext eventContext,
PortalEvent event)
onEvent in interface PortalEventListenereventContext - event -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||