Enum Class RulePattern

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

public enum RulePattern extends Enum<RulePattern>
  • Enum Constant Details

    • VetoInFolderIfNotEligibleDueToGroup

      public static final RulePattern VetoInFolderIfNotEligibleDueToGroup
    • InheritedPrivilegesOnFolders

      public static final RulePattern InheritedPrivilegesOnFolders
    • InheritedPrivilegesOnAttributeDefinitions

      public static final RulePattern InheritedPrivilegesOnAttributeDefinitions
    • InheritedPrivilegesOnGroups

      public static final RulePattern InheritedPrivilegesOnGroups
    • AddSelfPrivilegesToNewGroups

      public static final RulePattern AddSelfPrivilegesToNewGroups
    • AddDisabledDateOnInvalidMembership

      public static final RulePattern AddDisabledDateOnInvalidMembership
    • AddDisabledDateOnMembership

      public static final RulePattern AddDisabledDateOnMembership
    • AddMemberToGroupIfAddedToAnotherGroup

      public static final RulePattern AddMemberToGroupIfAddedToAnotherGroup
    • AddMemberToGroupIfRemovedFromAnotherGroup

      public static final RulePattern AddMemberToGroupIfRemovedFromAnotherGroup
    • AddCreatedGroupsToAnotherGroup

      public static final RulePattern AddCreatedGroupsToAnotherGroup
    • RemoveInvalidMembershipDueToGroup

      public static final RulePattern RemoveInvalidMembershipDueToGroup
    • SendEmailWhenGroupMemberInvalidDueToFolder

      public static final RulePattern SendEmailWhenGroupMemberInvalidDueToFolder
    • SendEmailMembershipAddDueToFolder

      public static final RulePattern SendEmailMembershipAddDueToFolder
    • SendEmailDueToDisabledDate

      public static final RulePattern SendEmailDueToDisabledDate
    • VetoIfNewMembershipIsNotAGroup

      public static final RulePattern VetoIfNewMembershipIsNotAGroup
    • VetoIfNotEligibleDueToFolder

      public static final RulePattern VetoIfNotEligibleDueToFolder
    • VetoIfNotEligibleDueToGroup

      public static final RulePattern VetoIfNotEligibleDueToGroup
    • VetoIfTooManyMembers

      public static final RulePattern VetoIfTooManyMembers
    • RemoveInvalidMembershipDueToFolder

      public static final RulePattern RemoveInvalidMembershipDueToFolder
    • SendEmailAfterNewMembership

      public static final RulePattern SendEmailAfterNewMembership
    • SendEmailAfterMembershipRemove

      public static final RulePattern SendEmailAfterMembershipRemove
    • AddDisabledDateOnInvalidMembershipDueToFolder

      public static final RulePattern AddDisabledDateOnInvalidMembershipDueToFolder
  • Field Details

    • LOG

      protected static final org.apache.commons.logging.Log LOG
      logger
  • Method Details

    • values

      public static RulePattern[] 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 RulePattern 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
    • save

      public abstract Map<String,List<String>> save(RuleConfig ruleConfig, String attributeAssignId)
    • validate

      public abstract List<String> validate(RuleConfig ruleConfig, Subject loggedInSubject)
      validate the config that's being saved. If logged in subject is null then don't check if the subject can access all the properties
      Parameters:
      ruleConfig -
      loggedInSubject -
      Returns:
    • getUserFriendlyText

      public abstract String getUserFriendlyText()
      Returns:
    • getElementsToShow

      public abstract List<GrouperConfigurationModuleAttribute> getElementsToShow(GrouperObject grouperObject, RuleDefinition ruleDefinition)
      Parameters:
      grouperObject -
      ruleDefinition -
      canViewCheckGrouperObject -
      canViewConditionGrouperObject -
      Returns:
    • isApplicableForFolders

      public abstract boolean isApplicableForFolders()
      Returns:
    • isApplicableForGroups

      public abstract boolean isApplicableForGroups()
      Returns:
    • getHelperText

      public abstract String getHelperText()
    • isThisThePattern

      public abstract boolean isThisThePattern(RuleDefinition ruleDefinition)
      based on rule config attributes, check if the current enum is the pattern
      Parameters:
      ruleConfig -
      Returns:
    • isDaemonApplicable

      public boolean isDaemonApplicable()
    • isDaemonAssignableByNonAdmin

      public boolean isDaemonAssignableByNonAdmin()