org.apache.wsrp4j.producer.provider.driver
Class ConsumerPortletRegistrationImpl

java.lang.Object
  extended by org.apache.wsrp4j.producer.provider.driver.ConsumerPortletRegistrationImpl

public class ConsumerPortletRegistrationImpl
extends java.lang.Object

This class collects the porlet handles for a registered consumer and is used for persistence purpose.

Version:
1.0
Author:
Ralf Altrichter

Constructor Summary
ConsumerPortletRegistrationImpl()
          Default Constructor
 
Method Summary
 void addPortletHandle(java.lang.String portletHandle)
          Add a portlet handle to the current registration
 boolean containsPortletHandle(java.lang.String portletHandle)
          Returns true, if the portletHandle is associated to the current registration.
 void deletePortletHandle(java.lang.String portletHandle)
          Removes a portlet handle from the current registration
 java.util.Collection getPortletHandles()
          Returns a collection of portlet handles for this registration
 java.lang.String getRegistrationHandle()
          Returns the registration handle for a specific consumer
 boolean isEmpty()
           
 void setPortletHandles(java.util.Collection collection)
          Sets a collection of portlet handles for this registration
 void setRegistrationHandle(java.lang.String regHandle)
          Sets the registration handle for a specific consumer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsumerPortletRegistrationImpl

public ConsumerPortletRegistrationImpl()
Default Constructor

Method Detail

setRegistrationHandle

public void setRegistrationHandle(java.lang.String regHandle)
Sets the registration handle for a specific consumer

Parameters:
regHandle, - consumer registration handle

getRegistrationHandle

public java.lang.String getRegistrationHandle()
Returns the registration handle for a specific consumer

Returns:
registrationHandle

addPortletHandle

public void addPortletHandle(java.lang.String portletHandle)
Add a portlet handle to the current registration

Parameters:
portletHandle -

containsPortletHandle

public boolean containsPortletHandle(java.lang.String portletHandle)
Returns true, if the portletHandle is associated to the current registration.

Returns:
true on success, otherwise false

deletePortletHandle

public void deletePortletHandle(java.lang.String portletHandle)
Removes a portlet handle from the current registration

Parameters:
portletHandle -

setPortletHandles

public void setPortletHandles(java.util.Collection collection)
Sets a collection of portlet handles for this registration

Parameters:
collection -

getPortletHandles

public java.util.Collection getPortletHandles()
Returns a collection of portlet handles for this registration

Returns:
collection

isEmpty

public boolean isEmpty()
Returns:
true, if no portlet handles are assigned to this registration false, if at least one portlet handle is assigned to his registration