public String getDefaultShippingConfirmationTemplate() {
   EngineSetting defaultShippingConfirmationTemplateEngineSetting =
       engineSettingService.getDefaultShippingConfirmationTemplate();
   String defaultShippingConfirmationTemplate =
       defaultShippingConfirmationTemplateEngineSetting.getDefaultValue();
   return defaultShippingConfirmationTemplate;
 }
 private String buildWebPathSegment(final OrderCustomer order) {
   EngineSetting documentWebRootPathEngineSetting = engineSettingService.getDocumentWebRootPath();
   String documentWebRootPath = documentWebRootPathEngineSetting.getDefaultValue();
   if (documentWebRootPath != null && documentWebRootPath.endsWith("/")) {
     documentWebRootPath = documentWebRootPath.substring(0, documentWebRootPath.length() - 1);
   }
   return documentWebRootPath;
 }
Exemplo n.º 3
0
 /** @return the TTL value for an element. */
 @Override
 public int getElementTimeToLive(final WebElementType elementType) {
   String elementTimeToLiveSetting =
       engineSettingService
           .getEngineSettingByCode(EngineSettingService.WEB_CACHE_ELEMENT_TIME_TO_LIVE)
           .getDefaultValue();
   if (StringUtils.isNotEmpty(elementTimeToLiveSetting)) {
     return Integer.parseInt(elementTimeToLiveSetting);
   }
   return 3600;
 }
 private String buildFilePathSegment(final OrderCustomer order) {
   final EngineSetting documentFileRootPathEngineSetting =
       engineSettingService.getDocumentFileRootPath();
   String documentFileRootPath = documentFileRootPathEngineSetting.getDefaultValue();
   String filePathSegment = documentFileRootPath + "/" + order.getPrefixHashFolder() + "/";
   File file = new File(filePathSegment);
   if (!file.exists()) {
     file.mkdirs();
   }
   return filePathSegment;
 }
 public String getDefaultInvoiceTemplate() {
   EngineSetting defaultInvoiceTemplateEngineSetting =
       engineSettingService.getDefaultInvoiceTemplate();
   String defaultInvoiceTemplate = defaultInvoiceTemplateEngineSetting.getDefaultValue();
   return defaultInvoiceTemplate;
 }