|
||||||||||
| 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.common.system.AbstractJBossService
org.jboss.portal.wsrp.consumer.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 | |
java.lang.String |
createClone(java.lang.String portletId)
Clone a portlet. |
void |
destroyClone(java.lang.String portletId)
Destroy a cloned portlet. |
java.lang.Integer |
getExpirationCacheSeconds()
Retrieves the cache expiration duration (in seconds) for cached values. |
WSRP_v1_Markup_PortType |
getMarkupService()
|
Portlet |
getPortlet(java.lang.String portletId)
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. |
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. |
ValueMap |
getProperties(java.lang.String portletId)
Return the properties of the specified portlet. |
RegistrationData |
getRegistrationData()
Retrieves the registration data used to register this consumer with the associated producer |
WSRP_v1_Registration_PortType |
getRegistrationService()
|
ServiceDescription |
getServiceDescriptionAndRegisterIfNeeded()
|
WSRP_v1_ServiceDescription_PortType |
getServiceDescriptionService()
|
ServiceFactory |
getServiceFactory()
Retrieves the ServiceFactory this Consumer will use to access the associated Producer's services. |
SessionHandler |
getSessionHandler()
|
java.util.Set |
getSupportedUserScopes()
|
void |
invoke(PortletInvocation invocation)
Invoke an operation on a specific portlet. |
void |
setExpirationCacheSeconds(java.lang.Integer expirationCacheSeconds)
Sets the cache expiration duration (in seconds) for cached values. |
void |
setProducerId(java.lang.String id)
Sets the identifier for the producer this consumer is associated with. |
void |
setProperties(java.lang.String portletId,
ValueMap properties)
Set the properties on the specified portlet. |
void |
setRegistrationData(RegistrationData registrationData)
Sets the registration data used to register this consumer with the associated producer |
void |
setServiceFactory(ServiceFactory serviceFactory)
Sets the ServiceFactory this Consumer will use to access the associated Producer's services. |
protected void |
startService()
|
boolean |
supportsUserScope(java.lang.String userScope)
Determines whether the specified user scope (for markup caching) is supported. |
| Methods inherited from class org.jboss.portal.common.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, stopService |
| 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 java.util.Set getPortlets()
throws InvokerUnavailableException
PortletInvoker
getPortlets in interface PortletInvokerInvokerUnavailableExceptionpublic Portlet getPortlet(java.lang.String portletId) throws PortletInvokerException
PortletInvoker
getPortlet in interface PortletInvokerportletId - the portlet identifier in the context of this invoker
PortletInfo for the specified portlet
PortletInvokerExceptionpublic void invoke(PortletInvocation invocation) throws PortletInvokerException
PortletInvoker
invoke in interface PortletInvokerinvocation - the portlet invocation
PortletInvokerExceptionpublic java.lang.String createClone(java.lang.String portletId)
PortletInvoker
createClone in interface PortletInvokerpublic void destroyClone(java.lang.String portletId)
PortletInvoker
destroyClone in interface PortletInvokerportletId - the clone idpublic ValueMap getProperties(java.lang.String portletId)
PortletInvoker
getProperties in interface PortletInvokerportletId - the portlet id
public void setProperties(java.lang.String portletId,
ValueMap properties)
PortletInvoker
setProperties in interface PortletInvokerportletId - the portlet idproperties - the new propertiespublic void setProducerId(java.lang.String id)
WSRPConsumer
setProducerId in interface WSRPConsumerid - the identifier of the associated producerpublic java.lang.String getProducerId()
WSRPConsumer
getProducerId in interface WSRPConsumerpublic SessionHandler getSessionHandler()
public java.util.Map getPortletGroupMap()
throws ServiceDescriptionUnavailableException
public java.lang.Integer getExpirationCacheSeconds()
WSRPConsumer
getExpirationCacheSeconds in interface WSRPConsumerpublic void setExpirationCacheSeconds(java.lang.Integer expirationCacheSeconds)
WSRPConsumer
setExpirationCacheSeconds in interface WSRPConsumerexpirationCacheSeconds - the cache expiration duration (in seconds)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 void setRegistrationData(RegistrationData registrationData)
WSRPConsumer
setRegistrationData in interface WSRPConsumerregistrationData - the registration data used to register this consumer with the associated producerpublic RegistrationData getRegistrationData()
WSRPConsumer
getRegistrationData in interface WSRPConsumerpublic ProducerSessionInformation getProducerSessionInformationFrom(PortletInvocation invocation)
WSRPConsumer
getProducerSessionInformationFrom in interface WSRPConsumerinvocation - a portlet invocation from which the session information should be extracted.
ProducerSessionInformationpublic ProducerSessionInformation getProducerSessionInformationFrom(javax.servlet.http.HttpSession session)
WSRPConsumer
getProducerSessionInformationFrom in interface WSRPConsumersession - the session from the information should be extracted.
ProducerSessionInformation
protected void startService()
throws java.lang.Exception
java.lang.Exceptionpublic ServiceFactory getServiceFactory()
WSRPConsumer
getServiceFactory in interface WSRPConsumerpublic void setServiceFactory(ServiceFactory serviceFactory)
WSRPConsumer
setServiceFactory in interface WSRPConsumerserviceFactory - the ServiceFactory this Consumer will use to access the associated Producer's services.
public WSRP_v1_ServiceDescription_PortType getServiceDescriptionService()
throws InvokerUnavailableException
InvokerUnavailableException
public WSRP_v1_Markup_PortType getMarkupService()
throws InvokerUnavailableException
InvokerUnavailableException
public WSRP_v1_PortletManagement_PortType getPortletManagementService()
throws InvokerUnavailableException
InvokerUnavailableException
public WSRP_v1_Registration_PortType getRegistrationService()
throws InvokerUnavailableException
InvokerUnavailableException
public ServiceDescription getServiceDescriptionAndRegisterIfNeeded()
throws ServiceDescriptionUnavailableException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||