private void populateLdapSyncEvent(LdapSyncEventEntity event, LdapBatchDto syncInfo) {
    event.setUsersCreated(syncInfo.getUsersToBeCreated().size());
    event.setUsersUpdated(syncInfo.getUsersToBecomeLdap().size());
    event.setUsersRemoved(syncInfo.getUsersToBeRemoved().size());
    event.setUsersSkipped(syncInfo.getUsersSkipped().size());
    event.setGroupsCreated(syncInfo.getGroupsToBeCreated().size());
    event.setGroupsUpdated(syncInfo.getGroupsToBecomeLdap().size());
    event.setGroupsRemoved(syncInfo.getGroupsToBeRemoved().size());
    event.setMembershipsCreated(syncInfo.getMembershipToAdd().size());
    event.setMembershipsRemoved(syncInfo.getMembershipToRemove().size());
  }
Populate the given ldap sync event with the results of an ldap sync.

@param event     the sync event
@param syncInfo  the sync results
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/LdapSyncEventResourceProvider.java