Enum Class RuleCheckType
- All Implemented Interfaces:
Serializable
,Comparable<RuleCheckType>
,Constable
type of checking for rules
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionif a group is createdif there is a membership remove flattenedif there is a membership(flattened) add of a group in a stemif there is a membership remove flattenedif there is a membership(flattened) remove of a group in a stemif a group is createdif there is a membership add in transactionif there is a membership remove in transaction of remove of a group in a stemquery daily for memberships that are enabled, but have a disabled date coming upif there is a membership remove in transaction of removeif there is a membership remove in transaction of remove of a group in a stemif there is a permission assign in transaction to a subject, not to a rolequery daily for permissions that are enabled, but have a disabled date coming upif a stem is createdif there is a membership add, privilege add, permission add, etc in transaction -
Method Summary
Modifier and TypeMethodDescriptionabstract void
addElVariables
(RuleDefinition ruleDefinition, Map<String, Object> variableMap, RulesBean rulesBean, boolean hasAccessToElApi) add EL variables to the substitute mapabstract boolean
canRunDeamon
(RuleDefinition ruleDefinition) checkKey
(RuleDefinition ruleDefinition) get the check key for the indexstatic RuleCheck
checkKeyForAttributeDefinition
(RuleDefinition ruleDefinition) static RuleCheck
checkKeyForStem
(RuleDefinition ruleDefinition) abstract GroupPrivilegeStrategy
what privileges the logged in user needs to have to view the group while editing the ruleabstract RuleOwnerType
abstract StemPrivilegeStrategy
what privileges the logged in user needs to have to view the folder while editing the ruleabstract boolean
isCheckOwnerTypeAttributeDef
(RuleDefinition ruleDefinition) Whether or not the rule check owner type is an attribute defabstract boolean
isCheckOwnerTypeGroup
(RuleDefinition ruleDefinition) Whether or not the rule check owner type is a groupabstract boolean
isCheckOwnerTypeStem
(RuleDefinition ruleDefinition) Whether or not the rule check owner type is a stemabstract Set<RuleDefinition>
ruleDefinitions
(RuleEngine ruleEngine, RulesBean rulesBean) get the check object from the rules beanvoid
runDaemon
(RuleDefinition ruleDefinition) run the daemon to sync up the stateabstract boolean
usesArg0()
abstract boolean
usesArg1()
validate
(boolean allowCheckArgs, RuleDefinition ruleDefinition, RuleCheck ruleCheck, boolean requireStemScope, boolean ownerIsGroup, boolean ownerIsStem, boolean ownerIsAttributeDef) validate this check typeabstract String
validate
(RuleDefinition ruleDefinition, RuleCheck ruleCheck) validate this check typestatic RuleCheckType
Returns the enum constant of this class with the specified name.static RuleCheckType
valueOfIgnoreCase
(String string, boolean exceptionOnNull) do a case-insensitive matchingstatic RuleCheckType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
permissionDisabledDate
query daily for permissions that are enabled, but have a disabled date coming up -
membershipDisabledDate
query daily for memberships that are enabled, but have a disabled date coming up -
flattenedMembershipAddInFolder
if there is a membership(flattened) add of a group in a stem -
flattenedMembershipRemoveInFolder
if there is a membership(flattened) remove of a group in a stem -
flattenedMembershipRemove
if there is a membership remove flattened -
membershipRemove
if there is a membership remove in transaction of remove -
membershipRemoveInFolder
if there is a membership remove in transaction of remove of a group in a stem -
groupCreate
if a group is created -
stemCreate
if a stem is created -
membershipAdd
if there is a membership add in transaction -
subjectAssignInStem
if there is a membership add, privilege add, permission add, etc in transaction -
flattenedMembershipAdd
if there is a membership remove flattened -
membershipAddInFolder
if there is a membership remove in transaction of remove of a group in a stem -
attributeDefCreate
if a group is created -
permissionAssignToSubject
if there is a permission assign in transaction to a subject, not to a role
-
-
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
-
usesArg0
public abstract boolean usesArg0() -
usesArg1
public abstract boolean usesArg1() -
checkKey
get the check key for the index- Parameters:
ruleDefinition
-- Returns:
- the rule check for the index
-
validate
validate this check type- Parameters:
ruleDefinition
-ruleCheck
-- Returns:
- the error or null if valid
-
ruleDefinitions
get the check object from the rules bean- Parameters:
ruleEngine
-rulesBean
-- Returns:
- the rules
-
addElVariables
public abstract void addElVariables(RuleDefinition ruleDefinition, Map<String, Object> variableMap, RulesBean rulesBean, boolean hasAccessToElApi) add EL variables to the substitute map- Parameters:
ruleDefinition
-variableMap
-rulesBean
-hasAccessToElApi
-
-
isCheckOwnerTypeGroup
Whether or not the rule check owner type is a group- Parameters:
ruleDefinition
-- Returns:
- true if check owner type is a group
-
isCheckOwnerTypeStem
Whether or not the rule check owner type is a stem- Parameters:
ruleDefinition
-- Returns:
- true if check owner type is a stem
-
isCheckOwnerTypeAttributeDef
Whether or not the rule check owner type is an attribute def- Parameters:
ruleDefinition
-- Returns:
- true if check owner type is an attribute def
-
getGroupPrivilegeStrategy
what privileges the logged in user needs to have to view the group while editing the rule- Returns:
-
getStemPrivilegeStrategy
what privileges the logged in user needs to have to view the folder while editing the rule- Returns:
-
validate
public String validate(boolean allowCheckArgs, RuleDefinition ruleDefinition, RuleCheck ruleCheck, boolean requireStemScope, boolean ownerIsGroup, boolean ownerIsStem, boolean ownerIsAttributeDef) validate this check type- Parameters:
allowCheckArgs
-ruleDefinition
-ruleCheck
-requireStemScope
- true to require, false to require blankownerIsGroup
-ownerIsStem
-ownerIsAttributeDef
-- Returns:
- the error or null if valid
-
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
-
runDaemon
run the daemon to sync up the state- Parameters:
ruleDefinition
-
-
canRunDeamon
-
checkKeyForStem
- Parameters:
ruleDefinition
-- Returns:
- rule check
-
checkKeyForAttributeDefinition
- Parameters:
ruleDefinition
-- Returns:
- rule check
-
getOwnerType
-