Package com.ufis_as.ufisapp.server.dto

Examples of com.ufis_as.ufisapp.server.dto.EntUfisMsgACT


      header.setBcnum(-1);
    } else {
      header.setBcnum(1);
    }
   
    EntUfisMsgACT act = new EntUfisMsgACT();
    act.setCmd(cmd.toString());
    act.setTab(tabName);
    act.setFld(fld);
    act.setData(dat);
    act.setOdat(odat);
    act.setSel(selectStr);
    act.setId(ld);
   
    actions.add(act);
   
    notificationMsg = HpUfisJsonMsgFormatter.formDataInJson(actions, header);
    }catch(Exception e){
View Full Code Here


      fldList.add("EXCEPTION_CATEGORY");
      fldList.add("EXCEPTION_DATA");
      fldList.add("DATA_SOURCE");
     
      List<EntUfisMsgACT> listAction = new ArrayList<>();
      EntUfisMsgACT action = new EntUfisMsgACT();
      action.setCmd(cmd);
      action.setTab("MSG_EXCEPTION");
      action.setFld(fldList);
      action.setData(msgExpEntity);
      action.setId(idList);
      listAction.add(action);

      msg = HpUfisJsonMsgFormatter.formDataInJson(listAction, header);
    }
    return msg;
View Full Code Here

      List<String> idFlightList = new ArrayList<String>();
      List<String> idList = new ArrayList<>();
      header.setIdFlight(idFlightList);

      List<EntUfisMsgACT> listAction = new ArrayList<>();
      EntUfisMsgACT action = new EntUfisMsgACT();
      action.setCmd(cmd);
      action.setTab(table);
      action.setFld(fields);
      action.setData(data);
      action.setId(idList);
      listAction.add(action);

      msg = HpUfisJsonMsgFormatter.formDataInJson(listAction, header);
    }
    return msg;
View Full Code Here

      if (ufisMsgDTO != null && ufisMsgDTO.getBody() != null) {
        //EntUfisMsgHead head = ufisMsgDTO.getHead();
        EntUfisMsgBody body = ufisMsgDTO.getBody();
        // currently only action and table are required and only once
        if (body.getActs() != null && body.getActs().size() > 0) {
          EntUfisMsgACT act = body.getActs().get(0);
          //String cmd = act.getCmd();
          String tab = act.getTab();
          List<String> fld = act.getFld();
          List<Object> dat = act.getData();

          FltConnectionDTO dto = null;
          if (fld == null || dat == null || fld.size() != dat.size()) {
            LOG.warn("FLD and DAT are required and size should be matched for Alert Processing");
          } else {
View Full Code Here

      if(body.getActs() == null && body.getActs().isEmpty()) {
        LOG.warn("Message Action cannot be empty or null");
        return;
      }
     
      EntUfisMsgACT act = body.getActs().get(0);
      String tab = act.getTab();
      String cmd = act.getCmd();
      List<String> fld = act.getFld();
      List<Object> dat = act.getData();

      if (fld == null || dat == null || fld.size() != dat.size()) {
        LOG.warn("FLD and DAT are required and size should be matched for Alert Processing");
        return;
      }
View Full Code Here

                } else {
                  header.setBcnum(1);
                }
               
                // TODO may need to support multiple action
                EntUfisMsgACT act = new EntUfisMsgACT();
                act.setCmd(cmd.toString());
                act.setTab(tabName);
                act.setFld(fld);
                act.setData(dat);
                act.setOdat(odat);
                act.setSel(sb.toString());
                if (idValue != null) {
                  act.getId().add(idValue);
                }
                actions.add(act);
                LOG.debug("Before 'notificationMsg = HpUfisJsonMsgFormatter.formDataInJson(actions, header);'");
                notificationMsg = HpUfisJsonMsgFormatter.formDataInJson(actions, header);
                LOG.debug("Notification FLD size: {}", fld.size());
View Full Code Here

      header.setBcnum(-1);
    } else {
      header.setBcnum(1);
    }
   
    EntUfisMsgACT act = new EntUfisMsgACT();
    act.setCmd(cmd.toString());
    act.setTab(tabName);
    act.setFld(fld);
    act.setData(dat);
    act.setOdat(odat);
    act.setSel(selectStr);
    act.setId(ld);
   
    actions.add(act);
   
    notificationMsg = HpUfisJsonMsgFormatter.formDataInJson(actions, header);
    }catch(Exception e){
View Full Code Here

   *
   * @param inputMsgDTO
   * @param dtflStr
   */
  public void routeUfisAMQMessage(EntUfisMsgDTO ufisMsgDTO, String dtflStr) {
    EntUfisMsgACT msgBodyAct = ufisMsgDTO.getBody().getActs().get(0);
    if (UfisASCommands.RST.toString().equalsIgnoreCase(msgBodyAct.getCmd())) {
      routeToResetConxHanlder(msgBodyAct);
    } else if (ufisMsgDTO != null
        && ufisMsgDTO.getBody().getActs() != null
        && ufisMsgDTO.getBody().getActs().get(0) != null
        && ufisMsgDTO.getBody().getActs().get(0).getTab() != null
View Full Code Here

      List<EntUfisMsgACT> entUfisMsgACTList = entUfisMsgDTOReceive
          .getBody().getActs();
      Iterator<EntUfisMsgACT> entUfisMsgACTIt = entUfisMsgACTList
          .iterator();
      while (entUfisMsgACTIt.hasNext()) {
        EntUfisMsgACT entUfisMsgACT = entUfisMsgACTIt.next();
        List<String> flds = entUfisMsgACT.getFld();
        List<Object> values = entUfisMsgACT.getData();
        BigDecimal idFlight = new BigDecimal(entUfisMsgACT.getId().get(
            0));

        // aldt, alot , fltId, regn need to be set
        Date aldt = null;
        Date atot = null;
View Full Code Here

   */
  private List<EntUfisMsgACT> formatData(EntDbAtrtab entAtrtab, String cmd) {
    List<String> fldList = new ArrayList<>();
    List<Object> valueList = new ArrayList<>();
    List<EntUfisMsgACT> listAction = new ArrayList<>();
    EntUfisMsgACT action = new EntUfisMsgACT();
   
    //fields to INSERT
    fldList.add("APC3");
    fldList.add("APC4");
    fldList.add("VAFR");
    fldList.add("VATO");
   
    valueList.add(notamsIATA);
    valueList.add(notamsICAO);
    valueList.add(effectFrom);
    valueList.add(effectTil);
   
    action.setCmd(cmd);
   
    if(entAtrtab != null){
      //fields to UPDATE
      String urno = String.valueOf(entAtrtab.getUrno());
      /*fldList.add("URNO");
      valueList.add(urno);*/

      action.setSel("WHERE URNO = "+ urno);
    }
     
    //fields for all IRT/URT/DRT
    fldList.add("REST");
    fldList.add("REMA");
    fldList.add("MSID");

    valueList.add(HpEKConstants.EK_LIDO_NOTAMS);
    valueList.add(rema);
    valueList.add(notamsId);
   
    action.setTab("ATRTAB");
    action.setFld(fldList);
    action.setData(valueList);
   
    listAction.add(action);
    return listAction;
  }
View Full Code Here

TOP

Related Classes of com.ufis_as.ufisapp.server.dto.EntUfisMsgACT

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.