public class WorkObjectActionProcessor extends Object implements ActionProcessor, org.springframework.context.ApplicationContextAware
Filters the Actions based on the state of the given work object.
| Modifier and Type | Field and Description | 
|---|---|
static Map<String,com.google.common.collect.ImmutableList<Action>> | 
STATE_ACTIONS
Map containing all the possible state actions. 
 | 
| Constructor and Description | 
|---|
WorkObjectActionProcessor(WorkObjectService workObjectService)  | 
| Modifier and Type | Method and Description | 
|---|---|
List<Action> | 
process(List<Action> actions,
       ActionContext actionContext)
Processes the specified actions and returns them. 
 | 
void | 
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)  | 
public WorkObjectActionProcessor(WorkObjectService workObjectService)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic List<Action> process(List<Action> actions, ActionContext actionContext)
ActionProcessorProcesses the specified actions and returns them. The given context and the work object id are also provided for specified processing.
process in interface ActionProcessoractions - the actions to processactionContext - DefaultActionContext in which actions are processedCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.