org.jboss.portal.wsrp.consumer
Class ProducerInfo

java.lang.Object
  extended by org.jboss.portal.wsrp.consumer.ProducerInfo

public class ProducerInfo
extends java.lang.Object

Since:
2.6
Version:
$Revision: 7790 $
Author:
Chris Laprun

Constructor Summary
ProducerInfo()
           
 
Method Summary
 void deregister()
           
 RefreshResult detailedRefresh(boolean forceRefresh)
           
 EndpointConfigurationInfo getEndpointConfigurationInfo()
           
 java.lang.Integer getExpirationCacheSeconds()
           
 java.lang.String getId()
           
 java.lang.Long getKey()
           
 Portlet getPortlet(PortletContext portletContext)
           
 java.util.Map getPortletGroupMap()
           
 java.util.Map getPortletMap()
           
 PortletPropertyDescriptionResponse getPropertyDescriptionsFor(java.lang.String portletHandle)
           
 RegistrationContext getRegistrationContext()
           
 RegistrationInfo getRegistrationInfo()
           
 ConsumerRegistry getRegistry()
           
 boolean hasLocalRegistrationInfo()
           
 boolean isActive()
          Determines whether the associated consumer is active.
 boolean isRefreshNeeded(boolean considerCache)
           
 boolean isRegistered()
           
 boolean isRegistrationChecked()
           
 boolean isRegistrationRequired()
           
 void modifyRegistration()
           
 boolean refresh(boolean forceRefresh)
          Refreshes the producer's information from the service description if required.
 RefreshResult refreshRegistrationInfo(boolean mergeWithLocalInfo)
           
 void register()
           
 void resetRegistration()
           
 void setActive(boolean active)
          Activates or de-activate this Consumer.
 void setActiveAndSave(boolean active)
           
 void setExpirationCacheSeconds(java.lang.Integer expirationCacheSeconds)
           
 void setId(java.lang.String id)
           
 void setKey(java.lang.Long key)
           
 void setRegistry(ConsumerRegistry registry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProducerInfo

public ProducerInfo()
Method Detail

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()

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)

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 getPortletGroupMap()
                                 throws PortletInvokerException
Throws:
PortletInvokerException

getPortletMap

public java.util.Map 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

refreshRegistrationInfo

public RefreshResult refreshRegistrationInfo(boolean mergeWithLocalInfo)
                                      throws PortletInvokerException
Throws:
PortletInvokerException

isRefreshNeeded

public boolean isRefreshNeeded(boolean considerCache)