org.jboss.portal.portlet.test
Class TestInstanceContext

java.lang.Object
  extended by org.jboss.portal.portlet.test.TestInstanceContext
All Implemented Interfaces:
InstanceContext

public class TestInstanceContext
extends java.lang.Object
implements InstanceContext

Version:
$Revision: 1.1 $
Author:
Julien Viet

Constructor Summary
TestInstanceContext(javax.servlet.http.HttpServletRequest req, PortletContext portletContext, boolean modifiable)
           
 
Method Summary
 AccessMode getAccessMode()
          Return the access mode to this portlet instance.
 java.lang.String getId()
          Return an id that can differenciate instances.
 PortletContext getTarget()
           
 void onStateEvent(StateEvent event)
          A state event occured.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestInstanceContext

public TestInstanceContext(javax.servlet.http.HttpServletRequest req,
                           PortletContext portletContext,
                           boolean modifiable)
Method Detail

getTarget

public PortletContext getTarget()

getId

public java.lang.String getId()
Description copied from interface: InstanceContext
Return an id that can differenciate instances.

Specified by:
getId in interface InstanceContext
Returns:
the instance id

getAccessMode

public AccessMode getAccessMode()
Description copied from interface: InstanceContext
Return the access mode to this portlet instance.

Specified by:
getAccessMode in interface InstanceContext
Returns:
the access mode

onStateEvent

public void onStateEvent(StateEvent event)
Description copied from interface: InstanceContext
A state event occured.

Specified by:
onStateEvent in interface InstanceContext
Parameters:
event - the event