public String getVeaText(AccountLoginDTO acctLoginDto, Invoice[] invoices) throws EtccException {
   try {
     return app.getVeaText(acctLoginDto, invoices);
   } catch (Throwable t) {
     throw new EtccException("Error running getVeaText:" + t, t);
   }
 }
  public boolean contactUs(
      long docId,
      String docType,
      String licState,
      String licPlate,
      String replyAddress,
      String topic,
      String comment,
      String dbSessionId,
      Boolean is121Comment,
      Boolean updateEmail,
      String localeStr)
      throws EtccException {
    try {

      return app.contactUs(
          docId,
          docType,
          licState,
          licPlate,
          replyAddress,
          topic,
          comment,
          dbSessionId,
          is121Comment,
          updateEmail,
          localeStr);

    } catch (Throwable t) {

      logger.error(t);
      throw new EtccException("Error running contactUs:" + t, t);
    }
  }
 public String getContactUsSuccessMessage(String locale) throws EtccException {
   try {
     return app.getContactUsSuccessMessage(locale);
   } catch (Throwable t) {
     logger.error(t);
     throw new EtccException("Error running contactUs:" + t, t);
   }
 }
 public String getSysParam(String paramName, String locale) throws EtccException {
   try {
     return app.getSysParam(paramName, locale);
   } catch (Throwable t) {
     logger.error(t);
     throw new EtccException("Error running getSysParam (paramName): " + paramName + " - " + t, t);
   }
 }
  public Long getPOSId(String url) {
    try {

      return app.getPOSId(url);

    } catch (Throwable t) {
      logger.error(t);
      return null;
    }
  }
 public String getSearchParameterSize() throws EtccException {
   CacheAdmin admin = CacheAdmin.getInstance();
   String key = AppEnum.SEARCH_PARAMETER_SIZE.getValue();
   try {
     String searchSize = (String) admin.getFromCache(key);
     if (searchSize == null) {
       searchSize = app.getSearchParameterSize();
       admin.putInCache(key, searchSize);
     }
     return searchSize;
   } catch (Throwable t) {
     admin.cancelUpdate(key);
     logger.error(t);
     throw new EtccException("Error running getSearchParameterSize: " + t, t);
   }
 }
 public String getHelpFaqUrl(String locale) throws EtccException {
   CacheAdmin admin = CacheAdmin.getInstance();
   String key = AppEnum.HELP_FAQ_URL.getValue() + locale.toUpperCase();
   String helpFaqUrl = (String) admin.getFromCache(key);
   try {
     if (helpFaqUrl == null) {
       helpFaqUrl = app.getHelpFaqUrl(locale);
       admin.putInCache(key, helpFaqUrl);
     }
     return helpFaqUrl;
   } catch (Throwable t) {
     admin.cancelUpdate(key);
     logger.error(t);
     throw new EtccException("Error running getHelpFaqUrl: " + t, t);
   }
 }
  public String getTempPlateExpirationLimit() throws EtccException {
    CacheAdmin admin = CacheAdmin.getInstance();
    String key = AppEnum.OLCSC_TEMP_PLATE_EXPIRATION_LIMIT.getValue();

    try {
      String limit = (String) admin.getFromCache(key);
      if (limit == null) {
        limit = app.getTempPlateExpirationLimit();
        admin.putInCache(key, limit);
      }
      return limit;
    } catch (Throwable t) {
      admin.cancelUpdate(key);
      logger.error(t);
      throw new EtccException("Error running getTempPlateExpirationLimit: " + t, t);
    }
  }
  public String getApplicationUrl(String locale) throws EtccException {

    CacheAdmin admin = CacheAdmin.getInstance();
    String key = AppEnum.APP_URL.getValue() + locale.toUpperCase();
    try {
      String appURL = (String) admin.getFromCache(key);
      if (appURL == null) {
        appURL = app.getApplicationUrl(locale);
        admin.putInCache(key, appURL);
      }
      return appURL;
    } catch (Throwable t) {
      admin.cancelUpdate(key);
      logger.error(t);
      throw new EtccException("Error running getApplicationUrl: " + t, t);
    }
  }
Exemplo n.º 10
0
  public String getTollRateUrl() throws EtccException {
    CacheAdmin admin = CacheAdmin.getInstance();
    String key = AppEnum.TOLLRATE_URL.getValue();

    try {
      String tollRateUrl = (String) admin.getFromCache(key);
      if (tollRateUrl == null) {
        tollRateUrl = app.getTollRateUrl();
        admin.putInCache(key, tollRateUrl);
      }
      return tollRateUrl;
    } catch (Throwable t) {
      admin.cancelUpdate(key);
      logger.error(t);
      throw new EtccException("Error running getTollRateUrl: " + t, t);
    }
  }
Exemplo n.º 11
0
  public String getCCYears() throws EtccException {

    CacheAdmin admin = CacheAdmin.getInstance();
    String key = AppEnum.OLCSC_CC_YEARS.getValue();

    try {
      String ccYears = (String) admin.getFromCache(key);
      if (ccYears == null) {
        ccYears = app.getCCYears();
        admin.putInCache(key, ccYears);
      }
      return ccYears;
    } catch (Throwable t) {
      admin.cancelUpdate(key);
      logger.error(t);
      throw new EtccException("Error running getCCYears: " + t, t);
    }
  }
Exemplo n.º 12
0
  public String getStep7MessageUrl(String locale) throws EtccException {
    CacheAdmin admin = CacheAdmin.getInstance();
    String key = AppEnum.STEP7_MESSAGE_URL.getValue() + locale.toUpperCase();
    String url = (String) admin.getFromCache(key);
    try {

      if (url == null) {

        url = app.getStep7MessageUrl(locale);
        admin.putInCache(key, url);
      }
      return url;
    } catch (Throwable t) {
      admin.cancelUpdate(key);
      logger.error(t);
      throw new EtccException("Error running getStep7MessageUrl: " + t, t);
    }
  }
Exemplo n.º 13
0
  public String getTablePageSize() throws EtccException {

    CacheAdmin admin = CacheAdmin.getInstance();
    String key = AppEnum.PAGE_SIZE.getValue();

    try {
      String pageSize = (String) admin.getFromCache(key);
      if (pageSize == null) {
        pageSize = app.getTablePageSize();
        admin.putInCache(key, pageSize);
      }
      return pageSize;
    } catch (Throwable t) {
      admin.cancelUpdate(key);
      logger.error(t);
      throw new EtccException("Error running getTablePageSize: " + t, t);
    }
  }
Exemplo n.º 14
0
  public double getNotificationFee() throws EtccException {

    CacheAdmin admin = CacheAdmin.getInstance();
    String key = AppEnum.NOTIFICATION_FEE.getValue();
    Double result = (Double) admin.getFromCache(key);
    try {

      if (result == null) {
        result = app.getNotificationFee();
        admin.putInCache(key, result);
      }
      return result;
    } catch (Throwable t) {
      admin.cancelUpdate(key);
      logger.error(t);
      throw new EtccException("Error running getNotificationFee: " + t, t);
    }
  }
Exemplo n.º 15
0
  public String getPrivacyPolicyUrl(String locale) throws EtccException {

    CacheAdmin admin = CacheAdmin.getInstance();
    String key = AppEnum.PRIVACY_POLICY_URL.getValue() + locale.toUpperCase();

    try {
      String privacyPolicyURL = (String) admin.getFromCache(key);
      if (privacyPolicyURL == null) {
        privacyPolicyURL = app.getPrivacyPolicyUrl(locale);
        admin.putInCache(key, privacyPolicyURL);
      }
      return privacyPolicyURL;
    } catch (Throwable t) {
      admin.cancelUpdate(key);
      logger.error(t);
      throw new EtccException("Error running getPrivacyPolicyUrl: " + t, t);
    }
  }
Exemplo n.º 16
0
  public String getHomePageDaysBack() throws EtccException {

    CacheAdmin admin = CacheAdmin.getInstance();
    String key = AppEnum.HOME_PAGE_DAYS_BACK.getValue();

    try {

      String value = (String) admin.getFromCache(key);
      if (value == null) {
        value = app.getHomePageDaysBack();
        admin.putInCache(key, value);
      }
      return value;
    } catch (Throwable t) {
      admin.cancelUpdate(key);
      logger.error(t);
      throw new EtccException("Error running getHomePageDaysBack: " + t, t);
    }
  }
Exemplo n.º 17
0
  public String getSupportedBrowserUrl(String locale) throws EtccException {

    CacheAdmin admin = CacheAdmin.getInstance();
    String key = AppEnum.SUPPORTED_BROWSER_URL.getValue() + locale.toUpperCase();

    try {
      String supportedBrowserURL = (String) admin.getFromCache(key);
      if (supportedBrowserURL == null) {

        supportedBrowserURL = app.getSupportedBrowserUrl(locale);
        admin.putInCache(key, supportedBrowserURL);
      }
      return supportedBrowserURL;
    } catch (Throwable t) {
      admin.cancelUpdate(key);
      logger.error(t);
      throw new EtccException("Error running getPrivacyPolicyUrl: " + t, t);
    }
  }
Exemplo n.º 18
0
  public String getViewTransDefaultRange() throws EtccException {

    CacheAdmin admin = CacheAdmin.getInstance();
    String key = AppEnum.DEFAULT_RANGE_VIEW_TRANS.getValue();
    String defaultRange = (String) admin.getFromCache(key);

    try {

      if (defaultRange == null) {
        defaultRange = app.getViewTransDefaultRange();
        admin.putInCache(key, defaultRange);
      }
      return defaultRange;
    } catch (Throwable t) {
      admin.cancelUpdate(key);
      logger.error(t);
      throw new EtccException("Error running getViewTransDefaultRange: " + t, t);
    }
  }
Exemplo n.º 19
0
  public String getReportDays() throws EtccException {

    CacheAdmin admin = CacheAdmin.getInstance();
    String key = AppEnum.REPORT_DAYS.getValue();
    String reportDays = (String) admin.getFromCache(key);

    try {
      if (reportDays == null) {

        reportDays = app.getReportDays();
        admin.putInCache(key, reportDays);
      }
      return reportDays;
    } catch (Throwable t) {
      admin.cancelUpdate(key);
      logger.error(t);
      throw new EtccException("Error running getReportDays: " + t, t);
    }
  }
Exemplo n.º 20
0
  public boolean secureCookies() throws EtccException {

    CacheAdmin admin = CacheAdmin.getInstance();
    String key = AppEnum.SECURE_COOKIES.getValue();
    String secureCookies = (String) admin.getFromCache(key);
    try {

      boolean result = false;
      if (secureCookies == null) {
        result = app.secureCookies();
        secureCookies = Util.booleanToString(result);
        admin.putInCache(key, secureCookies);
      } else {
        result = Util.stringToBoolean(secureCookies);
      }
      return result;
    } catch (Throwable t) {
      admin.cancelUpdate(key);
      logger.error(t);
      throw new EtccException("Error running secureCookies: " + t, t);
    }
  }
Exemplo n.º 21
0
  public String getHomepageContactPhone(String locale) throws EtccException {

    CacheAdmin admin = CacheAdmin.getInstance();
    String key = AppEnum.HOMEPAGE_CONTACT_PHONE_NUMBER.getValue() + locale.toUpperCase();

    try {
      String phone = (String) admin.getFromCache(key);
      if (phone == null) {
        try {
          app.getHomepageContactPhone(locale);
          admin.putInCache(key, phone);
        } catch (Exception ex) {
          admin.cancelUpdate(key);
        }
      }
      return phone;
    } catch (Throwable t) {
      admin.cancelUpdate(key);
      logger.error(t);
      throw new EtccException("Error running getContactPhoneNumber: " + t, t);
    }
  }