Пример #1
0
  @Override
  public Class<?> getSenderDataInterface(String servicoBW) {
    if (ServicoBwEnum.bw1155.getServicoBW().equals(servicoBW))
      return senderTask1155.getSenderDataInterface();

    if (ServicoBwEnum.bw1185.getServicoBW().equals(servicoBW))
      return senderTask1185.getSenderDataInterface();

    if (ServicoBwEnum.bw1186.getServicoBW().equals(servicoBW))
      return senderTask1186.getSenderDataInterface();

    if (ServicoBwEnum.bw1187.getServicoBW().equals(servicoBW))
      return senderTask1187.getSenderDataInterface();

    if (ServicoBwEnum.bw1188.getServicoBW().equals(servicoBW))
      return senderTask1188.getSenderDataInterface();

    if (ServicoBwEnum.bw1189.getServicoBW().equals(servicoBW))
      return senderTask1189.getSenderDataInterface();

    if (ServicoBwEnum.bw1191.getServicoBW().equals(servicoBW))
      return senderTask1191.getSenderDataInterface();
    //
    //		if(ServicoBwEnum.bwASMS.getServicoBW().equals(servicoBW))
    //			return senderTaskASMS.getSenderDataInterface();
    //
    throw new NoSenderTaskFoundException();
  }
Пример #2
0
  public String reenviar(
      MonitoraInterfacesTO monitoraInterfacesTO, Object dataInterface, String servicoBW)
      throws BusinessException {
    if (ServicoBwEnum.bw1155.getServicoBW().equals(servicoBW))
      return senderTask1155.reenviar(monitoraInterfacesTO, dataInterface);

    if (ServicoBwEnum.bw1185.getServicoBW().equals(servicoBW))
      return senderTask1185.reenviar(monitoraInterfacesTO, dataInterface);

    if (ServicoBwEnum.bw1186.getServicoBW().equals(servicoBW))
      return senderTask1186.reenviar(monitoraInterfacesTO, dataInterface);

    if (ServicoBwEnum.bw1187.getServicoBW().equals(servicoBW))
      return senderTask1187.reenviar(monitoraInterfacesTO, dataInterface);

    if (ServicoBwEnum.bw1188.getServicoBW().equals(servicoBW))
      return senderTask1188.reenviar(monitoraInterfacesTO, dataInterface);

    if (ServicoBwEnum.bw1189.getServicoBW().equals(servicoBW))
      return senderTask1189.reenviar(monitoraInterfacesTO, dataInterface);

    if (ServicoBwEnum.bw1191.getServicoBW().equals(servicoBW))
      return senderTask1191.reenviar(monitoraInterfacesTO, dataInterface);

    //		if(ServicoBwEnum.bwASMS.getServicoBW().equals(servicoBW))
    //			return senderTaskASMS.reenviar(monitoraInterfacesTO, dataInterface);
    //
    throw new NoSenderTaskFoundException();
  }