private void prepareUserForRanking(User user){
  User updatedUser=userRepository.findOne(user.getId(),0);
  if (updatedUser.getImported() == null || !updatedUser.getImported()) {
    updatedUser.setImported(true);
    updatedUser.setPagerank(null);
    updatedUser.setLastPageRank(null);
    updatedUser.setCurrentRank(null);
    updatedUser.setPreviousRank(null);
    userRepository.save(updatedUser,0);
  }
}

private void prepareUserForRanking ( User user ) { User updatedUser = userRepository . findOne ( user . getId ( ) , 0 ) ; if ( updatedUser . getImported ( ) == null || ! updatedUser . getImported ( ) ) { updatedUser . setImported ( true ) ; updatedUser . setPagerank ( null ) ; updatedUser . setLastPageRank ( null ) ; updatedUser . setCurrentRank ( null ) ; updatedUser . setPreviousRank ( null ) ; userRepository . save ( updatedUser , 0 ) ; } }
prepares a user to be ranked for the first time after having follower data imported , resetting the previous pageranks and preparing for a new calculation and ranking .
