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: 32667 $ ($Author: gjoseph $)
- 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, getAccessManager, getAttribute, getAttributes, getAttributeStrategy, getHierarchyManager, getLocale, getMessages, getMessages, getQueryManager, getRepositoryStrategy, 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
getAttributes
public Map<String,Object> getAttributes(int scope)
- Use work item if request scope
- Overrides:
getAttributes
in class ContextDecorator
setAttribute
public void setAttribute(String name,
Object value,
int scope)
- Use work item if request scope
- Overrides:
setAttribute
in class ContextDecorator
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()
- Returns:
- Returns the workItem.
setWorkItem
public void setWorkItem(openwfe.org.engine.workitem.WorkItem workItem)
- Parameters:
workItem
- The workItem to set.
Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.