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

java.lang.Object
  extended byorg.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:
$Id: ConsumerPortletRegistrationImpl.java,v 1.5 2005/08/12 12:56:53 cziegeler Exp $
Author:
Ralf Altrichter

Field Summary
private  java.util.HashSet _portletHandles
           
private  java.lang.String _registrationHandle
           
 
Constructor Summary
ConsumerPortletRegistrationImpl()
           
 
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
 

Field Detail

_registrationHandle

private java.lang.String _registrationHandle

_portletHandles

private java.util.HashSet _portletHandles
Constructor Detail

ConsumerPortletRegistrationImpl

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


--