Class RuleIfCondition

java.lang.Object
edu.internet2.middleware.grouper.rules.RuleIfCondition

public class RuleIfCondition extends Object
rule if condition
  • Constructor Details

    • RuleIfCondition

      public RuleIfCondition()
    • RuleIfCondition

      public RuleIfCondition(String ifConditionEl1, String ifConditionEnum1, String theIfOwnerId, String theIfOwnerName, String theStemScope, String theIfConditionEnumArg0, String theIfConditionEnumArg1)
      Parameters:
      ifConditionEl1 -
      ifConditionEnum1 -
      theIfOwnerId -
      theIfOwnerName -
      theStemScope -
      theIfConditionEnumArg0 -
      theIfConditionEnumArg1 -
  • Method Details

    • isBlank

      public boolean isBlank()
    • getIfConditionEnumArg0

      public String getIfConditionEnumArg0()
      if it is an enum, this is the first arg if applicable
      Returns:
      the first arg
    • setIfConditionEnumArg0

      public void setIfConditionEnumArg0(String ifConditionEnumArg0_)
      if it is an enum, this is the first arg if applicable
      Parameters:
      ifConditionEnumArg0_ -
    • getIfConditionEnumArg1

      public String getIfConditionEnumArg1()
      if it is an enum, this is the second arg if applicable
      Returns:
      arg1
    • setIfConditionEnumArg1

      public void setIfConditionEnumArg1(String ifConditionEnumArg1_)
      if it is an enum, this is the first arg if applicable
      Parameters:
      ifConditionEnumArg1_ -
    • getIfStemScope

      public String getIfStemScope()
      if a stem, this is the scope of ONE or SUB
      Returns:
      null or ONE or SUB
    • setIfStemScope

      public void setIfStemScope(String ifStemScope1)
      if a stem, this is the scope of ONE or SUB
      Parameters:
      ifStemScope1 -
    • getIfOwnerName

      public String getIfOwnerName()
      if the enum needs an owner, this is the name
      Returns:
      name
    • setIfOwnerName

      public void setIfOwnerName(String ifOwnerName1)
      if the enum needs an owner, this is the name
      Parameters:
      ifOwnerName1 -
    • getIfOwnerId

      public String getIfOwnerId()
      if the enum needs an owner, this is the id
      Returns:
      id
    • setIfOwnerId

      public void setIfOwnerId(String ifOwnerId1)
      if the enum needs an owner, this is the id
      Parameters:
      ifOwnerId1 -
    • getIfConditionEl

      public String getIfConditionEl()
      if it is an el, put that here
      Returns:
      el
    • setIfConditionEl

      public void setIfConditionEl(String ifConditionEl1)
      if it is an el, put that here
      Parameters:
      ifConditionEl1 -
    • getIfConditionEnum

      public String getIfConditionEnum()
      if it is an enum, put that here
      Returns:
      enum
    • setIfConditionEnum

      public void setIfConditionEnum(String ifConditionEnum1)
      if it is an enum, put that here
      Parameters:
      ifConditionEnum1 -
    • ifConditionEnum

      public RuleIfConditionEnum ifConditionEnum()
      convert the type to an enum
      Returns:
      rule check type
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also:
    • validate

      public String validate(RuleDefinition ruleDefinition)
      validate this
      Parameters:
      ruleDefinition -
      Returns:
      error or null if ok
    • shouldFire

      public boolean shouldFire(RuleDefinition ruleDefinition, RuleEngine ruleEngine, RulesBean rulesBean, StringBuilder logDataForThisDefinition)
      if this check passes
      Parameters:
      ruleDefinition -
      ruleEngine -
      rulesBean -
      logDataForThisDefinition -
      Returns:
      true if this check passes