org.jboss.portal.wsrp.consumer
Class ProducerInfo
java.lang.Object
org.jboss.portal.wsrp.consumer.ProducerInfo
public class ProducerInfo
- extends java.lang.Object
- Since:
- 2.6
- Version:
- $Revision: 9360 $
- Author:
- Chris Laprun
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProducerInfo
public ProducerInfo()
getRegistry
public ConsumerRegistry getRegistry()
setRegistry
public void setRegistry(ConsumerRegistry registry)
getKey
public java.lang.Long getKey()
setKey
public void setKey(java.lang.Long key)
getEndpointConfigurationInfo
public EndpointConfigurationInfo getEndpointConfigurationInfo()
getRegistrationInfo
public RegistrationInfo getRegistrationInfo()
setRegistrationInfo
public void setRegistrationInfo(RegistrationInfo registrationInfo)
isRegistered
public boolean isRegistered()
isRegistrationRequired
public boolean isRegistrationRequired()
isRegistrationChecked
public boolean isRegistrationChecked()
hasLocalRegistrationInfo
public boolean hasLocalRegistrationInfo()
isActive
public boolean isActive()
- Determines whether the associated consumer is active.
- Returns:
setActive
public void setActive(boolean active)
- Activates or de-activate this Consumer. Note that this shouldn't be called directly as ConsumersRegistry will
handle activation.
- Parameters:
active
-
setActiveAndSave
public void setActiveAndSave(boolean active)
isModifyRegistrationRequired
public boolean isModifyRegistrationRequired()
refresh
public boolean refresh(boolean forceRefresh)
throws PortletInvokerException
- Refreshes the producer's information from the service description if required.
- Parameters:
forceRefresh
- whether or not to force a refresh regardless of whether one would have been required based on
cache expiration
- Returns:
true
if the producer's information was just refreshed, false
otherwise
- Throws:
PortletInvokerException
- if registration was required but couldn't be achieved properly
detailedRefresh
public RefreshResult detailedRefresh(boolean forceRefresh)
throws PortletInvokerException
- Throws:
PortletInvokerException
getId
public java.lang.String getId()
setId
public void setId(java.lang.String id)
getPortlet
public Portlet getPortlet(PortletContext portletContext)
throws PortletInvokerException
- Throws:
PortletInvokerException
getPortletGroupMap
public java.util.Map<java.lang.String,java.util.Set<Portlet>> getPortletGroupMap()
throws PortletInvokerException
- Throws:
PortletInvokerException
getPortletMap
public java.util.Map<java.lang.String,Portlet> getPortletMap()
throws PortletInvokerException
- Throws:
PortletInvokerException
getExpirationCacheSeconds
public java.lang.Integer getExpirationCacheSeconds()
setExpirationCacheSeconds
public void setExpirationCacheSeconds(java.lang.Integer expirationCacheSeconds)
getRegistrationContext
public RegistrationContext getRegistrationContext()
throws PortletInvokerException
- Throws:
PortletInvokerException
resetRegistration
public void resetRegistration()
throws PortletInvokerException
- Throws:
PortletInvokerException
getPropertyDescriptionsFor
public PortletPropertyDescriptionResponse getPropertyDescriptionsFor(java.lang.String portletHandle)
register
public void register()
throws PortletInvokerException
- Throws:
PortletInvokerException
deregister
public void deregister()
throws PortletInvokerException
- Throws:
PortletInvokerException
modifyRegistration
public void modifyRegistration()
throws PortletInvokerException
- Throws:
PortletInvokerException
isRefreshNeeded
public boolean isRefreshNeeded(boolean considerCache)
eraseRegistrationInfo
public void eraseRegistrationInfo()