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

InstanceContextImpl - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.portlet.test
Class InstanceContextImpl

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

public class InstanceContextImpl
extends java.lang.Object
implements InstanceContext

Version:
$Revision: 1.1 $
Author:
Julien Viet

Field Summary
private  AccessMode accessMode
          .
private  PortletContext clonedContext
          .
private  java.lang.String id
          .
private  PortletContext modifiedContext
          .
 
Constructor Summary
InstanceContextImpl(java.lang.String id)
           
InstanceContextImpl(java.lang.String id, AccessMode accessMode)
           
 
Method Summary
 AccessMode getAccessMode()
          Return the access mode to this portlet instance.
 PortletContext getClonedContext()
           
 java.lang.String getId()
          Return an id that can differenciate instances.
 PortletContext getModifiedContext()
           
 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
 

Field Detail

id

private final java.lang.String id
.


accessMode

private final AccessMode accessMode
.


clonedContext

private PortletContext clonedContext
.


modifiedContext

private PortletContext modifiedContext
.

Constructor Detail

InstanceContextImpl

public InstanceContextImpl(java.lang.String id)

InstanceContextImpl

public InstanceContextImpl(java.lang.String id,
                           AccessMode accessMode)
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

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

getClonedContext

public PortletContext getClonedContext()

getModifiedContext

public PortletContext getModifiedContext()