Examples of CustomGenericResponse


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

Examples of org.sis.ancmessaging.json.CustomGenericResponse

    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

Examples of org.sis.ancmessaging.json.CustomGenericResponse

    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

Examples of org.sis.ancmessaging.json.CustomGenericResponse

    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

Examples of org.sis.ancmessaging.json.CustomGenericResponse

   
    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
Copyright © 2018 www.massapi.com. 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.