Class GrouperDeprovisioningLogic
java.lang.Object
edu.internet2.middleware.grouper.app.deprovisioning.GrouperDeprovisioningLogic
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
affiliationAdmin
(Subject subject, String affiliation, boolean checkOverallAdmins, boolean checkRootUsers, boolean useCache) get the affiliations to deprovisionstatic boolean
allowedToDeprovision
(Subject subject) if user is allowed to deprovisionstatic boolean
deprovisionedSubject
(Subject subject, boolean useCache) static boolean
deprovisionedSubject
(Subject subject, String affiliation, boolean useCache) deprovisionedSubjectsForAffiliation
(String affiliation, boolean useCache) static boolean
inAffiliationGroup
(Subject subject, String affiliation, boolean useCache) static void
removeAccess
(AttributeDef attributeDef, Subject subject) static void
removeAccess
(Group group, Subject subject) static void
removeAccess
(Membership membership) static void
removeAccess
(Stem stem, Subject subject) static boolean
shouldAddSubject
(GrouperSession grouperSession, Group loaderGroup, Subject subject) static boolean
shouldAddSubject
(GrouperSession grouperSession, HooksContext hooksContext, Subject subject, String groupId, String attributeDefId, String stemId, String[] ownerArray) 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 groupsstatic 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 groupsstatic void
updateLastCertifiedDate
(GrouperObject grouperObject, Date lastCertifiedDate) update last certified date to now
-
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
- Parameters:
subject
-affiliation
-useCache
-- Returns:
- if the subject is deprovisioned
-
deprovisionedSubject
- Parameters:
subject
-useCache
-- Returns:
- if the subject is deprovisioned
-
updateLastCertifiedDate
update last certified date to now- Parameters:
grouperObject
-lastCertifiedDate
- or null to remove
-
removeAccess
- Parameters:
membership
-
-
removeAccess
- Parameters:
membership
-
-
removeAccess
- Parameters:
attributeDef
-subject
-
-
removeAccess
- Parameters:
membership
-
-
allowedToDeprovision
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
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
- 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
- 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
-