Package org.sonar.api.issue.condition

Examples of org.sonar.api.issue.condition.Condition


  private final IssueUpdater issueUpdater;

  public SetSeverityAction(IssueUpdater issueUpdater) {
    super(KEY);
    this.issueUpdater = issueUpdater;
    super.setConditions(new IsUnResolved(), new Condition() {
      @Override
      public boolean matches(Issue issue) {
        return isCurrentUserIssueAdmin(((DefaultIssue) issue).projectKey());
      }
    });
View Full Code Here


    public MockAction(String key, boolean verify, boolean execute, final boolean support) {
      super(key);
      this.verify = verify;
      this.execute = execute;
      setConditions(new Condition() {
        @Override
        public boolean matches(Issue issue) {
          return support;
        }
      });
View Full Code Here

TOP

Related Classes of org.sonar.api.issue.condition.Condition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.