Enum Class RuleThenEnum
- All Implemented Interfaces:
Serializable
,Comparable<RuleThenEnum>
,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 ConstantsEnum ConstantDescriptionadd the group (the current one being acted on) to the owner groupadd the member (the current one being acted on) to the owner groupassign privilege(s) to subject on the attributeDef being acted on (attributeDefId)assign a disabled date if there is a permission assignment to the owner attribute defassign privilege(s) to subject on the group being acted on (groupId)assign a disabled date if there is a membership in this group to the owner group ${ruleElUtils.assignMembershipDisabledDaysForGroupId(ownerGroupId, memberId, 7)}assign privilege(s) to subject on the stem being acted on (stemId)remove the member (the current one being acted on) from the owner groupremove the member (the current one being acted on) from the roles and assignments associated with the owner attribute definitionsend an email about this action.veto the operation (note, must be a transactional check for this to work) -
Method Summary
Modifier and TypeMethodDescriptionabstract Object
fireRule
(RuleDefinition ruleDefinition, RuleEngine ruleEngine, RulesBean rulesBean, StringBuilder logDataForThisDefinition) fire this ruleabstract String
what privileges the logged in user needs to have to view the group while editing the ruleabstract String
what privileges the logged in user needs to have to view the folder while editing the ruleboolean
usesArg0()
boolean
usesArg1()
boolean
usesArg2()
validate
(RuleDefinition ruleDefinition) validate the rulestatic RuleThenEnum
Returns the enum constant of this class with the specified name.static RuleThenEnum
valueOfIgnoreCase
(String string, boolean exceptionOnNull) do a case-insensitive matchingstatic RuleThenEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
assignDisabledDaysToOwnerPermissionDefAssignments
assign a disabled date if there is a permission assignment to the owner attribute def -
assignMembershipDisabledDaysForOwnerGroupId
assign a disabled date if there is a membership in this group to the owner group ${ruleElUtils.assignMembershipDisabledDaysForGroupId(ownerGroupId, memberId, 7)} -
veto
veto the operation (note, must be a transactional check for this to work) -
removeMemberFromOwnerPermissionDefAssignments
remove the member (the current one being acted on) from the roles and assignments associated with the owner attribute definition -
removeMemberFromOwnerGroup
remove the member (the current one being acted on) from the owner group -
addMemberToOwnerGroup
add the member (the current one being acted on) to the owner group -
addGroupToOwnerGroup
add the group (the current one being acted on) to the owner group -
assignSelfGroupPrivilege
-
reassignGroupPrivilegesIfFromGroup
-
reassignAttributeDefPrivilegesIfFromGroup
-
reassignStemPrivilegesIfFromGroup
-
assignGroupPrivilegeToGroupId
assign privilege(s) to subject on the group being acted on (groupId) -
assignStemPrivilegeToStemId
assign privilege(s) to subject on the stem being acted on (stemId) -
assignAttributeDefPrivilegeToAttributeDefId
assign privilege(s) to subject on the attributeDef being acted on (attributeDefId) -
sendEmail
send an email about this action. arg0: comma separated email addresses to send to. ${subjectEmail} is a variable which evaluates to the email of the subject (if applicable) arg1: subject (some text/EL), or template: templateName arg2: body (some text/EL), or template: templateName The template name comes from the directory in grouper.properties: rules.emailTemplatesFolder
-
-
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 boolean usesArg0() -
usesArg1
public boolean usesArg1() -
usesArg2
public boolean usesArg2() -
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
-
fireRule
public abstract Object fireRule(RuleDefinition ruleDefinition, RuleEngine ruleEngine, RulesBean rulesBean, StringBuilder logDataForThisDefinition) fire this rule- Parameters:
ruleDefinition
-ruleEngine
-rulesBean
-logDataForThisDefinition
- is null if not logging, and non null if things should be appended- Returns:
- something for log
-
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
validate the rule- Parameters:
ruleDefinition
-- Returns:
- the validation reason
-