org.xwiki.context
Class ExecutionContext

java.lang.Object
  extended by org.xwiki.context.ExecutionContext

public class ExecutionContext
extends java.lang.Object

Contains all state data related to the current user action. Note that the execution context is independent of the environment and all environment-dependent data are stored in the Container component instead.

Since:
1.5M2
Version:
$Id$

Constructor Summary
ExecutionContext()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getProperties()
           
 java.lang.Object getProperty(java.lang.String key)
           
 void removeProperty(java.lang.String key)
           
 void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
           
 void setProperty(java.lang.String key, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionContext

public ExecutionContext()
Method Detail

getProperty

public java.lang.Object getProperty(java.lang.String key)
Parameters:
key - the key under which is stored the property to retrieve
Returns:
the property matching the passed key

getProperties

public java.util.Map<java.lang.String,java.lang.Object> getProperties()
Returns:
all the context properties

removeProperty

public void removeProperty(java.lang.String key)
Parameters:
key - remove the property whose key matches the passed key

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object value)
Parameters:
key - the key under which to save the passed property value
value - the value to set

setProperties

public void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Parameters:
properties - the properties to add to the context


Copyright © 2004-2011 XWiki. All Rights Reserved.