Enum Class RuleIfConditionEnum

java.lang.Object
java.lang.Enum<RuleIfConditionEnum>
edu.internet2.middleware.grouper.rules.RuleIfConditionEnum
All Implemented Interfaces:
Serializable, Comparable<RuleIfConditionEnum>, Constable

public enum RuleIfConditionEnum extends Enum<RuleIfConditionEnum>
built in if condition
  • Enum Constant Details

    • subjectNotInSources

      public static final RuleIfConditionEnum subjectNotInSources
    • noGroupInFolderHasImmediateEnabledMembership

      public static final RuleIfConditionEnum noGroupInFolderHasImmediateEnabledMembership
      make sure no group in folder has an enabled membership
    • nameMatchesSqlLikeString

      public static final RuleIfConditionEnum nameMatchesSqlLikeString
      make sure the name of the object matches this sql like string (with percent signs and underscores), e.g. school:folder:whatever:%groupSuffix
    • thisGroupAndNotFolderHasImmediateEnabledMembership

      public static final RuleIfConditionEnum thisGroupAndNotFolderHasImmediateEnabledMembership
      make sure this group and not the folder has membership
    • thisPermissionDefHasAssignmentAndNotFolder

      public static final RuleIfConditionEnum thisPermissionDefHasAssignmentAndNotFolder
      make sure there is not a membership in folder, but does have an attributeDef
    • groupHasNoImmediateEnabledMembership

      public static final RuleIfConditionEnum groupHasNoImmediateEnabledMembership
      make sure a group has no immedaite enabled membership
    • thisGroupHasImmediateEnabledMembership

      public static final RuleIfConditionEnum thisGroupHasImmediateEnabledMembership
      if on group which has membership
    • thisGroupHasImmediateEnabledNoEndDateMembership

      public static final RuleIfConditionEnum thisGroupHasImmediateEnabledNoEndDateMembership
      if on group which has membership with no end date
    • thisPermissionDefHasAssignment

      public static final RuleIfConditionEnum thisPermissionDefHasAssignment
      if permission def has assignment
    • thisPermissionDefHasNoEndDateAssignment

      public static final RuleIfConditionEnum thisPermissionDefHasNoEndDateAssignment
      if permission def has assignment with no end date
    • groupHasNoEnabledMembership

      public static final RuleIfConditionEnum groupHasNoEnabledMembership
      make sure a group has no enabled membership
    • never

      public static final RuleIfConditionEnum never
      make sure a group has no enabled membership
    • groupHasTooManyMembers

      public static final RuleIfConditionEnum groupHasTooManyMembers
      make sure a group has no enabled membership
  • Method Details

    • values

      public static RuleIfConditionEnum[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RuleIfConditionEnum valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isAdminOnly

      public boolean isAdminOnly()
    • usesArg0

      public abstract boolean usesArg0()
    • usesArg1

      public abstract boolean usesArg1()
    • shouldFire

      public abstract boolean shouldFire(RuleDefinition ruleDefinition, RuleEngine ruleEngine, RulesBean rulesBean)
      should fire
      Parameters:
      ruleDefinition -
      ruleEngine -
      rulesBean -
      Returns:
      if should fire
    • isIfOwnerTypeGroup

      public abstract boolean isIfOwnerTypeGroup(RuleDefinition ruleDefinition)
      Whether or not the rule if condition owner type is a group
      Parameters:
      ruleDefinition -
      Returns:
      true if the if condition owner type is a group
    • isIfOwnerTypeStem

      public abstract boolean isIfOwnerTypeStem(RuleDefinition ruleDefinition)
      Whether or not the rule if condition owner type is a stem
      Parameters:
      ruleDefinition -
      Returns:
      true if the if condition owner type is a stem
    • isIfOwnerTypeAttributeDef

      public abstract boolean isIfOwnerTypeAttributeDef(RuleDefinition ruleDefinition)
      Whether or not the rule if condition owner type is an attribute def
      Parameters:
      ruleDefinition -
      Returns:
      true if the if condition owner type is an attribute def
    • valueOfIgnoreCase

      public static RuleIfConditionEnum valueOfIgnoreCase(String string, boolean exceptionOnNull)
      do a case-insensitive matching
      Parameters:
      string -
      exceptionOnNull - will not allow null or blank entries
      Returns:
      the enum or null or exception if not found
    • validate

      public String validate(RuleDefinition ruleDefinition)
      validate the enum
      Parameters:
      ruleDefinition -
      Returns:
      error message or null if ok
    • validateNoParams

      public static String validateNoParams(RuleDefinition ruleDefinition)
      make sure there are no params
      Parameters:
      ruleDefinition -
      Returns:
      error message if there are params
    • getOwnerType

      public abstract RuleOwnerType getOwnerType()