Enum Class RuleIfConditionEnum
- All Implemented Interfaces:
Serializable
,Comparable<RuleIfConditionEnum>
,Constable
built in if condition
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionmake sure a group has no enabled membershipmake sure a group has no immedaite enabled membershipmake sure a group has no enabled membershipmake sure the name of the object matches this sql like string (with percent signs and underscores), e.g.make sure a group has no enabled membershipmake sure no group in folder has an enabled membershipmake sure this group and not the folder has membershipif on group which has membershipif on group which has membership with no end dateif permission def has assignmentmake sure there is not a membership in folder, but does have an attributeDefif permission def has assignment with no end date -
Method Summary
Modifier and TypeMethodDescriptionabstract RuleOwnerType
boolean
abstract boolean
isIfOwnerTypeAttributeDef
(RuleDefinition ruleDefinition) Whether or not the rule if condition owner type is an attribute defabstract boolean
isIfOwnerTypeGroup
(RuleDefinition ruleDefinition) Whether or not the rule if condition owner type is a groupabstract boolean
isIfOwnerTypeStem
(RuleDefinition ruleDefinition) Whether or not the rule if condition owner type is a stemabstract boolean
shouldFire
(RuleDefinition ruleDefinition, RuleEngine ruleEngine, RulesBean rulesBean) should fireabstract boolean
usesArg0()
abstract boolean
usesArg1()
validate
(RuleDefinition ruleDefinition) validate the enumstatic String
validateNoParams
(RuleDefinition ruleDefinition) make sure there are no paramsstatic RuleIfConditionEnum
Returns the enum constant of this class with the specified name.static RuleIfConditionEnum
valueOfIgnoreCase
(String string, boolean exceptionOnNull) do a case-insensitive matchingstatic RuleIfConditionEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
subjectNotInSources
-
noGroupInFolderHasImmediateEnabledMembership
make sure no group in folder has an enabled membership -
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
make sure this group and not the folder has membership -
thisPermissionDefHasAssignmentAndNotFolder
make sure there is not a membership in folder, but does have an attributeDef -
groupHasNoImmediateEnabledMembership
make sure a group has no immedaite enabled membership -
thisGroupHasImmediateEnabledMembership
if on group which has membership -
thisGroupHasImmediateEnabledNoEndDateMembership
if on group which has membership with no end date -
thisPermissionDefHasAssignment
if permission def has assignment -
thisPermissionDefHasNoEndDateAssignment
if permission def has assignment with no end date -
groupHasNoEnabledMembership
make sure a group has no enabled membership -
never
make sure a group has no enabled membership -
groupHasTooManyMembers
make sure a group has no enabled membership
-
-
Method Details
-
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
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 nameNullPointerException
- 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
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
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
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
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
validate the enum- Parameters:
ruleDefinition
-- Returns:
- error message or null if ok
-
validateNoParams
make sure there are no params- Parameters:
ruleDefinition
-- Returns:
- error message if there are params
-
getOwnerType
-