org.sonar.api.workflow.internal
Class DefaultWorkflow

java.lang.Object
  extended by org.sonar.api.workflow.internal.DefaultWorkflow
All Implemented Interfaces:
ServerComponent, Workflow

@Beta
public final class DefaultWorkflow
extends Object
implements Workflow

Since:
3.1

Constructor Summary
DefaultWorkflow()
           
 
Method Summary
 Workflow addCommand(String key)
           
 Workflow addCondition(String commandKey, Condition condition)
           
 Workflow addFunction(String commandKey, Function function)
           
 Set<String> getCommands()
           
 List<Condition> getConditions(String commandKey)
          Shortcut for: getReviewConditions(commandKey) + getContextConditions(commandKey)
 List<Condition> getContextConditions(String commandKey)
           
 List<Function> getFunctions(String commandKey)
           
 List<String> getProjectPropertyKeys()
           
 List<Condition> getReviewConditions(String commandKey)
           
 Screen getScreen(String commandKey)
           
 Map<String,Screen> getScreensByCommand()
           
 boolean hasCommand(String key)
           
 Workflow setScreen(String commandKey, Screen screen)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWorkflow

public DefaultWorkflow()
Method Detail

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.