Class GrouperProvisioningCompare
java.lang.Object
edu.internet2.middleware.grouper.app.provisioning.GrouperProvisioningCompare
- Direct Known Subclasses:
LdapSyncCompare
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEntityDefaultMembershipAttributeValueIfAllRemoved
(List<ProvisioningEntity> grouperTargetEntitiesForUpdate) void
addGroupDefaultMembershipAttributeValueIfAllRemoved
(List<ProvisioningGroup> grouperTargetGroupsForUpdate) void
addInternalObjectChangeForEntitiesToInsert
(List<ProvisioningEntity> provisioningEntitiesToInsert) void
addInternalObjectChangeForGroupsToInsert
(List<ProvisioningGroup> provisioningGroupsToInsert) void
addProvisioningUpdatableToUpdateIfNotThere
(List provisioningUpdatablesToUpdate, ProvisioningUpdatable grouperProvisioningUpdatable) attributeChangeType
(Object old, Object theNew) boolean
attributeValueEquals
(String attributeName, Object first, Object second, ProvisioningUpdatable grouperTargetUpdatable) attributeValueForCompareEntity
(String attributeName, Object attributeValue) convert an attribute value to lower case if case insensitiveattributeValueForCompareGroup
(String attributeName, Object attributeValue) convert an attribute value to lower case if case insensitivevoid
compareAttributeForUpdateValue
(ProvisioningUpdatable grouperProvisioningUpdatable, ProvisioningAttribute grouperAttribute, ProvisioningUpdatable targetProvisioningUpdatable, ProvisioningAttribute targetAttribute, String attributeName, boolean recalc) dont compare the membership attribute of group or entity.void
compareAttributeForUpdateValueMembershipOnly
(ProvisioningUpdatable grouperProvisioningUpdatable, ProvisioningAttribute grouperAttribute, ProvisioningUpdatable targetProvisioningUpdatable, ProvisioningAttribute targetAttribute, String attributeName, boolean recalcProvisioningUpdateable) void
compareAttributesForDelete
(ProvisioningUpdatable provisioningUpdatableToDelete) void
compareAttributesForInsert
(ProvisioningUpdatable provisioningUpdatableToInsert) void
compareAttributesForUpdate
(List provisioningUpdatablesToUpdate, Map<String, ProvisioningAttribute> grouperTargetAttributes, Map<String, ProvisioningAttribute> targetProvisioningAttributes, ProvisioningUpdatable grouperProvisioningUpdatable, ProvisioningUpdatable targetProvisioningUpdatable) void
compareTargetEntities
(Collection<ProvisioningEntityWrapper> provisioningEntityWrappers) void
compareTargetGroups
(Collection<ProvisioningGroupWrapper> provisioningGroupWrappers) void
compareTargetMemberships
(Collection<ProvisioningMembershipWrapper> provisioningMembershipWrappers) void
filterDeletedMemberships
(ProvisioningAttribute grouperAttribute, Object grouperValue) if this is a membership and the membership is deleted, return nullfilterMembershipsNotInGrouper
(ProvisioningAttribute grouperAttribute, Object grouperValue) if this is a membership and the membership is not in grouper, return nullboolean
filterNonRecalcMemberships
(ProvisioningAttribute grouperAttribute, Object grouperValue, boolean groupOrEntityRecalc) if this is a membership and the membership is deleted, return nullgroup uuids to deleteint
int
boolean
isCaseSensitiveCompare
(String attributeName, ProvisioningUpdatable provisioningUpdatable) void
removeGroupDefaultMembershipAttributeValueIfAnyAdded
(List<ProvisioningGroup> grouperTargetGroupsForUpdate) void
setGrouperProvisioner
(GrouperProvisioner grouperProvisioner)
-
Constructor Details
-
GrouperProvisioningCompare
public GrouperProvisioningCompare()
-
-
Method Details
-
attributeValueForCompareEntity
convert an attribute value to lower case if case insensitive- Parameters:
attributeName
-attributeValue
-- Returns:
-
attributeValueForCompareGroup
convert an attribute value to lower case if case insensitive- Parameters:
attributeName
-attributeValue
-- Returns:
-
isCaseSensitiveCompare
public boolean isCaseSensitiveCompare(String attributeName, ProvisioningUpdatable provisioningUpdatable) -
getGroupUuidToMembershipDeleteCount
-
getGroupUuidToMembershipAddCount
-
getMembershipAddCount
public int getMembershipAddCount() -
getGroupUuidsToDelete
group uuids to delete- Returns:
-
getMembershipDeleteCount
public int getMembershipDeleteCount() -
getGrouperProvisioner
-
setGrouperProvisioner
-
addProvisioningUpdatableToUpdateIfNotThere
public void addProvisioningUpdatableToUpdateIfNotThere(List provisioningUpdatablesToUpdate, ProvisioningUpdatable grouperProvisioningUpdatable) -
attributeChangeType
-
attributeValueEquals
public boolean attributeValueEquals(String attributeName, Object first, Object second, ProvisioningUpdatable grouperTargetUpdatable) -
compareAttributesForDelete
-
compareAttributesForInsert
-
compareAttributesForUpdate
public void compareAttributesForUpdate(List provisioningUpdatablesToUpdate, Map<String, ProvisioningAttribute> grouperTargetAttributes, Map<String, ProvisioningAttribute> targetProvisioningAttributes, ProvisioningUpdatable grouperProvisioningUpdatable, ProvisioningUpdatable targetProvisioningUpdatable) -
compareAttributeForUpdateValueMembershipOnly
public void compareAttributeForUpdateValueMembershipOnly(ProvisioningUpdatable grouperProvisioningUpdatable, ProvisioningAttribute grouperAttribute, ProvisioningUpdatable targetProvisioningUpdatable, ProvisioningAttribute targetAttribute, String attributeName, boolean recalcProvisioningUpdateable) -
compareAttributeForUpdateValue
public void compareAttributeForUpdateValue(ProvisioningUpdatable grouperProvisioningUpdatable, ProvisioningAttribute grouperAttribute, ProvisioningUpdatable targetProvisioningUpdatable, ProvisioningAttribute targetAttribute, String attributeName, boolean recalc) dont compare the membership attribute of group or entity. dont compare memberships at all- Parameters:
grouperProvisioningUpdatable
-attributeName
-grouperAttribute
-targetProvisioningUpdatable
-targetAttribute
-recalc
-
-
filterDeletedMemberships
if this is a membership and the membership is deleted, return null- Parameters:
grouperAttribute
-grouperValue
-- Returns:
-
filterMembershipsNotInGrouper
public Object filterMembershipsNotInGrouper(ProvisioningAttribute grouperAttribute, Object grouperValue) if this is a membership and the membership is not in grouper, return null- Parameters:
grouperAttribute
-grouperValue
-- Returns:
-
filterNonRecalcMemberships
public boolean filterNonRecalcMemberships(ProvisioningAttribute grouperAttribute, Object grouperValue, boolean groupOrEntityRecalc) if this is a membership and the membership is deleted, return null- Parameters:
grouperAttribute
-grouperValue
-- Returns:
-
compareTargetEntities
-
compareTargetGroups
-
addInternalObjectChangeForEntitiesToInsert
public void addInternalObjectChangeForEntitiesToInsert(List<ProvisioningEntity> provisioningEntitiesToInsert) -
addInternalObjectChangeForGroupsToInsert
public void addInternalObjectChangeForGroupsToInsert(List<ProvisioningGroup> provisioningGroupsToInsert) -
compareTargetMemberships
public void compareTargetMemberships(Collection<ProvisioningMembershipWrapper> provisioningMembershipWrappers) -
compareTargetObjects
public void compareTargetObjects() -
addGroupDefaultMembershipAttributeValueIfAllRemoved
public void addGroupDefaultMembershipAttributeValueIfAllRemoved(List<ProvisioningGroup> grouperTargetGroupsForUpdate) -
removeGroupDefaultMembershipAttributeValueIfAnyAdded
public void removeGroupDefaultMembershipAttributeValueIfAnyAdded(List<ProvisioningGroup> grouperTargetGroupsForUpdate) -
addEntityDefaultMembershipAttributeValueIfAllRemoved
public void addEntityDefaultMembershipAttributeValueIfAllRemoved(List<ProvisioningEntity> grouperTargetEntitiesForUpdate)
-