|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletPool
This class provides the interface to the portlet pool. All portlets (producer offered as well as consumer configured portlets) should be kept within the portlet pool. It is recommended that this interface is implemented by a container associating portlet handles with portlet-objects.
Method Summary | |
---|---|
Portlet |
clone(java.lang.String portletHandle)
Clones an portlet (Producer Offered or Consumer Configured Portlet) associated by portlet-handle. |
boolean |
destroy(java.lang.String portletHandle)
Deletes the portlet identified by portletHandle from the PortletPool. |
java.util.Iterator |
destroySeveral(java.util.Iterator portletHandles)
Deletes several portlets from the PortletPool. |
Portlet |
get(java.lang.String portletHandle)
Returns a certain portlet identified by portletHandle. |
java.util.Iterator |
getAllConsumerConfiguredPortlets()
Returns all portlets that are currently stored within the PortletPool. |
java.util.Iterator |
getAllProducerOfferedPortlets()
Returns all portlets that are currently stored within the PortletPool. |
Method Detail |
---|
Portlet clone(java.lang.String portletHandle) throws WSRPException
Clones an portlet (Producer Offered or Consumer Configured Portlet) associated by portlet-handle. Only the portlet-object should be cloned, not the portlet-description the portlet references.
Adds the new Consumer Configured Portlet (after assigning a new portletHandle)to the hashmap after cloning.
Creates a new portlet state corresponding to the portlet state of the portlet to be cloned by calling the PortletStateManager.
Throws CommonException if portlet to be cloned could not be found
portletHandle
- String identifying the portlet to be cloned.
WSRPException
java.util.Iterator getAllProducerOfferedPortlets()
java.util.Iterator getAllConsumerConfiguredPortlets()
Portlet get(java.lang.String portletHandle) throws WSRPException
portletHandle
- String representing the portletHandle.
WSRPException
boolean destroy(java.lang.String portletHandle) throws WSRPException
Deletes the portlet identified by portletHandle from the PortletPool. Only consumer configured portlets can be deleted, NOT producer offered ones. After update, the persistent file store is refreshed.
Deletes all existing portlet sessions (SessionHandler) and portlet states (PortletStateManager) as well.
Throws CommonException if portlet corresponding to portletHandle could not be found.
portletHandle
- String representing the portletHandle.
WSRPException
java.util.Iterator destroySeveral(java.util.Iterator portletHandles)
portletHandles
- Iterator of portletHandles.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |