/* * (non-Javadoc) * * @see com.wiley.gr.ace.authorservices.services.service.UserLoginService# * searchUserInALM(java.lang.String) */ @Override public User searchUserInALM(final String emailId) { ALMSearchUserResponse response = almService.searchUser(emailId); User user = new User(); user.setTermsOfUseFlg(response.getUserPayload().getUserPayload().get(0).getTcFlag()); user.setStatus(response.getUserPayload().getUserPayload().get(0).getUserStatus()); user.setAlmUserId(response.getUserPayload().getUserPayload().get(0).getAlmUserId()); return user; }
/* * (non-Javadoc) * * @see com.wiley.gr.ace.authorservices.services.service.UserLoginService# * getUserDetailsFromParticipantService(java.lang.String) */ @Override public User getUserDetailsFromParticipantService(final String emailId) { User userDetails = null; Participant participantDetails = participantsInterfaceService.searchParticipantByEmailId(emailId); if (participantDetails != null) { userDetails = new User(); userDetails.setUserId(participantDetails.getParticipantId()); userDetails.setFirstName(participantDetails.getGivenName()); userDetails.setLastName(participantDetails.getFamilyName()); userDetails.setOrcidId(participantDetails.getOrcidId()); } return userDetails; }