Class RuleFinder

java.lang.Object
edu.internet2.middleware.grouper.rules.RuleFinder

public class RuleFinder extends Object
  • Constructor Details

    • RuleFinder

      public RuleFinder()
  • Method Details

    • findGroupPrivilegeInheritRules

      public static Set<RuleDefinition> findGroupPrivilegeInheritRules(Stem stem)
      find group inherit rules by stem name
      Parameters:
      stem -
      Returns:
      the rules
    • findPrivilegeInheritRules

      public static Set<RuleDefinition> findPrivilegeInheritRules(boolean secure)
      find subject inherit rules by stem name. Note, the calling subject must be able to see the rules
      Parameters:
      secure -
      Returns:
      the rules
    • findSubjectPrivilegeInheritRules

      public static Set<RuleDefinition> findSubjectPrivilegeInheritRules(Subject subject, boolean secure)
      find subject inherit rules by stem name. Note, the calling subject must be able to see the rules
      Parameters:
      subject -
      secure -
      Returns:
      the rules
    • findFolderPrivilegeInheritRules

      public static Set<RuleDefinition> findFolderPrivilegeInheritRules(Stem stem)
      find folder inherit rules by stem name
      Parameters:
      stem -
      Returns:
      the rules
    • findAttributeDefPrivilegeInheritRules

      public static Set<RuleDefinition> findAttributeDefPrivilegeInheritRules(Stem stem)
      find attribute def inherit rules by stem name
      Parameters:
      stem -
      Returns:
      the rules
    • retrieveRuleDefinitionsForSubject

      public static Set<RuleDefinition> retrieveRuleDefinitionsForSubject(Subject subject)
    • retrieveRuleDefinitionsForGrouperObject

      public static Set<RuleDefinition> retrieveRuleDefinitionsForGrouperObject(GrouperObject grouperObject)
      get all the rule definitions that are associated with the given grouper object.
      Parameters:
      grouperObject -
      Returns:
    • retrieveRuleDefinitionsDeleteCountForGrouperObjects

      public static Set<RuleDefinition> retrieveRuleDefinitionsDeleteCountForGrouperObjects(Set<GrouperObject> grouperObjects)
      finding rule definitions that refer to these objects but not defined in these objects
      Parameters:
      grouperObjects -
      Returns:
    • retrieveRuleDefinitionsToBeDeletedForGrouperObject

      public static Set<RuleDefinition> retrieveRuleDefinitionsToBeDeletedForGrouperObject(GrouperObject grouperObject)
      get all the rule definitions that can be deleted when the given grouper object is deleted
      Parameters:
      grouperObject -
      Returns: