|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.portal.jems.as.system.AbstractJBossService
org.jboss.portal.wsrp.consumer.WSRPConsumerImpl
public class WSRPConsumerImpl
Field Summary |
---|
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
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(javax.servlet.http.HttpSession session)
Retrieves the session information for the producer associated with this consumer. |
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 org.jboss.system.ServiceMBeanSupport |
---|
createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Constructor Detail |
---|
public WSRPConsumerImpl()
Method Detail |
---|
public ProducerInfo getProducerInfo()
getProducerInfo
in interface WSRPConsumer
public void setProducerInfo(ProducerInfo producerInfo)
setProducerInfo
in interface WSRPConsumer
public java.util.Set getPortlets() throws InvokerUnavailableException
PortletInvoker
getPortlets
in interface PortletInvoker
InvokerUnavailableException
public Portlet getPortlet(PortletContext portletContext) throws java.lang.IllegalArgumentException, PortletInvokerException
PortletInvoker
getPortlet
in interface PortletInvoker
portletContext
- 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 PortletInvoker
invocation
- the portlet invocation
PortletInvokerException
public PortletContext createClone(PortletContext portletContext) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
createClone
in interface PortletInvoker
java.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 PortletInvoker
portletContexts
- 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 PortletInvoker
portletContext
- 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 PortletInvoker
portletContext
- 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 PortletInvoker
portletContext
- 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
public java.lang.String getProducerId()
WSRPConsumer
getProducerId
in interface WSRPConsumer
public SessionHandler getSessionHandler()
public java.util.Map getPortletGroupMap() throws PortletInvokerException
PortletInvokerException
public 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 WSRPConsumer
invocation
- a portlet invocation from which the session information should be extracted.
ProducerSessionInformation
public ProducerSessionInformation getProducerSessionInformationFrom(javax.servlet.http.HttpSession session)
WSRPConsumer
getProducerSessionInformationFrom
in interface WSRPConsumer
session
- the session from the information should be extracted.
ProducerSessionInformation
public void activate() throws java.lang.Exception
WSRPConsumer
activate
in interface WSRPConsumer
java.lang.Exception
public void deactivate() throws java.lang.Exception
WSRPConsumer
deactivate
in interface WSRPConsumer
java.lang.Exception
public boolean isActive()
isActive
in interface WSRPConsumer
public boolean isRefreshNeeded()
isRefreshNeeded
in interface WSRPConsumer
public RefreshResult refresh(boolean forceRefresh) throws PortletInvokerException
refresh
in interface WSRPConsumer
PortletInvokerException
protected void startService() throws java.lang.Exception
startService
in class org.jboss.system.ServiceMBeanSupport
java.lang.Exception
protected void stopService() throws java.lang.Exception
stopService
in class org.jboss.system.ServiceMBeanSupport
java.lang.Exception
public 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 WSRPConsumer
PortletInvokerException
public void releaseSessions() throws PortletInvokerException
WSRPConsumer
releaseSessions
in interface WSRPConsumer
PortletInvokerException
public void onEvent(PortalEventContext eventContext, PortalEvent event)
onEvent
in interface PortalEventListener
eventContext
- event
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |