Examples of templateKey()


Examples of org.sonar.server.rule.Rule.templateKey()

  private RuleUpdate createRuleUpdate(RuleKey key) {
    Rule rule = service.getByKey(key);
    if (rule == null) {
      throw new NotFoundException("This rule does not exists : " + key);
    }
    if (rule.templateKey() != null) {
      return RuleUpdate.createForCustomRule(key);
    } else if (rule.isManual()) {
      return RuleUpdate.createForManualRule(key);
    } else {
      return RuleUpdate.createForPluginRule(key);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.