info.magnolia.module.workflow
Class WorkItemContext
java.lang.Object
info.magnolia.context.AbstractContext
info.magnolia.context.ContextDecorator
info.magnolia.module.workflow.WorkItemContext
- All Implemented Interfaces:
- Serializable, Map, org.apache.commons.chain.Context
public class WorkItemContext
- extends ContextDecorator
This context wrapps a workitem and delegates the most of the methods to the inner context.
- Version:
- $Revision$ ($Author$)
- Author:
- Philipp Bracher
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Fields inherited from interface info.magnolia.context.Context |
APPLICATION_SCOPE, ATTRIBUTE_COMMENT, ATTRIBUTE_EXCEPTION, ATTRIBUTE_MESSAGE, ATTRIBUTE_PATH, ATTRIBUTE_RECURSIVE, ATTRIBUTE_REPOSITORY, ATTRIBUTE_UUID, ATTRIBUTE_VERSION, ATTRIBUTE_VERSION_MAP, LOCAL_SCOPE, SESSION_SCOPE |
Methods inherited from class info.magnolia.context.AbstractContext |
clear, containsKey, containsValue, entrySet, get, getAttribute, getAttributes, getAttributeStrategy, getHierarchyManager, getLocale, getMessages, getMessages, getRepositoryStrategy, getSubject, isEmpty, keySet, put, putAll, remove, setAttributeStrategy, setLocale, setRepositoryStrategy, size, values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkItemContext
public WorkItemContext(Context ctx,
openwfe.org.engine.workitem.WorkItem workItem)
getAttribute
public Object getAttribute(String name,
int scope)
- Use work item if request scope.
- Overrides:
getAttribute
in class ContextDecorator
- Parameters:
name
- to which value is associated toscope
- the scope (request, session, application)
- Returns:
- attribute value
getAttributes
public Map<String,Object> getAttributes(int scope)
- Use work item if request scope.
- Overrides:
getAttributes
in class ContextDecorator
- Returns:
- the map
setAttribute
public void setAttribute(String name,
Object value,
int scope)
- Use work item if request scope.
- Overrides:
setAttribute
in class ContextDecorator
- Parameters:
name
- is used as a keyscope
- , highest level of scope from which this attribute is visible
removeAttribute
public void removeAttribute(String name,
int scope)
- Use work item if request scope.
- Overrides:
removeAttribute
in class ContextDecorator
getWorkItem
public openwfe.org.engine.workitem.WorkItem getWorkItem()
setWorkItem
public void setWorkItem(openwfe.org.engine.workitem.WorkItem workItem)
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.