Package com.ufis_as.ufisapp.server.dto

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


      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();
          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 {
            if (tab != null) {
              switch (tab) {
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

    String staffType = null;
    List<String> idFlights = ufisMsgDTO.getHead().getIdFlight();
    if (idFlights != null && idFlights.size() > 0) {
      // main flight
      idFlight = idFlights.get(0);
      EntUfisMsgACT act = ufisMsgDTO.getBody().getActs().get(0);
      List<String> fld = act.getFld();
      List<Object> dat = act.getData();
      if (act.getId() != null && act.getId().size() > 0) {
        id_Flt_job_assign = act.getId().get(0);
      }
      for (int i = 0; i < fld.size(); i++) {
        String field = fld.get(i).toUpperCase();
        Object value = dat.get(i);
        if (value != null) {
View Full Code Here

              actions.clear();
            }
            // set flight urno of afttab
            msgHead.getIdFlight().add(String.valueOf(result_entDbAfttab.getUrno()));
           
            EntUfisMsgACT act = new EntUfisMsgACT();
            // command: MACS ????
            act.setCmd(HpUfisAppConstants.UfisASCommands.IRT.toString());
            // fields: intflid ????
            act.getFld().add(NOTIFY_INTFLID);
            act.setTab(TAB_ID_MAPPING);
            act.getData().add(interfaceFltId);
            actions.add(act);
            String msg;
          try {
            msg = HpUfisJsonMsgFormatter.formDataInJson(actions, msgHead);
            start = System.currentTimeMillis();
View Full Code Here

 
  private List<EntUfisMsgACT> formatData(EntDbFltConnectSummary entFltConxSum, 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("ID_ARR_FLIGHT");
    fldList.add("CONX_TIME");
    fldList.add("CONX_STAT_PAX");
    fldList.add("CONX_DEC_PAX");
    fldList.add("CONX_STAT_BAG");
    fldList.add("CONX_DEC_BAG");
    fldList.add("CONX_STAT_ULD");
    fldList.add("CONX_DEC_ULD");

    valueList.add(entFltConxSum.getIdArrFlight().toString());
    valueList.add(entFltConxSum.getConxTime().toString());
    valueList.add(entFltConxSum.getConxStatPax());
    valueList.add(entFltConxSum.getConxDecPax());
    valueList.add(entFltConxSum.getConxStatBag());
    valueList.add(entFltConxSum.getConxDecBag());
    valueList.add(entFltConxSum.getConxStatUld());
    valueList.add(entFltConxSum.getConxDecUld());
   
    action.setCmd(cmd);
    //fields for all IRT/URT/DRT
   
    action.setTab("FLT_CONNECT_SUMMARY");
    action.setFld(fldList);
    action.setData(valueList);
   
    listAction.add(action);
    return listAction;
  }
View Full Code Here

      if (idFlights != null && idFlights.size() > 0) {
        // main flight
        idFlight = idFlights.get(0);
        fltConx.setIdFlight(new BigDecimal(idFlight));
       
        EntUfisMsgACT act = dto.getBody().getActs().get(0);
        String tab = act.getTab();
        List<String> fld = act.getFld();
        List<Object> dat = act.getData();
       
        String status = null;
        String bagPcs = null;
        String uldPcs = null;
        String totalPax = null;
View Full Code Here

     
    List<String> idList = new ArrayList<>();
    idList.add(ent.getId());

    List<EntUfisMsgACT> listAction = new ArrayList<>();
    EntUfisMsgACT action = new EntUfisMsgACT();
    action.setCmd(cmd);
    action.setTab("PAX_LOUNGE_MOVE");
    action.setFld(fldList);
    action.setData(dataList);
    action.setOdat(oldList);
    action.setId(idList);
    action.setSel("WHERE ID = \""+ent.getId()+"\"");
    listAction.add(action);

    String msg = HpUfisJsonMsgFormatter.formDataInJson(listAction, header);
    clsBlUfisBCTopic.sendMessage(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();
          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 {
            if (tab != null) {
              switch (tab) {
View Full Code Here

    String staffType = null;
    List<String> idFlights = ufisMsgDTO.getHead().getIdFlight();
    if (idFlights != null && idFlights.size() > 0) {
      // main flight
      idFlight = idFlights.get(0);
      EntUfisMsgACT act = ufisMsgDTO.getBody().getActs().get(0);
      List<String> fld = act.getFld();
      List<Object> dat = act.getData();
      if (act.getId() != null && act.getId().size() > 0) {
        id_Flt_job_assign = act.getId().get(0);
      }
      for (int i = 0; i < fld.size(); i++) {
        String field = fld.get(i).toUpperCase();
        Object value = dat.get(i);
        if (value != null) {
View Full Code Here

      String rawMessage = null;
      String xmlMessage = null;
      int index = 0;
     
      //One action only at the moment
      EntUfisMsgACT action = actions.get(0);
     
      for (String fld : action.getFld()) {
        if("RAW".equalsIgnoreCase(fld)) {
          rawMessage = (String) action.getData().get(index);
        }
       
        else if("XML".equalsIgnoreCase(fld)) {
          xmlMessage = (String) action.getData().get(index);
        }
       
        index++;
      }
     
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.