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

java.lang.Object
  extended by org.apache.wsrp4j.producer.provider.driver.PortletImpl
      extended by org.apache.wsrp4j.producer.provider.driver.ProducerOfferedPortletImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Portlet, ProducerOfferedPortlet

public class ProducerOfferedPortletImpl
extends PortletImpl
implements ProducerOfferedPortlet

This class implements the ProducerOfferedPortlet interface encapsulating ProducerOfferedPortlet-objects. Provides setters and getters.

Author:
Stefan Behl
See Also:
ProducerOfferedPortlet, Serialized Form

Field Summary
 java.util.LinkedList cloneHandles
           
 
Constructor Summary
ProducerOfferedPortletImpl()
          constructor
 
Method Summary
 void addClone(ConsumerConfiguredPortlet cce)
          Adds a clone referencing a ConsumerConfiguredPortlet.
 java.lang.Object clone()
          Redefines the clone-method of the Cloneable-interface.
 void deleteClone(ConsumerConfiguredPortlet cce)
          Deletes a clone referencing a ConsumerConfiguredPortlet.
 java.util.Iterator getClones()
          Returns an iterator containing all clone-handles.
 java.lang.String getPortletHandle()
          Returns the portletHandle.
 boolean isRegistrationRequired()
          Returns a flag indicating whether registration is required or not.
 void setPortletHandle(java.lang.String portletHandle)
          Sets the portletHandle to enable identification of the portlet.
 void setRegistrationRequired(boolean required)
          Sets the flag indicating whether registration is required or not.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cloneHandles

public java.util.LinkedList cloneHandles
Constructor Detail

ProducerOfferedPortletImpl

public ProducerOfferedPortletImpl()
constructor

Method Detail

getPortletHandle

public java.lang.String getPortletHandle()
Returns the portletHandle.

Specified by:
getPortletHandle in interface Portlet
Overrides:
getPortletHandle in class PortletImpl
Returns:
A String representing the portletHandle.

isRegistrationRequired

public boolean isRegistrationRequired()
Returns a flag indicating whether registration is required or not.

Specified by:
isRegistrationRequired in interface ProducerOfferedPortlet
Returns:
Boolean flag.

setRegistrationRequired

public void setRegistrationRequired(boolean required)
Sets the flag indicating whether registration is required or not.

Specified by:
setRegistrationRequired in interface ProducerOfferedPortlet
Parameters:
required - Boolean to be assigned to the requiresReg.-flag.

setPortletHandle

public void setPortletHandle(java.lang.String portletHandle)
Sets the portletHandle to enable identification of the portlet.

Specified by:
setPortletHandle in interface Portlet
Overrides:
setPortletHandle in class PortletImpl
Parameters:
portletHandle - String to be assigned to handle.

addClone

public void addClone(ConsumerConfiguredPortlet cce)
Adds a clone referencing a ConsumerConfiguredPortlet.

Specified by:
addClone in interface ProducerOfferedPortlet

deleteClone

public void deleteClone(ConsumerConfiguredPortlet cce)
Deletes a clone referencing a ConsumerConfiguredPortlet.

Specified by:
deleteClone in interface ProducerOfferedPortlet
Parameters:
cce - String representing the portlet-handle of the corresponding ConsumerConfiguredPortlet.

getClones

public java.util.Iterator getClones()
Returns an iterator containing all clone-handles.

Specified by:
getClones in interface ProducerOfferedPortlet
Returns:
Iterator

clone

public java.lang.Object clone()
Redefines the clone-method of the Cloneable-interface. This is necessary as the clone-method is declared protected in the Object class.

Specified by:
clone in interface ProducerOfferedPortlet
Specified by:
clone in class PortletImpl
Returns:
Object representing the cloned object.