org.sonar.api.workflow.internal
Class DefaultWorkflow
java.lang.Object
org.sonar.api.workflow.internal.DefaultWorkflow
- All Implemented Interfaces:
- ServerComponent, Workflow
@Beta
public final class DefaultWorkflow
- extends Object
- implements Workflow
- Since:
- 3.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultWorkflow
public DefaultWorkflow()
addCommand
public Workflow addCommand(String key)
- Specified by:
addCommand
in interface Workflow
getCommands
public Set<String> getCommands()
- Specified by:
getCommands
in interface Workflow
hasCommand
public boolean hasCommand(String key)
getProjectPropertyKeys
public List<String> getProjectPropertyKeys()
getConditions
public List<Condition> getConditions(String commandKey)
- Shortcut for: getReviewConditions(commandKey) + getContextConditions(commandKey)
- Specified by:
getConditions
in interface Workflow
getReviewConditions
public List<Condition> getReviewConditions(String commandKey)
getContextConditions
public List<Condition> getContextConditions(String commandKey)
addCondition
public Workflow addCondition(String commandKey,
Condition condition)
- Specified by:
addCondition
in interface Workflow
getFunctions
public List<Function> getFunctions(String commandKey)
- Specified by:
getFunctions
in interface Workflow
addFunction
public Workflow addFunction(String commandKey,
Function function)
- Specified by:
addFunction
in interface Workflow
getScreen
public Screen getScreen(String commandKey)
- Specified by:
getScreen
in interface Workflow
setScreen
public Workflow setScreen(String commandKey,
Screen screen)
- Specified by:
setScreen
in interface Workflow
getScreensByCommand
public Map<String,Screen> getScreensByCommand()
Copyright © 2009-2012 SonarSource. All Rights Reserved.