Package org.sis.ancmessaging.json

Examples of org.sis.ancmessaging.json.CustomGenericResponse


   
    Gott gott = healthPostService.findGottById(gottId);
    gott.setGottName(gottName);
   
    boolean result = healthPostService.persistGott(gott);
    CustomGenericResponse response = new CustomGenericResponse();
   
    if (result) {
      response.setMessage("Action Successful");
      response.setSuccess(true);
    } else {
      response.setMessage("Action Failed");
      response.setSuccess(false);
    }
    return response;
  }
View Full Code Here


    healthCenter.setCenterId(centerId);
    healthCenter.setCenterName(centerName);
    healthCenter.setCenterPhone(centerPhone);
   
    boolean result = healthCenterService.persist(healthCenter);
    CustomGenericResponse response = new CustomGenericResponse();
   
    if (result) {
      response.setMessage("Action Successful");
      response.setSuccess(true);
    } else {
      response.setMessage("Action Failed");
      response.setSuccess(false);
    }
    return response;
  }
View Full Code Here

    HealthPost healthPost = healthPostService.findById(postId);
    healthPost.setPostName(postName);
    healthPost.setKebele(kebele);
   
    boolean result = healthPostService.persist(healthPost);
    CustomGenericResponse response = new CustomGenericResponse();
   
    if (result) {
      response.setMessage("Action Successful");
      response.setSuccess(true);
    } else {
      response.setMessage("Action Failed");
      response.setSuccess(false);
    }
    return response;
  }
View Full Code Here

    HealthExtensionWorker healthWorker = healthPostService.findHwById(workerId);
    healthWorker.setFullName(fullName);
    healthWorker.setPhoneNumber(phoneNumber);
    healthWorker.setSex(sex);
    boolean result = healthPostService.persistHealthWorker(healthWorker);
    CustomGenericResponse response = new CustomGenericResponse();
   
    if (result) {
      response.setMessage("Action Successful");
      response.setSuccess(true);
    } else {
      response.setMessage("Action Failed");
      response.setSuccess(false);
    }
    return response;
  }
View Full Code Here

   
    Transporter transporter = healthPostService.findTransporterById(transporterId);
    transporter.setFullName(fullName);
    transporter.setPhoneNumber(phoneNumber);
    boolean result = healthPostService.persistTransporter(transporter);
    CustomGenericResponse response = new CustomGenericResponse();
   
    if (result) {
      response.setMessage("Action Successful");
      response.setSuccess(true);
    } else {
      response.setMessage("Action Failed");
      response.setSuccess(false);
    }
    return response;
  }
View Full Code Here

TOP

Related Classes of org.sis.ancmessaging.json.CustomGenericResponse

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.