Class GrouperDeprovisioningLogic

java.lang.Object
edu.internet2.middleware.grouper.app.deprovisioning.GrouperDeprovisioningLogic

public class GrouperDeprovisioningLogic extends Object
  • Constructor Details

    • GrouperDeprovisioningLogic

      public GrouperDeprovisioningLogic()
  • Method Details

    • deprovisionedSubjectsForAffiliation

      public static Set<Subject> deprovisionedSubjectsForAffiliation(String affiliation, boolean useCache)
      Parameters:
      affiliation -
      useCache -
      Returns:
      if the subject is deprovisioned
    • deprovisionedSubject

      public static boolean deprovisionedSubject(Subject subject, String affiliation, boolean useCache)
      Parameters:
      subject -
      affiliation -
      useCache -
      Returns:
      if the subject is deprovisioned
    • deprovisionedSubject

      public static boolean deprovisionedSubject(Subject subject, boolean useCache)
      Parameters:
      subject -
      useCache -
      Returns:
      if the subject is deprovisioned
    • updateLastCertifiedDate

      public static void updateLastCertifiedDate(GrouperObject grouperObject, Date lastCertifiedDate)
      update last certified date to now
      Parameters:
      grouperObject -
      lastCertifiedDate - or null to remove
    • removeAccess

      public static void removeAccess(Membership membership)
      Parameters:
      membership -
    • removeAccess

      public static void removeAccess(Group group, Subject subject)
      Parameters:
      membership -
    • removeAccess

      public static void removeAccess(AttributeDef attributeDef, Subject subject)
      Parameters:
      attributeDef -
      subject -
    • removeAccess

      public static void removeAccess(Stem stem, Subject subject)
      Parameters:
      membership -
    • allowedToDeprovision

      public static boolean allowedToDeprovision(Subject subject)
      if user is allowed to deprovision
      Parameters:
      subject -
      Returns:
      true if allowed
    • affiliationAdmin

      public static boolean affiliationAdmin(Subject subject, String affiliation, boolean checkOverallAdmins, boolean checkRootUsers, boolean useCache)
      Parameters:
      subject -
      affiliation -
      checkOverallAdmins -
      checkRootUsers -
      useCache -
      Returns:
      if the subject is an affiliation admin
    • affiliationsToDeprovision

      public static Set<String> affiliationsToDeprovision(GrouperObject owner)
      get the affiliations to deprovision
      Parameters:
      owner -
      Returns:
      the affilations
    • subjectsWhoAreDeprovisionedInRelationToOwner

      public static Set<Subject> subjectsWhoAreDeprovisionedInRelationToOwner(GrouperObject owner, boolean useCache)
      subjects who are deprovisioned, on affiliations on the owner which are deprovisioning, and which are not in affilation groups of other deprovisionable groups
      Parameters:
      owner -
      useCache -
      Returns:
      the subjects to query
    • subjectsWhoAreDeprovisionedInRelationToOwnerWithAffiliations

      public static Set<DeprovisionedSubject> subjectsWhoAreDeprovisionedInRelationToOwnerWithAffiliations(GrouperObject owner, boolean useCache)
      subjects who are deprovisioned, on affiliations on the owner which are deprovisioning, and which are not in affilation groups of other deprovisionable groups
      Parameters:
      owner -
      useCache -
      Returns:
      the subjects to query
    • inAffiliationGroup

      public static boolean inAffiliationGroup(Subject subject, String affiliation, boolean useCache)
      Parameters:
      subject -
      affiliation -
      useCache -
      Returns:
      if the subject is deprovisioned
    • shouldAddSubject

      public static boolean shouldAddSubject(GrouperSession grouperSession, HooksContext hooksContext, Subject subject, String groupId, String attributeDefId, String stemId, String[] ownerArray)
      Parameters:
      grouperSession -
      hooksContext -
      subject -
      groupId -
      attributeDefId -
      stemId -
      ownerArray - - load it with the name of the owner
      Returns:
      true if this subject is allowed to be added to this group otherwise false
    • subjectDeprovisionedInAffiliations

      public static Set<String> subjectDeprovisionedInAffiliations(Subject subject)
      Parameters:
      subject -
      Returns:
      list of affiliations this subject has been deprovisioned from
    • shouldAddSubject

      public static boolean shouldAddSubject(GrouperSession grouperSession, Group loaderGroup, Subject subject)
      Parameters:
      grouperSession -
      loaderGroup -
      subject -
      Returns:
      true if the subject has not been deprovisioned or autoChangeLoader is set to false or some other affiliation's groupNameMeansInAffiliation contains this subject