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: 11483 $
Author:
Chris Laprun

Constructor Summary
ProducerInfo()
           
 
Method Summary
 void deregister()
           
 RefreshResult detailedRefresh(boolean forceRefresh)
           
 void eraseRegistrationInfo()
           
 EndpointConfigurationInfo getEndpointConfigurationInfo()
           
 java.lang.Integer getExpirationCacheSeconds()
           
 java.lang.String getId()
           
 java.lang.Long getKey()
           
 Portlet getPortlet(PortletContext portletContext)
           
 java.util.Map<java.lang.String,java.util.Set<Portlet>> getPortletGroupMap()
           
 java.util.Map<java.lang.String,Portlet> getPortletMap()
           
 PortletPropertyDescriptionResponse getPropertyDescriptionsFor(java.lang.String portletHandle)
           
 RegistrationContext getRegistrationContext()
           
 RegistrationInfo getRegistrationInfo()
           
 ConsumerRegistry getRegistry()
           
 CookieProtocol getRequiresInitCookie()
           
 java.util.Set<java.lang.String> getSupportedCustomModes()
           
 java.util.Set<java.lang.String> getSupportedCustomWindowStates()
           
 boolean hasLocalRegistrationInfo()
           
 boolean isActive()
          Determines whether the associated consumer is active.
 boolean isModifyRegistrationRequired()
           
 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.
 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 setRegistrationInfo(RegistrationInfo registrationInfo)
           
 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)

getSupportedCustomModes

public java.util.Set<java.lang.String> getSupportedCustomModes()

getSupportedCustomWindowStates

public java.util.Set<java.lang.String> getSupportedCustomWindowStates()

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

getRequiresInitCookie

public CookieProtocol getRequiresInitCookie()

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