Class GrouperProvisioningCompare

java.lang.Object
edu.internet2.middleware.grouper.app.provisioning.GrouperProvisioningCompare
Direct Known Subclasses:
LdapSyncCompare

public class GrouperProvisioningCompare extends Object
  • Constructor Details

    • GrouperProvisioningCompare

      public GrouperProvisioningCompare()
  • Method Details

    • attributeValueForCompareEntity

      public String attributeValueForCompareEntity(String attributeName, Object attributeValue)
      convert an attribute value to lower case if case insensitive
      Parameters:
      attributeName -
      attributeValue -
      Returns:
    • attributeValueForCompareGroup

      public String attributeValueForCompareGroup(String attributeName, Object attributeValue)
      convert an attribute value to lower case if case insensitive
      Parameters:
      attributeName -
      attributeValue -
      Returns:
    • isCaseSensitiveCompare

      public boolean isCaseSensitiveCompare(String attributeName, ProvisioningUpdatable provisioningUpdatable)
    • getGroupUuidToMembershipDeleteCount

      public Map<String,Integer> getGroupUuidToMembershipDeleteCount()
    • getGroupUuidToMembershipAddCount

      public Map<String,Integer> getGroupUuidToMembershipAddCount()
    • getMembershipAddCount

      public int getMembershipAddCount()
    • getGroupUuidsToDelete

      public Set<String> getGroupUuidsToDelete()
      group uuids to delete
      Returns:
    • getMembershipDeleteCount

      public int getMembershipDeleteCount()
    • getGrouperProvisioner

      public GrouperProvisioner getGrouperProvisioner()
    • setGrouperProvisioner

      public void setGrouperProvisioner(GrouperProvisioner grouperProvisioner)
    • addProvisioningUpdatableToUpdateIfNotThere

      public void addProvisioningUpdatableToUpdateIfNotThere(List provisioningUpdatablesToUpdate, ProvisioningUpdatable grouperProvisioningUpdatable)
    • attributeChangeType

      public ProvisioningObjectChangeAction attributeChangeType(Object old, Object theNew)
    • attributeValueEquals

      public boolean attributeValueEquals(String attributeName, Object first, Object second, ProvisioningUpdatable grouperTargetUpdatable)
    • compareAttributesForDelete

      public void compareAttributesForDelete(ProvisioningUpdatable provisioningUpdatableToDelete)
    • compareAttributesForInsert

      public void compareAttributesForInsert(ProvisioningUpdatable provisioningUpdatableToInsert)
    • 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

      public Object filterDeletedMemberships(ProvisioningAttribute grouperAttribute, Object grouperValue)
      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

      public void compareTargetEntities(Collection<ProvisioningEntityWrapper> provisioningEntityWrappers)
    • compareTargetGroups

      public void compareTargetGroups(Collection<ProvisioningGroupWrapper> provisioningGroupWrappers)
    • 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)