Package com.cin.dto

Examples of com.cin.dto.UserDTO


  public GenericResponse retrieveUserDetails(GenericRequest pRequest)
      throws UserNotFoundException {

    GenericResponse aResponse = new GenericResponse();
    if(pRequest.getUser() != null) {
      UserDTO user = cinService.retrieveUserRecord(pRequest.getUser());
      aResponse.setUser(user);
    }
    else {
      EventLogger.getInstance().log(Level.SEVERE, "Request is not constructed");
    }
View Full Code Here


public GenericResponse checkExistence(GenericRequest pRequest) {

  GenericResponse aResponse = new GenericResponse();
  CensusInsuranceService aService = new CensusInsuranceService();
  UserDTO theUserDTO = null;
  try
  {
  theUserDTO = aService.checkUserExistence(pRequest);
  }
  catch(Exception e)
View Full Code Here

 
  public GenericResponse createUser(GenericRequest preq)
  {
    GenericResponse aResponse = new GenericResponse();
    CensusInsuranceService aService = new CensusInsuranceService();
    UserDTO theUserDTO = new UserDTO();
    theUserDTO = aService.createAUser(preq);
   
    if(theUserDTO != null)
    {
     
View Full Code Here

public GenericResponse updateUserDetail(GenericRequest pRequest) {

  GenericResponse aResponse = new GenericResponse();
  CensusInsuranceService aService = new CensusInsuranceService();
  UserDTO theUserDTO = null ;
  try
  {
  theUserDTO = aService.updateUserInfo(pRequest.getUser());
  }
  catch(UserNotFoundException u)
View Full Code Here

  throws RemoteException
  {

  GenericResponse aResponse = new GenericResponse();
  CensusInsuranceService aService = new CensusInsuranceService();
  UserDTO theUserDTO = null ;
  try
  {
  theUserDTO = aService.updateMiscInfo(pRequest.getUser());
  }
  catch(UserNotFoundException u)
View Full Code Here

   * (optional) policy - sample policy
   */
  public GenericResponse inviteCostomer(GenericRequest request) throws UserNotFoundException, InvalidInputValueException {
    InvitationDTO invitationDTO = new InvitationDTO();
    if(request.getAgentSsn() != null){
      UserDTO agent = new UserDTO(request.getAgentSsn());
      invitationDTO.setAgent(agent);
    }
    invitationDTO.setCustomer(request.getUser());
   
    invitationDTO = cinService.sendInvitation(invitationDTO, request.getPolicy());
View Full Code Here

  
   public GenericResponse calculateLikelinessFactor(GenericRequest pRequest) throws PersistenceException{
    
     GenericResponse aResponse = new GenericResponse();
     try {
       UserDTO user = cinService.calculateLikelinessFactor(pRequest.getUser());
       aResponse.setUser(user);
       aResponse.setResponseStatus(true);
     }
     catch(MissingInformationException pException) {
      
View Full Code Here

public class DataTranslator {

  public List<UserDTO> translateToUserDTO(Collection<?> pUserEntity) {
   
    List<UserDTO> theUserDTO = new ArrayList<UserDTO>();
    UserDTO aDTO = null;
    for(Object anUserrecord : pUserEntity) {
     
      aDTO = new UserDTO((Userrecord)anUserrecord);
      theUserDTO.add(aDTO);
     
    }
   
    return theUserDTO;
View Full Code Here

      // nobody to compensate
      log.finer("Nobody to compensate for given purchase.");
      return;
    }
   
    UserDTO agent = invite.getAgent();
    int compensation = Math.round(policy.getQuote() * 0.1f);
   
    aRemote.addPayroll(agent, compensation);
    }
View Full Code Here

  static ScoreCache cache = ScoreCache.getInstance();

  @Before
  public void setup() {
    // add some initial data
    UserDTO user1 = new UserDTO(101);
    user1.setScore(51);
    user1.setZipCode("12345");

    UserDTO user2 = new UserDTO(102);
    user2.setScore(51);
    user2.setZipCode("12345");

    UserDTO user3 = new UserDTO(103);
    user3.setScore(51);
    user3.setZipCode("54321");

    cache.addUser(user1);
    cache.addUser(user2);
    cache.addUser(user3);
  }
View Full Code Here

TOP

Related Classes of com.cin.dto.UserDTO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.