org.apache.wsrp4j.consumer.driver
Class GenericPortletRegistryImpl

java.lang.Object
  extended byorg.apache.wsrp4j.consumer.driver.GenericPortletRegistryImpl
All Implemented Interfaces:
PortletRegistry

public abstract class GenericPortletRegistryImpl
extends java.lang.Object
implements PortletRegistry


Constructor Summary
GenericPortletRegistryImpl()
           
 
Method Summary
 void addPortlet(WSRPPortlet portlet)
          Add a portlet to the registry
 boolean existsPortlet(PortletKey portletKey)
          Tests if a portlet with the given portlet key
 java.util.Iterator getAllPortlets()
          Get all the portlets in the register
 WSRPPortlet getPortlet(PortletKey portletKey)
          Get the portlet for the given producer and portlet handle
 void removeAllPortlets()
          Remove all portlets from the registry
 WSRPPortlet removePortlet(PortletKey portletKey)
          Remove the portlet with the given portlet key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericPortletRegistryImpl

public GenericPortletRegistryImpl()
Method Detail

addPortlet

public void addPortlet(WSRPPortlet portlet)
                throws WSRPException
Add a portlet to the registry

Specified by:
addPortlet in interface PortletRegistry
Parameters:
portlet - The portlet to add
Throws:
WSRPException

getPortlet

public WSRPPortlet getPortlet(PortletKey portletKey)
Get the portlet for the given producer and portlet handle

Specified by:
getPortlet in interface PortletRegistry
Parameters:
portletKey - The portlet key identifying the portlet
Returns:
The portlet with the given portlet key

removePortlet

public WSRPPortlet removePortlet(PortletKey portletKey)
Remove the portlet with the given portlet key

Specified by:
removePortlet in interface PortletRegistry
Parameters:
portletKey - The portlet key identifying the portlet
Returns:
The portlet which has been removed or null

removeAllPortlets

public void removeAllPortlets()
Remove all portlets from the registry

Specified by:
removeAllPortlets in interface PortletRegistry

existsPortlet

public boolean existsPortlet(PortletKey portletKey)
Tests if a portlet with the given portlet key

Specified by:
existsPortlet in interface PortletRegistry
Parameters:
portletKey - The portlet key identifying the portlet
Returns:
True if portlet exists with this portlet key

getAllPortlets

public java.util.Iterator getAllPortlets()
Get all the portlets in the register

Specified by:
getAllPortlets in interface PortletRegistry
Returns:
Iterator with all portlets in the registry