站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

PortletController.InstanceContextImpl - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.portlet.test
Class PortletController.InstanceContextImpl

java.lang.Object
  extended byorg.jboss.portal.portlet.test.PortletController.InstanceContextImpl
All Implemented Interfaces:
InstanceContext
Enclosing class:
PortletController

protected class PortletController.InstanceContextImpl
extends java.lang.Object
implements InstanceContext

An instance context implementation that stores


Field Summary
private  AccessMode accessMode
           
private static java.lang.String CLONE_OF
           
private  PortletContext cloneContext
           
private  PortletContext portletContext
           
private  javax.servlet.http.HttpServletRequest req
           
 
Constructor Summary
PortletController.InstanceContextImpl(Portlet portlet, javax.servlet.http.HttpServletRequest req)
           
 
Method Summary
 AccessMode getAccessMode()
          Return the access mode to this portlet instance.
 java.lang.String getId()
          Return an id that can differenciate instances.
 PortletContext getPortletContext()
           
 void onStateEvent(StateEvent event)
          A state event occured.
 void portletCloned(java.lang.String cloneId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

req

private javax.servlet.http.HttpServletRequest req

accessMode

private AccessMode accessMode

portletContext

private PortletContext portletContext

cloneContext

private PortletContext cloneContext

CLONE_OF

private static final java.lang.String CLONE_OF
See Also:
Constant Field Values
Constructor Detail

PortletController.InstanceContextImpl

public PortletController.InstanceContextImpl(Portlet portlet,
                                             javax.servlet.http.HttpServletRequest req)
Method Detail

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

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

portletCloned

public void portletCloned(java.lang.String cloneId)

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

getPortletContext

public PortletContext getPortletContext()