Class ConflictingUsersCalculator


  • @ThreadSafe
    public class ConflictingUsersCalculator
    extends Object
    Some users from the imported archive can have usernames that are already used on the server. We merged such users into the target servers. It means that the data related to such user is attached to the corresponding user on the target server. For example, if both servers have user with username 'Pavel' then all investigations that are assigned to Pavel on the source server are assigned to Pavel on the target server. It's fine, if 'Pavel' represents the same person on both servers. We can be sure about it only if emails are the same and verified. All such users are returned by getUsersWithSameVerifiedEmail(). Also there are users with the same but not-verified emails - getUsersWithSameNotVerifiedEmail(). Other users (with different emails) are returned by getUsersWithDifferentEmail().