diff --git a/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountPaymentServices.java b/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountPaymentServices.java index 0b23357a8f..1b671a6114 100644 --- a/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountPaymentServices.java +++ b/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountPaymentServices.java @@ -537,7 +537,7 @@ public class FinAccountPaymentServices { } String currencyUom = (String) context.get("currency"); if (UtilValidate.isEmpty(currencyUom)) { - currencyUom = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currencyUom = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } // validate the amount @@ -630,7 +630,7 @@ public class FinAccountPaymentServices { } String currencyUom = (String) context.get("currency"); if (UtilValidate.isEmpty(currencyUom)) { - currencyUom = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currencyUom = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } GenericValue finAccount; diff --git a/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountProductServices.java b/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountProductServices.java index 259da0000f..25f6347932 100644 --- a/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountProductServices.java +++ b/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountProductServices.java @@ -118,7 +118,7 @@ public class FinAccountProductServices { // make sure we have a currency if (currency == null) { - currency = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currency = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } // get the product store diff --git a/applications/accounting/src/org/ofbiz/accounting/payment/GiftCertificateServices.java b/applications/accounting/src/org/ofbiz/accounting/payment/GiftCertificateServices.java index 5ab63cc9cb..c0f0e88c90 100644 --- a/applications/accounting/src/org/ofbiz/accounting/payment/GiftCertificateServices.java +++ b/applications/accounting/src/org/ofbiz/accounting/payment/GiftCertificateServices.java @@ -72,7 +72,7 @@ public class GiftCertificateServices { } String currencyUom = (String) context.get("currency"); if (UtilValidate.isEmpty(currencyUom)) { - currencyUom = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currencyUom = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } String cardNumber = null; @@ -175,7 +175,7 @@ public class GiftCertificateServices { } String currencyUom = (String) context.get("currency"); if (UtilValidate.isEmpty(currencyUom)) { - currencyUom = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currencyUom = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } String finAccountId = null; @@ -265,7 +265,7 @@ public class GiftCertificateServices { } String currencyUom = (String) context.get("currency"); if (UtilValidate.isEmpty(currencyUom)) { - currencyUom = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currencyUom = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } // validate the amount @@ -354,7 +354,7 @@ public class GiftCertificateServices { } // TODO: get the real currency from context - //String currencyUom = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + //String currencyUom = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); // get the balance BigDecimal balance = finAccount.get("availableBalance") == null ? BigDecimal.ZERO : finAccount.getBigDecimal("availableBalance"); @@ -374,7 +374,7 @@ public class GiftCertificateServices { String currency = (String) context.get("currency"); // make sure we have a currency if (currency == null) { - currency = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currency = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } // get the authorizations @@ -473,7 +473,7 @@ public class GiftCertificateServices { // make sure we have a currency if (currency == null) { - currency = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currency = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } // obtain the order information @@ -653,7 +653,7 @@ public class GiftCertificateServices { // make sure we have a currency if (currency == null) { - currency = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currency = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } Map refundCtx = new HashMap(); @@ -720,7 +720,7 @@ public class GiftCertificateServices { // make sure we have a currency if (currency == null) { - currency = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currency = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } // get the product store @@ -969,7 +969,7 @@ public class GiftCertificateServices { // make sure we have a currency if (currency == null) { - currency = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currency = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } // get the product store diff --git a/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java b/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java index 21f9337f45..8a3ea17d74 100644 --- a/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java +++ b/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java @@ -3074,7 +3074,7 @@ public class PaymentGatewayServices { // this record is not to be stored, just passed to the service for use // get the default currency - String currency = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + String currency = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); // prepare the auth context Map authContext = new HashMap(); @@ -3239,7 +3239,7 @@ public class PaymentGatewayServices { requestContext.put("billToParty", orh.getBillToParty()); requestContext.put("billToEmail", billToEmail); requestContext.put("referenceCode", referenceCode); - String currency = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + String currency = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); requestContext.put("currency", currency); requestContext.put("creditAmount", context.get("amount")); } else { diff --git a/applications/accounting/src/org/ofbiz/accounting/thirdparty/cybersource/IcsPaymentServices.java b/applications/accounting/src/org/ofbiz/accounting/thirdparty/cybersource/IcsPaymentServices.java index e20bb4dfb8..7707993c6f 100644 --- a/applications/accounting/src/org/ofbiz/accounting/thirdparty/cybersource/IcsPaymentServices.java +++ b/applications/accounting/src/org/ofbiz/accounting/thirdparty/cybersource/IcsPaymentServices.java @@ -536,7 +536,7 @@ public class IcsPaymentServices { private static void processAuthResult(Map reply, Map result, Delegator delegator) { String decision = getDecision(reply); - String checkModeStatus = EntityUtilProperties.getPropertyValue("payment.properties", "payment.cybersource.ignoreStatus", delegator); + String checkModeStatus = EntityUtilProperties.getPropertyValue("payment", "payment.cybersource.ignoreStatus", delegator); if ("ACCEPT".equalsIgnoreCase(decision)) { result.put("authCode", reply.get("ccAuthReply_authorizationCode")); result.put("authResult", Boolean.TRUE); diff --git a/applications/accounting/src/org/ofbiz/accounting/thirdparty/valuelink/ValueLinkServices.java b/applications/accounting/src/org/ofbiz/accounting/thirdparty/valuelink/ValueLinkServices.java index 64304dda6a..c37f9ba087 100644 --- a/applications/accounting/src/org/ofbiz/accounting/thirdparty/valuelink/ValueLinkServices.java +++ b/applications/accounting/src/org/ofbiz/accounting/thirdparty/valuelink/ValueLinkServices.java @@ -822,7 +822,7 @@ public class ValueLinkServices { // make sure we have a currency if (currency == null) { - currency = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currency = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } Map redeemCtx = new HashMap(); @@ -915,7 +915,7 @@ public class ValueLinkServices { // make sure we have a currency if (currency == null) { - currency = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currency = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } Map redeemCtx = new HashMap(); @@ -980,7 +980,7 @@ public class ValueLinkServices { // make sure we have a currency if (currency == null) { - currency = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currency = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } Map refundCtx = new HashMap(); @@ -1046,7 +1046,7 @@ public class ValueLinkServices { // make sure we have a currency if (currency == null) { - currency = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currency = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } // get the product store @@ -1330,7 +1330,7 @@ public class ValueLinkServices { // make sure we have a currency if (currency == null) { - currency = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currency = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } // get the product store diff --git a/applications/content/src/org/ofbiz/content/data/DataEvents.java b/applications/content/src/org/ofbiz/content/data/DataEvents.java index 131b95fd8b..405e23448d 100644 --- a/applications/content/src/org/ofbiz/content/data/DataEvents.java +++ b/applications/content/src/org/ofbiz/content/data/DataEvents.java @@ -77,7 +77,7 @@ public class DataEvents { } // get the permission service required for streaming data; default is always the genericContentPermission - String permissionService = EntityUtilProperties.getPropertyValue("content.properties", "stream.permission.service", "genericContentPermission", delegator); + String permissionService = EntityUtilProperties.getPropertyValue("content", "stream.permission.service", "genericContentPermission", delegator); // get the content record GenericValue content; diff --git a/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java b/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java index 67b8840790..86ea23d95a 100644 --- a/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java +++ b/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java @@ -481,7 +481,7 @@ public class DataResourceWorker implements org.ofbiz.widget.content.DataResourc } public static String getDataResourceContentUploadPath(Delegator delegator, boolean absolute) { - String initialPath = EntityUtilProperties.getPropertyValue("content.properties", "content.upload.path.prefix", delegator); + String initialPath = EntityUtilProperties.getPropertyValue("content", "content.upload.path.prefix", delegator); double maxFiles = UtilProperties.getPropertyNumber("content.properties", "content.upload.max.files"); if (maxFiles < 1) { maxFiles = 250; diff --git a/applications/content/src/org/ofbiz/content/output/OutputServices.java b/applications/content/src/org/ofbiz/content/output/OutputServices.java index 47136e3b78..5bf0e23b4c 100644 --- a/applications/content/src/org/ofbiz/content/output/OutputServices.java +++ b/applications/content/src/org/ofbiz/content/output/OutputServices.java @@ -239,7 +239,7 @@ public class OutputServices { fileName += ".txt"; } if (UtilValidate.isEmpty(filePath)) { - filePath = EntityUtilProperties.getPropertyValue("content.properties", "content.output.path", "/output", delegator); + filePath = EntityUtilProperties.getPropertyValue("content", "content.output.path", "/output", delegator); } File file = new File(filePath, fileName); diff --git a/applications/content/src/org/ofbiz/content/view/SimpleContentViewHandler.java b/applications/content/src/org/ofbiz/content/view/SimpleContentViewHandler.java index eb8ba6f7ce..6cffce38dc 100644 --- a/applications/content/src/org/ofbiz/content/view/SimpleContentViewHandler.java +++ b/applications/content/src/org/ofbiz/content/view/SimpleContentViewHandler.java @@ -155,7 +155,7 @@ public class SimpleContentViewHandler extends AbstractViewHandler { isPublic = "N"; } // get the permission service required for streaming data; default is always the genericContentPermission - String permissionService = EntityUtilProperties.getPropertyValue("content.properties", "stream.permission.service", "genericContentPermission", delegator); + String permissionService = EntityUtilProperties.getPropertyValue("content", "stream.permission.service", "genericContentPermission", delegator); // not public check security if (!"Y".equalsIgnoreCase(isPublic)) { diff --git a/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java b/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java index 5c1fbd261a..a28a12db1b 100644 --- a/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java +++ b/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java @@ -409,7 +409,7 @@ public class ProductionRun { taskTime = task.getDouble("estimatedMilliSeconds").doubleValue(); } totalTaskTime = (setupTime + taskTime * quantity.doubleValue()); - + if (task.get("estimateCalcMethod") != null) { String serviceName = null; try { diff --git a/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java b/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java index d4f81bc178..deb5568707 100644 --- a/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java +++ b/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java @@ -264,7 +264,7 @@ public class VCard { } ContactIOFactory ciof = Pim.getContactIOFactory(); ContactMarshaller marshaller = ciof.createContactMarshaller(); - String saveToDirectory = EntityUtilProperties.getPropertyValue("sfa.properties", "save.outgoing.directory", "", delegator); + String saveToDirectory = EntityUtilProperties.getPropertyValue("sfa", "save.outgoing.directory", "", delegator); if (UtilValidate.isEmpty(saveToDirectory)) { saveToDirectory = System.getProperty("ofbiz.home"); } diff --git a/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java b/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java index fc6a573ab4..475fe88b83 100644 --- a/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java +++ b/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java @@ -334,7 +334,7 @@ public class OrderReturnServices { for (GenericValue returnHeader : returnHeaders) { String returnId = returnHeader.getString("returnId"); Timestamp entryDate = returnHeader.getTimestamp("entryDate"); - String daysTillCancelStr = EntityUtilProperties.getPropertyValue("order.properties", "daysTillCancelReplacementOrder", "30", delegator); + String daysTillCancelStr = EntityUtilProperties.getPropertyValue("order", "daysTillCancelReplacementOrder", "30", delegator); int daysTillCancel = 0; try { daysTillCancel = Integer.parseInt(daysTillCancelStr); diff --git a/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java b/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java index b584235058..5c60dc4d70 100644 --- a/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java +++ b/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java @@ -261,7 +261,7 @@ public class ShoppingCart implements Iterable, Serializable { this.productStoreId = productStoreId; this.webSiteId = webSiteId; this.locale = (locale != null) ? locale : Locale.getDefault(); - this.currencyUom = (currencyUom != null) ? currencyUom : EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + this.currencyUom = (currencyUom != null) ? currencyUom : EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); this.billToCustomerPartyId = billToCustomerPartyId; this.billFromVendorPartyId = billFromVendorPartyId; diff --git a/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java b/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java index fdb4a3e2d1..f94a1af078 100644 --- a/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java +++ b/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java @@ -230,7 +230,7 @@ public class ShoppingCartHelper { // get order item attributes Map orderItemAttributes = new HashMap(); - String orderItemAttributePrefix = EntityUtilProperties.getPropertyValue("order.properties", "order.item.attr.prefix", delegator); + String orderItemAttributePrefix = EntityUtilProperties.getPropertyValue("order", "order.item.attr.prefix", delegator); for (Entry entry : context.entrySet()) { if (entry.getKey().toString().contains(orderItemAttributePrefix) && UtilValidate.isNotEmpty(entry.getValue())) { orderItemAttributes.put(entry.getKey().replaceAll(orderItemAttributePrefix, ""), entry.getValue().toString()); diff --git a/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java b/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java index 38859791ff..636aaaa35e 100644 --- a/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java +++ b/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java @@ -1186,7 +1186,7 @@ public class ShoppingCartItem implements java.io.Serializable { } } } - if ("true".equals(EntityUtilProperties.getPropertyValue("catalog.properties", "convertProductPriceCurrency", delegator))){ + if ("true".equals(EntityUtilProperties.getPropertyValue("catalog", "convertProductPriceCurrency", delegator))){ priceContext.put("currencyUomIdTo", cart.getCurrency()); } else { priceContext.put("currencyUomId", cart.getCurrency()); diff --git a/applications/order/src/org/ofbiz/order/shoppingcart/shipping/ShippingEvents.java b/applications/order/src/org/ofbiz/order/shoppingcart/shipping/ShippingEvents.java index bfad1addee..549949013f 100644 --- a/applications/order/src/org/ofbiz/order/shoppingcart/shipping/ShippingEvents.java +++ b/applications/order/src/org/ofbiz/order/shoppingcart/shipping/ShippingEvents.java @@ -302,10 +302,10 @@ public class ShippingEvents { // invoke the external shipping estimate service BigDecimal externalShipAmt = null; if (serviceName != null) { - String doEstimates = EntityUtilProperties.getPropertyValue("shipment.properties", "shipment.doratecheck", "true", delegator); + String doEstimates = EntityUtilProperties.getPropertyValue("shipment", "shipment.doratecheck", "true", delegator); //If all estimates are not turned off, check for the individual one if ("true".equals(doEstimates)) { - String dothisEstimate = EntityUtilProperties.getPropertyValue("shipment.properties", "shipment.doratecheck." + serviceName, "true", delegator); + String dothisEstimate = EntityUtilProperties.getPropertyValue("shipment", "shipment.doratecheck." + serviceName, "true", delegator); if ("false".equals(dothisEstimate)) serviceName = null; } else { diff --git a/applications/order/src/org/ofbiz/order/shoppinglist/ShoppingListServices.java b/applications/order/src/org/ofbiz/order/shoppinglist/ShoppingListServices.java index f3e4651192..ec41378241 100644 --- a/applications/order/src/org/ofbiz/order/shoppinglist/ShoppingListServices.java +++ b/applications/order/src/org/ofbiz/order/shoppinglist/ShoppingListServices.java @@ -588,7 +588,7 @@ public class ShoppingListServices { } catch (GenericEntityException e) { Debug.logError(e.getMessage(), module); } - String maxDaysStr = EntityUtilProperties.getPropertyValue("order.properties", "autosave.max.age", "30", delegator); + String maxDaysStr = EntityUtilProperties.getPropertyValue("order", "autosave.max.age", "30", delegator); int maxDays = 0; try { maxDays = Integer.parseInt(maxDaysStr); diff --git a/applications/order/src/org/ofbiz/order/thirdparty/zipsales/ZipSalesServices.java b/applications/order/src/org/ofbiz/order/thirdparty/zipsales/ZipSalesServices.java index 887af372b2..989a17e579 100644 --- a/applications/order/src/org/ofbiz/order/thirdparty/zipsales/ZipSalesServices.java +++ b/applications/order/src/org/ofbiz/order/thirdparty/zipsales/ZipSalesServices.java @@ -229,7 +229,7 @@ public class ZipSalesServices { List> itemAdjustments = new LinkedList>(); // check for a valid state/province geo - String validStates = EntityUtilProperties.getPropertyValue("zipsales.properties", "zipsales.valid.states", delegator); + String validStates = EntityUtilProperties.getPropertyValue("zipsales", "zipsales.valid.states", delegator); if (UtilValidate.isNotEmpty(validStates)) { List stateSplit = StringUtil.split(validStates, "|"); if (!stateSplit.contains(stateProvince)) { diff --git a/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java b/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java index d0d3031934..30f340425c 100644 --- a/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java +++ b/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java @@ -716,8 +716,8 @@ public class CommunicationEventServices { if (Debug.verboseOn()) Debug.logVerbose("Processing Incoming Email " + aboutThisEmail, module); // ignore the message when the spam status = yes - String spamHeaderName = EntityUtilProperties.getPropertyValue("general.properties", "mail.spam.name", "N", delegator); - String configHeaderValue = EntityUtilProperties.getPropertyValue("general.properties", "mail.spam.value", delegator); + String spamHeaderName = EntityUtilProperties.getPropertyValue("general", "mail.spam.name", "N", delegator); + String configHeaderValue = EntityUtilProperties.getPropertyValue("general", "mail.spam.value", delegator); // only execute when config file has been set && header variable found if (!spamHeaderName.equals("N") && wrapper.getHeader(spamHeaderName) != null && wrapper.getHeader(spamHeaderName).length > 0) { String msgHeaderValue = wrapper.getHeader(spamHeaderName)[0]; @@ -1123,7 +1123,7 @@ public class CommunicationEventServices { Map result = null; Delegator delegator = dispatcher.getDelegator(); List> tempResults = new LinkedList>(); - String caseInsensitiveEmail = EntityUtilProperties.getPropertyValue("general.properties", "mail.address.caseInsensitive", "N", delegator); + String caseInsensitiveEmail = EntityUtilProperties.getPropertyValue("general", "mail.address.caseInsensitive", "N", delegator); if (addresses != null) { for (Address addr: addresses) { diff --git a/applications/party/src/org/ofbiz/party/contact/ContactMechWorker.java b/applications/party/src/org/ofbiz/party/contact/ContactMechWorker.java index b2de8d601a..62e569909e 100644 --- a/applications/party/src/org/ofbiz/party/contact/ContactMechWorker.java +++ b/applications/party/src/org/ofbiz/party/contact/ContactMechWorker.java @@ -820,7 +820,7 @@ public class ContactMechWorker { String addr2 = postalAddress.getString("address2"); // get the matching string from general.properties - String matcher = EntityUtilProperties.getPropertyValue("general.properties", "usps.address.match", postalAddress.getDelegator()); + String matcher = EntityUtilProperties.getPropertyValue("general", "usps.address.match", postalAddress.getDelegator()); if (UtilValidate.isNotEmpty(matcher)) { if (addr1 != null && addr1.toLowerCase().matches(matcher)) { return true; diff --git a/applications/product/src/org/ofbiz/product/price/PriceServices.java b/applications/product/src/org/ofbiz/product/price/PriceServices.java index 3c26563cc2..c6d8c204d5 100644 --- a/applications/product/src/org/ofbiz/product/price/PriceServices.java +++ b/applications/product/src/org/ofbiz/product/price/PriceServices.java @@ -525,7 +525,7 @@ public class PriceServices { } // Convert the value to the price currency, if required - if ("true".equals(EntityUtilProperties.getPropertyValue("catalog.properties", "convertProductPriceCurrency", delegator))) { + if ("true".equals(EntityUtilProperties.getPropertyValue("catalog", "convertProductPriceCurrency", delegator))) { if (UtilValidate.isNotEmpty(currencyDefaultUomId) && UtilValidate.isNotEmpty(currencyUomIdTo) && !currencyDefaultUomId.equals(currencyUomIdTo)) { if (UtilValidate.isNotEmpty(result)) { Map convertPriceMap = new HashMap(); diff --git a/applications/product/src/org/ofbiz/product/product/ProductServices.java b/applications/product/src/org/ofbiz/product/product/ProductServices.java index bca615f4ec..d14ef309ca 100644 --- a/applications/product/src/org/ofbiz/product/product/ProductServices.java +++ b/applications/product/src/org/ofbiz/product/product/ProductServices.java @@ -900,7 +900,7 @@ public class ProductServices { public static Map updateProductIfAvailableFromShipment(DispatchContext dctx, Map context) { Delegator delegator = dctx.getDelegator(); - if ("Y".equals(EntityUtilProperties.getPropertyValue("catalog.properties", "reactivate.product.from.receipt", "N", delegator))) { + if ("Y".equals(EntityUtilProperties.getPropertyValue("catalog", "reactivate.product.from.receipt", "N", delegator))) { LocalDispatcher dispatcher = dctx.getDispatcher(); GenericValue userLogin = (GenericValue) context.get("userLogin"); String inventoryItemId = (String) context.get("inventoryItemId"); diff --git a/applications/product/src/org/ofbiz/shipment/shipment/ShipmentWorker.java b/applications/product/src/org/ofbiz/shipment/shipment/ShipmentWorker.java index bc58ada5c9..268f2ff33d 100644 --- a/applications/product/src/org/ofbiz/shipment/shipment/ShipmentWorker.java +++ b/applications/product/src/org/ofbiz/shipment/shipment/ShipmentWorker.java @@ -163,7 +163,7 @@ public class ShipmentWorker { LocalDispatcher dispatcher = dctx.getDispatcher(); Delegator delegator = dctx.getDelegator(); BigDecimal totalWeight = BigDecimal.ZERO; - String defaultWeightUomId = EntityUtilProperties.getPropertyValue("shipment.properties", "shipment.default.weight.uom", delegator); + String defaultWeightUomId = EntityUtilProperties.getPropertyValue("shipment", "shipment.default.weight.uom", delegator); for (Map.Entry entry: packageMap.entrySet()) { String productId = entry.getKey(); diff --git a/applications/product/src/org/ofbiz/shipment/thirdparty/fedex/FedexServices.java b/applications/product/src/org/ofbiz/shipment/thirdparty/fedex/FedexServices.java index a27258d28c..9962099e89 100644 --- a/applications/product/src/org/ofbiz/shipment/thirdparty/fedex/FedexServices.java +++ b/applications/product/src/org/ofbiz/shipment/thirdparty/fedex/FedexServices.java @@ -524,7 +524,7 @@ public class FedexServices { } else if (UtilValidate.isNotEmpty(shipmentRouteSegment.getString("currencyUomId"))) { currencyCode = shipment.getString("currencyUomId"); } else { - currencyCode = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currencyCode = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } // Get and validate origin postal address diff --git a/applications/product/src/org/ofbiz/shipment/thirdparty/ups/UpsServices.java b/applications/product/src/org/ofbiz/shipment/thirdparty/ups/UpsServices.java index 8381d6958c..3e8fccee70 100644 --- a/applications/product/src/org/ofbiz/shipment/thirdparty/ups/UpsServices.java +++ b/applications/product/src/org/ofbiz/shipment/thirdparty/ups/UpsServices.java @@ -305,7 +305,7 @@ public class UpsServices { } else if (UtilValidate.isNotEmpty(shipment.getString("currencyUomId"))) { currencyCode = shipment.getString("currencyUomId"); } else { - currencyCode = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + currencyCode = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } // Okay, start putting the XML together... diff --git a/applications/product/src/org/ofbiz/shipment/weightPackage/WeightPackageServices.java b/applications/product/src/org/ofbiz/shipment/weightPackage/WeightPackageServices.java index bed7aef4bb..424693bb48 100644 --- a/applications/product/src/org/ofbiz/shipment/weightPackage/WeightPackageServices.java +++ b/applications/product/src/org/ofbiz/shipment/weightPackage/WeightPackageServices.java @@ -151,7 +151,7 @@ public class WeightPackageServices { Map response = new HashMap(); try { - String getActualShippingQuoteFromUps = EntityUtilProperties.getPropertyValue("shipment.properties", "shipment.ups.shipping", "N", delegator); + String getActualShippingQuoteFromUps = EntityUtilProperties.getPropertyValue("shipment", "shipment.ups.shipping", "N", delegator); String result = weightPackageSession.complete(orderId, locale, getActualShippingQuoteFromUps); if ("showWarningForm".equals(result)) { response.put("showWarningForm", true); @@ -176,7 +176,7 @@ public class WeightPackageServices { Map response = new HashMap(); try { - String getActualShippingQuoteFromUps = EntityUtilProperties.getPropertyValue("shipment.properties", "shipment.ups.shipping", "N", delegator); + String getActualShippingQuoteFromUps = EntityUtilProperties.getPropertyValue("shipment", "shipment.ups.shipping", "N", delegator); if (weightPackageSession.completeShipment(orderId, getActualShippingQuoteFromUps)) { response.put("shipmentId", shipmentId); } else { @@ -195,7 +195,7 @@ public class WeightPackageServices { String orderId = (String) context.get("orderId"); - String getActualShippingQuoteFromUps = EntityUtilProperties.getPropertyValue("shipment.properties", "shipment.ups.shipping", "N", delegator); + String getActualShippingQuoteFromUps = EntityUtilProperties.getPropertyValue("shipment", "shipment.ups.shipping", "N", delegator); try { weightPackageSession.savePackagesInfo(orderId, getActualShippingQuoteFromUps); } catch (GeneralException e) { diff --git a/applications/securityext/src/org/ofbiz/securityext/login/LoginEvents.java b/applications/securityext/src/org/ofbiz/securityext/login/LoginEvents.java index d19fa8a087..0be1fd9399 100644 --- a/applications/securityext/src/org/ofbiz/securityext/login/LoginEvents.java +++ b/applications/securityext/src/org/ofbiz/securityext/login/LoginEvents.java @@ -78,10 +78,10 @@ public class LoginEvents { String username = request.getParameter("USERNAME"); String password = request.getParameter("PASSWORD"); - if ((username != null) && ("true".equalsIgnoreCase(EntityUtilProperties.getPropertyValue("security.properties", "username.lowercase", delegator)))) { + if ((username != null) && ("true".equalsIgnoreCase(EntityUtilProperties.getPropertyValue("security", "username.lowercase", delegator)))) { username = username.toLowerCase(); } - if ((password != null) && ("true".equalsIgnoreCase(EntityUtilProperties.getPropertyValue("security.properties", "password.lowercase", delegator)))) { + if ((password != null) && ("true".equalsIgnoreCase(EntityUtilProperties.getPropertyValue("security", "password.lowercase", delegator)))) { password = password.toLowerCase(); } @@ -127,7 +127,7 @@ public class LoginEvents { String userLoginId = request.getParameter("USERNAME"); String errMsg = null; - if ((userLoginId != null) && ("true".equals(EntityUtilProperties.getPropertyValue("security.properties", "username.lowercase", delegator)))) { + if ((userLoginId != null) && ("true".equals(EntityUtilProperties.getPropertyValue("security", "username.lowercase", delegator)))) { userLoginId = userLoginId.toLowerCase(); } @@ -183,11 +183,11 @@ public class LoginEvents { String errMsg = null; - boolean useEncryption = "true".equals(EntityUtilProperties.getPropertyValue("security.properties", "password.encrypt", delegator)); + boolean useEncryption = "true".equals(EntityUtilProperties.getPropertyValue("security", "password.encrypt", delegator)); String userLoginId = request.getParameter("USERNAME"); - if ((userLoginId != null) && ("true".equals(EntityUtilProperties.getPropertyValue("security.properties", "username.lowercase", delegator)))) { + if ((userLoginId != null) && ("true".equals(EntityUtilProperties.getPropertyValue("security", "username.lowercase", delegator)))) { userLoginId = userLoginId.toLowerCase(); } @@ -212,12 +212,12 @@ public class LoginEvents { if (useEncryption) { // password encrypted, can't send, generate new password and email to user passwordToSend = RandomStringUtils.randomAlphanumeric(Integer.parseInt(EntityUtilProperties.getPropertyValue("security", "password.length.min", "5", delegator))); - if ("true".equals(EntityUtilProperties.getPropertyValue("security.properties", "password.lowercase", delegator))){ + if ("true".equals(EntityUtilProperties.getPropertyValue("security", "password.lowercase", delegator))){ passwordToSend=passwordToSend.toLowerCase(); } supposedUserLogin.set("currentPassword", HashCrypt.cryptUTF8(LoginServices.getHashType(), null, passwordToSend)); supposedUserLogin.set("passwordHint", "Auto-Generated Password"); - if ("true".equals(EntityUtilProperties.getPropertyValue("security.properties", "password.email_password.require_password_change", delegator))){ + if ("true".equals(EntityUtilProperties.getPropertyValue("security", "password.email_password.require_password_change", delegator))){ supposedUserLogin.set("requirePasswordChange", "Y"); } } else { @@ -302,7 +302,7 @@ public class LoginEvents { serviceContext.put("sendFrom", emailTemplateSetting.get("fromAddress")); } else { serviceContext.put("subject", UtilProperties.getMessage(resource, "loginservices.password_reminder_subject", UtilMisc.toMap("userLoginId", userLoginId), UtilHttp.getLocale(request))); - serviceContext.put("sendFrom", EntityUtilProperties.getPropertyValue("general.properties", "defaultFromEmailAddress", delegator)); + serviceContext.put("sendFrom", EntityUtilProperties.getPropertyValue("general", "defaultFromEmailAddress", delegator)); } } serviceContext.put("sendTo", emails.toString()); @@ -386,7 +386,7 @@ public class LoginEvents { public static void setUsername(HttpServletRequest request, HttpServletResponse response) { HttpSession session = request.getSession(); Delegator delegator = (Delegator) request.getAttribute("delegator"); - String domain = EntityUtilProperties.getPropertyValue("url.properties", "cookie.domain", delegator); + String domain = EntityUtilProperties.getPropertyValue("url", "cookie.domain", delegator); // first try to get the username from the cookie synchronized (session) { if (UtilValidate.isEmpty(getUsername(request))) { diff --git a/applications/securityext/src/org/ofbiz/securityext/thirdparty/truition/TruitionCoReg.java b/applications/securityext/src/org/ofbiz/securityext/thirdparty/truition/TruitionCoReg.java index fa07fd9415..76c1aec75c 100644 --- a/applications/securityext/src/org/ofbiz/securityext/thirdparty/truition/TruitionCoReg.java +++ b/applications/securityext/src/org/ofbiz/securityext/thirdparty/truition/TruitionCoReg.java @@ -60,9 +60,9 @@ public class TruitionCoReg { } // locate the domain/cookie name setting - String domainName = EntityUtilProperties.getPropertyValue("truition.properties", "truition.domain.name", delegator); - String cookiePath = EntityUtilProperties.getPropertyValue("truition.properties", "truition.cookie.path", delegator); - String cookieName = EntityUtilProperties.getPropertyValue("truition.properties", "truition.cookie.name", delegator); + String domainName = EntityUtilProperties.getPropertyValue("truition", "truition.domain.name", delegator); + String cookiePath = EntityUtilProperties.getPropertyValue("truition", "truition.cookie.path", delegator); + String cookieName = EntityUtilProperties.getPropertyValue("truition", "truition.cookie.name", delegator); int time = (int) UtilProperties.getPropertyNumber("truition.properties", "truition.cookie.time"); if (UtilValidate.isEmpty(domainName)) { Debug.logError("Truition is not properly configured; domainName missing; see truition.properties", module); @@ -106,8 +106,8 @@ public class TruitionCoReg { public static String truitionLogoff(HttpServletRequest req, HttpServletResponse resp) { Delegator delegator = (Delegator) req.getAttribute("delegator"); // locate the domain/cookie name setting - String domainName = EntityUtilProperties.getPropertyValue("truition.properties", "truition.domain.name", delegator); - String cookieName = EntityUtilProperties.getPropertyValue("truition.properties", "truition.cookie.name", delegator); + String domainName = EntityUtilProperties.getPropertyValue("truition", "truition.domain.name", delegator); + String cookieName = EntityUtilProperties.getPropertyValue("truition", "truition.cookie.name", delegator); if (UtilValidate.isEmpty(domainName)) { Debug.logError("Truition is not properly configured; domainName missing; see truition.properties", module); return "error"; @@ -134,7 +134,7 @@ public class TruitionCoReg { public static String truitionRedirect(HttpServletRequest req, HttpServletResponse resp) { Delegator delegator = (Delegator) req.getAttribute("delegator"); // redirect URL form field - String redirectUrlName = EntityUtilProperties.getPropertyValue("truition.properties", "truition.redirect.urlName", delegator); + String redirectUrlName = EntityUtilProperties.getPropertyValue("truition", "truition.redirect.urlName", delegator); String redirectUrl = req.getParameter(redirectUrlName); Debug.logInfo("Redirect to : " + redirectUrl, module); if (truitionEnabled() && redirectUrl != null) { @@ -154,8 +154,8 @@ public class TruitionCoReg { public static boolean makeTruitionCookie(GenericValue userLogin, StringBuffer cookieName, StringBuffer cookieValue) { Delegator delegator = userLogin.getDelegator(); - String domainName = EntityUtilProperties.getPropertyValue("truition.properties", "truition.domain.name", delegator); - String siteId = EntityUtilProperties.getPropertyValue("truition.properties", "truition.siteId", delegator); + String domainName = EntityUtilProperties.getPropertyValue("truition", "truition.domain.name", delegator); + String siteId = EntityUtilProperties.getPropertyValue("truition", "truition.siteId", delegator); if (UtilValidate.isEmpty(domainName)) { Debug.logError("Truition is not properly configured; domainName missing; see truition.properties!", module); diff --git a/framework/common/src/org/ofbiz/common/CommonEvents.java b/framework/common/src/org/ofbiz/common/CommonEvents.java index 639d63e3c9..ea29aa5ec5 100644 --- a/framework/common/src/org/ofbiz/common/CommonEvents.java +++ b/framework/common/src/org/ofbiz/common/CommonEvents.java @@ -395,7 +395,7 @@ public class CommonEvents { try { Delegator delegator = (Delegator) request.getAttribute("delegator"); final String captchaSizeConfigName = StringUtils.defaultIfEmpty(request.getParameter("captchaSize"), "default"); - final String captchaSizeConfig = EntityUtilProperties.getPropertyValue("captcha.properties", "captcha." + captchaSizeConfigName, delegator); + final String captchaSizeConfig = EntityUtilProperties.getPropertyValue("captcha", "captcha." + captchaSizeConfigName, delegator); final String[] captchaSizeConfigs = captchaSizeConfig.split("\\|"); final String captchaCodeId = StringUtils.defaultIfEmpty(request.getParameter("captchaCodeId"), ""); // this is used to uniquely identify in the user session the attribute where the captcha code for the last captcha for the form is stored @@ -403,7 +403,7 @@ public class CommonEvents { final int height = Integer.parseInt(captchaSizeConfigs[1]); final int width = Integer.parseInt(captchaSizeConfigs[2]); final int charsToPrint = UtilProperties.getPropertyAsInteger("captcha.properties", "captcha.code_length", 6); - final char[] availableChars = EntityUtilProperties.getPropertyValue("captcha.properties", "captcha.characters", delegator).toCharArray(); + final char[] availableChars = EntityUtilProperties.getPropertyValue("captcha", "captcha.characters", delegator).toCharArray(); //It is possible to pass the font size, image width and height with the request as well Color backgroundColor = Color.gray; diff --git a/framework/common/src/org/ofbiz/common/CommonWorkers.java b/framework/common/src/org/ofbiz/common/CommonWorkers.java index a875ddbd09..112bbf3bc8 100644 --- a/framework/common/src/org/ofbiz/common/CommonWorkers.java +++ b/framework/common/src/org/ofbiz/common/CommonWorkers.java @@ -43,7 +43,7 @@ public class CommonWorkers { public static List getCountryList(Delegator delegator) { List geoList = new LinkedList(); - String defaultCountry = EntityUtilProperties.getPropertyValue("general.properties", "country.geo.id.default", delegator); + String defaultCountry = EntityUtilProperties.getPropertyValue("general", "country.geo.id.default", delegator); GenericValue defaultGeo = null; if (UtilValidate.isNotEmpty(defaultCountry)) { try { @@ -54,7 +54,7 @@ public class CommonWorkers { } List exprs = UtilMisc.toList(EntityCondition.makeCondition("geoTypeId", EntityOperator.EQUALS, "COUNTRY")); - List countriesAvailable = StringUtil.split(EntityUtilProperties.getPropertyValue("general.properties", "countries.geo.id.available", delegator), ","); + List countriesAvailable = StringUtil.split(EntityUtilProperties.getPropertyValue("general", "countries.geo.id.available", delegator), ","); if (UtilValidate.isNotEmpty(countriesAvailable)) { // only available countries (we don't verify the list of geoId in countries.geo.id.available) exprs.add(EntityCondition.makeCondition("geoId", EntityOperator.IN, countriesAvailable)); @@ -108,7 +108,7 @@ public class CommonWorkers { public static List getAssociatedStateList(Delegator delegator, String country, String listOrderBy) { if (UtilValidate.isEmpty(country)) { // Load the system default country - country = EntityUtilProperties.getPropertyValue("general.properties", "country.geo.id.default", delegator); + country = EntityUtilProperties.getPropertyValue("general", "country.geo.id.default", delegator); } if (UtilValidate.isEmpty(listOrderBy)) { diff --git a/framework/common/src/org/ofbiz/common/email/EmailServices.java b/framework/common/src/org/ofbiz/common/email/EmailServices.java index 5a56a2f370..1207ccdb59 100644 --- a/framework/common/src/org/ofbiz/common/email/EmailServices.java +++ b/framework/common/src/org/ofbiz/common/email/EmailServices.java @@ -135,7 +135,7 @@ public class EmailServices { String sendBcc = (String) context.get("sendBcc"); // check to see if we should redirect all mail for testing - String redirectAddress = EntityUtilProperties.getPropertyValue("general.properties", "mail.notifications.redirectTo", delegator); + String redirectAddress = EntityUtilProperties.getPropertyValue("general", "mail.notifications.redirectTo", delegator); if (UtilValidate.isNotEmpty(redirectAddress)) { String originalRecipients = " [To: " + sendTo + ", Cc: " + sendCc + ", Bcc: " + sendBcc + "]"; subject += originalRecipients; @@ -167,34 +167,34 @@ public class EmailServices { if (sendType == null || sendType.equals("mail.smtp.host")) { sendType = "mail.smtp.host"; if (UtilValidate.isEmpty(sendVia)) { - sendVia = EntityUtilProperties.getPropertyValue("general.properties", "mail.smtp.relay.host", "localhost", delegator); + sendVia = EntityUtilProperties.getPropertyValue("general", "mail.smtp.relay.host", "localhost", delegator); } if (UtilValidate.isEmpty(authUser)) { - authUser = EntityUtilProperties.getPropertyValue("general.properties", "mail.smtp.auth.user", delegator); + authUser = EntityUtilProperties.getPropertyValue("general", "mail.smtp.auth.user", delegator); } if (UtilValidate.isEmpty(authPass)) { - authPass = EntityUtilProperties.getPropertyValue("general.properties", "mail.smtp.auth.password", delegator); + authPass = EntityUtilProperties.getPropertyValue("general", "mail.smtp.auth.password", delegator); } if (UtilValidate.isNotEmpty(authUser)) { useSmtpAuth = true; } if (UtilValidate.isEmpty(port)) { - port = EntityUtilProperties.getPropertyValue("general.properties", "mail.smtp.port", delegator); + port = EntityUtilProperties.getPropertyValue("general", "mail.smtp.port", delegator); } if (UtilValidate.isEmpty(socketFactoryPort)) { - socketFactoryPort = EntityUtilProperties.getPropertyValue("general.properties", "mail.smtp.socketFactory.port", delegator); + socketFactoryPort = EntityUtilProperties.getPropertyValue("general", "mail.smtp.socketFactory.port", delegator); } if (UtilValidate.isEmpty(socketFactoryClass)) { - socketFactoryClass = EntityUtilProperties.getPropertyValue("general.properties", "mail.smtp.socketFactory.class", delegator); + socketFactoryClass = EntityUtilProperties.getPropertyValue("general", "mail.smtp.socketFactory.class", delegator); } if (UtilValidate.isEmpty(socketFactoryFallback)) { - socketFactoryFallback = EntityUtilProperties.getPropertyValue("general.properties", "mail.smtp.socketFactory.fallback", "false", delegator); + socketFactoryFallback = EntityUtilProperties.getPropertyValue("general", "mail.smtp.socketFactory.fallback", "false", delegator); } if (sendPartial == null) { - sendPartial = EntityUtilProperties.propertyValueEqualsIgnoreCase("general.properties", "mail.smtp.sendpartial", "true", delegator) ? true : false; + sendPartial = EntityUtilProperties.propertyValueEqualsIgnoreCase("general", "mail.smtp.sendpartial", "true", delegator) ? true : false; } if (isStartTLSEnabled == null) { - isStartTLSEnabled = EntityUtilProperties.propertyValueEqualsIgnoreCase("general.properties", "mail.smtp.starttls.enable", "true", delegator); + isStartTLSEnabled = EntityUtilProperties.propertyValueEqualsIgnoreCase("general", "mail.smtp.starttls.enable", "true", delegator); } } else if (sendVia == null) { return ServiceUtil.returnError(UtilProperties.getMessage(resource, "CommonEmailSendMissingParameterSendVia", locale)); @@ -238,7 +238,7 @@ public class EmailServices { } session = Session.getInstance(props); - boolean debug = EntityUtilProperties.propertyValueEqualsIgnoreCase("general.properties", "mail.debug.on", "Y", delegator); + boolean debug = EntityUtilProperties.propertyValueEqualsIgnoreCase("general", "mail.debug.on", "Y", delegator); session.setDebug(debug); mail = new MimeMessage(session); @@ -309,7 +309,7 @@ public class EmailServices { } // check to see if sending mail is enabled - String mailEnabled = EntityUtilProperties.getPropertyValue("general.properties", "mail.notifications.enabled", "N", delegator); + String mailEnabled = EntityUtilProperties.getPropertyValue("general", "mail.notifications.enabled", "N", delegator); if (!"Y".equalsIgnoreCase(mailEnabled)) { // no error; just return as if we already processed Debug.logImportant("Mail notifications disabled in general.properties; mail with subject [" + subject + "] not sent to addressee [" + sendTo + "]", module); diff --git a/framework/common/src/org/ofbiz/common/login/LdapAuthenticationServices.java b/framework/common/src/org/ofbiz/common/login/LdapAuthenticationServices.java index 25668ff0e9..6896352279 100644 --- a/framework/common/src/org/ofbiz/common/login/LdapAuthenticationServices.java +++ b/framework/common/src/org/ofbiz/common/login/LdapAuthenticationServices.java @@ -95,7 +95,7 @@ public class LdapAuthenticationServices { } // Synchronize user's OFBiz password with user's LDAP password if (userLogin != null) { - boolean useEncryption = "true".equals(EntityUtilProperties.getPropertyValue("security.properties", "password.encrypt", delegator)); + boolean useEncryption = "true".equals(EntityUtilProperties.getPropertyValue("security", "password.encrypt", delegator)); String currentPassword = userLogin.getString("currentPassword"); boolean samePassword; if (useEncryption) { diff --git a/framework/common/src/org/ofbiz/common/login/LoginServices.java b/framework/common/src/org/ofbiz/common/login/LoginServices.java index 6ba9b6d424..37fb5284e2 100644 --- a/framework/common/src/org/ofbiz/common/login/LoginServices.java +++ b/framework/common/src/org/ofbiz/common/login/LoginServices.java @@ -92,7 +92,7 @@ public class LoginServices { } Map result = new LinkedHashMap(); - boolean useEncryption = "true".equals(EntityUtilProperties.getPropertyValue("security.properties", "password.encrypt", delegator)); + boolean useEncryption = "true".equals(EntityUtilProperties.getPropertyValue("security", "password.encrypt", delegator)); // if isServiceAuth is not specified, default to not a service auth boolean isServiceAuth = context.get("isServiceAuth") != null && ((Boolean) context.get("isServiceAuth")).booleanValue(); @@ -112,10 +112,10 @@ public class LoginServices { errMsg = UtilProperties.getMessage(resource,"loginservices.password_missing", locale); } else { - if ("true".equalsIgnoreCase(EntityUtilProperties.getPropertyValue("security.properties", "username.lowercase", delegator))) { + if ("true".equalsIgnoreCase(EntityUtilProperties.getPropertyValue("security", "username.lowercase", delegator))) { username = username.toLowerCase(); } - if ("true".equalsIgnoreCase(EntityUtilProperties.getPropertyValue("security.properties", "password.lowercase", delegator))) { + if ("true".equalsIgnoreCase(EntityUtilProperties.getPropertyValue("security", "password.lowercase", delegator))) { password = password.toLowerCase(); } @@ -155,7 +155,7 @@ public class LoginServices { } if (userLogin != null) { - String ldmStr = EntityUtilProperties.getPropertyValue("security.properties", "login.disable.minutes", delegator); + String ldmStr = EntityUtilProperties.getPropertyValue("security", "login.disable.minutes", delegator); long loginDisableMinutes = 30; try { @@ -265,7 +265,7 @@ public class LoginServices { userLogin.set("successiveFailedLogins", currentFailedLogins); // if failed logins over amount in properties file, disable account - String mflStr = EntityUtilProperties.getPropertyValue("security.properties", "max.failed.logins", delegator); + String mflStr = EntityUtilProperties.getPropertyValue("security", "max.failed.logins", delegator); long maxFailedLogins = 3; try { maxFailedLogins = Long.parseLong(mflStr); @@ -302,11 +302,11 @@ public class LoginServices { userLogin.store(); } - if ("true".equals(EntityUtilProperties.getPropertyValue("security.properties", "store.login.history", delegator))) { + if ("true".equals(EntityUtilProperties.getPropertyValue("security", "store.login.history", delegator))) { boolean createHistory = true; // only save info on service auth if option set to true to do so - if (isServiceAuth && !"true".equals(EntityUtilProperties.getPropertyValue("security.properties", "store.login.history.on.service.auth", delegator))) { + if (isServiceAuth && !"true".equals(EntityUtilProperties.getPropertyValue("security", "store.login.history.on.service.auth", delegator))) { createHistory = false; } @@ -320,7 +320,7 @@ public class LoginServices { } // ONLY save the password if it was incorrect - if ("N".equals(successfulLogin) && !"false".equals(EntityUtilProperties.getPropertyValue("security.properties", "store.login.history.incorrect.password", delegator))) { + if ("N".equals(successfulLogin) && !"false".equals(EntityUtilProperties.getPropertyValue("security", "store.login.history.incorrect.password", delegator))) { ulhCreateMap.put("passwordUsed", password); } @@ -425,7 +425,7 @@ public class LoginServices { public static void createUserLoginPasswordHistory(Delegator delegator,String userLoginId, String currentPassword) throws GenericEntityException{ int passwordChangeHistoryLimit = 0; try { - passwordChangeHistoryLimit = Integer.parseInt(EntityUtilProperties.getPropertyValue("security.properties", "password.change.history.limit", "0", delegator)); + passwordChangeHistoryLimit = Integer.parseInt(EntityUtilProperties.getPropertyValue("security", "password.change.history.limit", "0", delegator)); } catch (NumberFormatException nfe) { //No valid value is found so don't bother to save any password history passwordChangeHistoryLimit = 0; @@ -460,7 +460,7 @@ public class LoginServices { // save this password in history GenericValue userLoginPwdHistToCreate = delegator.makeValue("UserLoginPasswordHistory", UtilMisc.toMap("userLoginId", userLoginId,"fromDate", nowTimestamp)); - boolean useEncryption = "true".equals(EntityUtilProperties.getPropertyValue("security.properties", "password.encrypt", delegator)); + boolean useEncryption = "true".equals(EntityUtilProperties.getPropertyValue("security", "password.encrypt", delegator)); userLoginPwdHistToCreate.set("currentPassword", useEncryption ? HashCrypt.cryptUTF8(getHashType(), null, currentPassword) : currentPassword); userLoginPwdHistToCreate.create(); } @@ -478,7 +478,7 @@ public class LoginServices { List errorMessageList = new LinkedList(); Locale locale = (Locale) context.get("locale"); - boolean useEncryption = "true".equals(EntityUtilProperties.getPropertyValue("security.properties", "password.encrypt", delegator)); + boolean useEncryption = "true".equals(EntityUtilProperties.getPropertyValue("security", "password.encrypt", delegator)); String userLoginId = (String) context.get("userLoginId"); String partyId = (String) context.get("partyId"); @@ -581,7 +581,7 @@ public class LoginServices { AuthHelper.loadAuthenticators(ctx.getDispatcher()); } - boolean useEncryption = "true".equals(EntityUtilProperties.getPropertyValue("security.properties", "password.encrypt", delegator)); + boolean useEncryption = "true".equals(EntityUtilProperties.getPropertyValue("security", "password.encrypt", delegator)); boolean adminUser = false; String userLoginId = (String) context.get("userLoginId"); @@ -648,7 +648,7 @@ public class LoginServices { } } - if ("true".equals(EntityUtilProperties.getPropertyValue("security.properties", "password.lowercase", delegator))) { + if ("true".equals(EntityUtilProperties.getPropertyValue("security", "password.lowercase", delegator))) { currentPassword = currentPassword.toLowerCase(); newPassword = newPassword.toLowerCase(); newPasswordVerify = newPasswordVerify.toLowerCase(); @@ -713,7 +713,7 @@ public class LoginServices { String userLoginId = (String) context.get("userLoginId"); String errMsg = null; - if ((userLoginId != null) && ("true".equals(EntityUtilProperties.getPropertyValue("security.properties", "username.lowercase", delegator)))) { + if ((userLoginId != null) && ("true".equals(EntityUtilProperties.getPropertyValue("security", "username.lowercase", delegator)))) { userLoginId = userLoginId.toLowerCase(); } @@ -890,7 +890,7 @@ public class LoginServices { public static void checkNewPassword(GenericValue userLogin, String currentPassword, String newPassword, String newPasswordVerify, String passwordHint, List errorMessageList, boolean ignoreCurrentPassword, Locale locale) { Delegator delegator = userLogin.getDelegator(); - boolean useEncryption = "true".equals(EntityUtilProperties.getPropertyValue("security.properties", "password.encrypt", delegator)); + boolean useEncryption = "true".equals(EntityUtilProperties.getPropertyValue("security", "password.encrypt", delegator)); String errMsg = null; @@ -919,7 +919,7 @@ public class LoginServices { int passwordChangeHistoryLimit = 0; try { - passwordChangeHistoryLimit = Integer.parseInt(EntityUtilProperties.getPropertyValue("security.properties", "password.change.history.limit", "0", delegator)); + passwordChangeHistoryLimit = Integer.parseInt(EntityUtilProperties.getPropertyValue("security", "password.change.history.limit", "0", delegator)); } catch (NumberFormatException nfe) { //No valid value is found so don't bother to save any password history passwordChangeHistoryLimit = 0; @@ -952,15 +952,15 @@ public class LoginServices { int minPasswordLength = 0; try { - minPasswordLength = Integer.parseInt(EntityUtilProperties.getPropertyValue("security.properties", "password.length.min", "0", delegator)); + minPasswordLength = Integer.parseInt(EntityUtilProperties.getPropertyValue("security", "password.length.min", "0", delegator)); } catch (NumberFormatException nfe) { minPasswordLength = 0; } if (newPassword != null) { // Matching password with pattern - String passwordPattern = EntityUtilProperties.getPropertyValue("security.properties", "security.login.password.pattern", "^.*(?=.{5,}).*$", delegator); - boolean usePasswordPattern = UtilProperties.getPropertyAsBoolean("security.properties", "security.login.password.pattern.enable", true); + String passwordPattern = EntityUtilProperties.getPropertyValue("security", "security.login.password.pattern", "^.*(?=.{5,}).*$", delegator); + boolean usePasswordPattern = UtilProperties.getPropertyAsBoolean("security", "security.login.password.pattern.enable", true); if (usePasswordPattern) { Pattern pattern = Pattern.compile(passwordPattern); Matcher matcher = pattern.matcher(newPassword); @@ -968,7 +968,7 @@ public class LoginServices { if (!matched) { // This is a mix to handle the OOTB pattern which is only a fixed length Map messageMap = UtilMisc.toMap("minPasswordLength", Integer.toString(minPasswordLength)); - String passwordPatternMessage = EntityUtilProperties.getPropertyValue("security.properties", + String passwordPatternMessage = EntityUtilProperties.getPropertyValue("security", "security.login.password.pattern.description", "loginservices.password_must_be_least_characters_long", delegator); errMsg = UtilProperties.getMessage(resource, passwordPatternMessage, messageMap, locale); messageMap = UtilMisc.toMap("passwordPatternMessage", errMsg); @@ -994,7 +994,7 @@ public class LoginServices { } public static String getHashType() { - String hashType = UtilProperties.getPropertyValue("security.properties", "password.encrypt.hash.type"); + String hashType = UtilProperties.getPropertyValue("security", "password.encrypt.hash.type"); if (UtilValidate.isEmpty(hashType)) { Debug.logWarning("Password encrypt hash type is not specified in security.properties, use SHA", module); @@ -1013,7 +1013,7 @@ public class LoginServices { passwordMatches = oldPassword.equals(currentPassword); } } - if (!passwordMatches && "true".equals(UtilProperties.getPropertyValue("security.properties", "password.accept.encrypted.and.plain"))) { + if (!passwordMatches && "true".equals(UtilProperties.getPropertyValue("security", "password.accept.encrypted.and.plain"))) { passwordMatches = currentPassword.equals(oldPassword); } return passwordMatches; diff --git a/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java b/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java index 794eff2757..1315b0711e 100644 --- a/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java +++ b/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java @@ -545,7 +545,7 @@ public class LoginWorker { if (userLogin != null && "Y".equals(userLogin.getString("requirePasswordChange"))) { return "requirePasswordChange"; } - String autoChangePassword = EntityUtilProperties.getPropertyValue("security.properties", "user.auto.change.password.enable", "false", delegator); + String autoChangePassword = EntityUtilProperties.getPropertyValue("security", "user.auto.change.password.enable", "false", delegator); if ("true".equalsIgnoreCase(autoChangePassword)) { if ("requirePasswordChange".equals(autoChangePassword(request, response))) { return "requirePasswordChange"; @@ -735,7 +735,7 @@ public class LoginWorker { Delegator delegator = (Delegator) request.getAttribute("delegator"); HttpSession session = request.getSession(); GenericValue userLogin = (GenericValue) session.getAttribute("userLogin"); - String domain = EntityUtilProperties.getPropertyValue("url.properties", "cookie.domain", delegator); + String domain = EntityUtilProperties.getPropertyValue("url", "cookie.domain", delegator); if (userLogin != null) { Cookie autoLoginCookie = new Cookie(getAutoLoginCookieName(request), userLogin.getString("userLoginId")); autoLoginCookie.setMaxAge(60 * 60 * 24 * 365); @@ -870,7 +870,7 @@ public class LoginWorker { // preprocessor method to login a user from a HTTP request header (configured in security.properties) public static String checkRequestHeaderLogin(HttpServletRequest request, HttpServletResponse response) { Delegator delegator = (Delegator) request.getAttribute("delegator"); - String httpHeader = EntityUtilProperties.getPropertyValue("security.properties", "security.login.http.header", null, delegator); + String httpHeader = EntityUtilProperties.getPropertyValue("security", "security.login.http.header", null, delegator); // make sure the header field is set in security.properties; if not, then this is disabled and just return if (UtilValidate.isNotEmpty(httpHeader)) { @@ -918,7 +918,7 @@ public class LoginWorker { // preprocessor method to login a user w/ client certificate see security.properties to configure the pattern of CN public static String check509CertLogin(HttpServletRequest request, HttpServletResponse response) { Delegator delegator = (Delegator) request.getAttribute("delegator"); - boolean doCheck = "true".equalsIgnoreCase(EntityUtilProperties.getPropertyValue("security.properties", "security.login.cert.allow", "true", delegator)); + boolean doCheck = "true".equalsIgnoreCase(EntityUtilProperties.getPropertyValue("security", "security.login.cert.allow", "true", delegator)); if (doCheck) { HttpSession session = request.getSession(); GenericValue currentUserLogin = (GenericValue) session.getAttribute("userLogin"); @@ -929,7 +929,7 @@ public class LoginWorker { } } - String cnPattern = EntityUtilProperties.getPropertyValue("security.properties", "security.login.cert.pattern", "(.*)", delegator); + String cnPattern = EntityUtilProperties.getPropertyValue("security", "security.login.cert.pattern", "(.*)", delegator); Pattern pattern = Pattern.compile(cnPattern); //Debug.logInfo("CN Pattern: " + cnPattern, module); @@ -1067,7 +1067,7 @@ public class LoginWorker { } public static boolean isFlaggedLoggedOut(GenericValue userLogin, Delegator delegator) { - if ("true".equalsIgnoreCase(EntityUtilProperties.getPropertyValue("security.properties", "login.disable.global.logout", delegator))) { + if ("true".equalsIgnoreCase(EntityUtilProperties.getPropertyValue("security", "login.disable.global.logout", delegator))) { return false; } if (userLogin == null || userLogin.get("userLoginId") == null) { @@ -1175,8 +1175,8 @@ public class LoginWorker { Delegator delegator = (Delegator) request.getAttribute("delegator"); String userName = request.getParameter("USERNAME"); Timestamp now = UtilDateTime.nowTimestamp(); - Integer reqToChangePwdInDays = Integer.valueOf(EntityUtilProperties.getPropertyValue("security.properties", "user.change.password.days", "0", delegator)); - Integer passwordNoticePeriod = Integer.valueOf(EntityUtilProperties.getPropertyValue("security.properties", "user.change.password.notification.days", "0", delegator)); + Integer reqToChangePwdInDays = Integer.valueOf(EntityUtilProperties.getPropertyValue("security", "user.change.password.days", "0", delegator)); + Integer passwordNoticePeriod = Integer.valueOf(EntityUtilProperties.getPropertyValue("security", "user.change.password.notification.days", "0", delegator)); if (reqToChangePwdInDays > 0) { List passwordHistories = null; try { diff --git a/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java b/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java index 0307838a1f..cbf30e28cf 100644 --- a/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java +++ b/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java @@ -279,7 +279,7 @@ public class RequestHandler { } } if (enableHttps == null) { - enableHttps = EntityUtilProperties.propertyValueEqualsIgnoreCase("url.properties", "port.https.enabled", "Y", delegator); + enableHttps = EntityUtilProperties.propertyValueEqualsIgnoreCase("url", "port.https.enabled", "Y", delegator); } if (Boolean.FALSE.equals(enableHttps)) { @@ -396,7 +396,7 @@ public class RequestHandler { if (protectView != null) { overrideViewUri = protectView; } else { - overrideViewUri = EntityUtilProperties.getPropertyValue("security.properties", "default.error.response.view", delegator); + overrideViewUri = EntityUtilProperties.getPropertyValue("security", "default.error.response.view", delegator); overrideViewUri = overrideViewUri.replace("view:", ""); if ("none:".equals(overrideViewUri)) { interruptRequest = true; @@ -1025,11 +1025,11 @@ public class RequestHandler { @Deprecated public static String getDefaultServerRootUrl(HttpServletRequest request, boolean secure) { Delegator delegator = (Delegator) request.getAttribute("delegator"); - String httpsPort = EntityUtilProperties.getPropertyValue("url.properties", "port.https", "443", delegator); - String httpsServer = EntityUtilProperties.getPropertyValue("url.properties", "force.https.host", delegator); - String httpPort = EntityUtilProperties.getPropertyValue("url.properties", "port.http", "80", delegator); - String httpServer = EntityUtilProperties.getPropertyValue("url.properties", "force.http.host", delegator); - boolean useHttps = EntityUtilProperties.propertyValueEqualsIgnoreCase("url.properties", "port.https.enabled", "Y", delegator); + String httpsPort = EntityUtilProperties.getPropertyValue("url", "port.https", "443", delegator); + String httpsServer = EntityUtilProperties.getPropertyValue("url", "force.https.host", delegator); + String httpPort = EntityUtilProperties.getPropertyValue("url", "port.http", "80", delegator); + String httpServer = EntityUtilProperties.getPropertyValue("url", "force.http.host", delegator); + boolean useHttps = EntityUtilProperties.propertyValueEqualsIgnoreCase("url", "port.https.enabled", "Y", delegator); if (Start.getInstance().getConfig().portOffset != 0) { Integer httpPortValue = Integer.valueOf(httpPort); diff --git a/framework/webapp/src/org/ofbiz/webapp/event/ServiceEventHandler.java b/framework/webapp/src/org/ofbiz/webapp/event/ServiceEventHandler.java index fb37cbec67..a596b52bc0 100644 --- a/framework/webapp/src/org/ofbiz/webapp/event/ServiceEventHandler.java +++ b/framework/webapp/src/org/ofbiz/webapp/event/ServiceEventHandler.java @@ -132,7 +132,7 @@ public class ServiceEventHandler implements EventHandler { Map multiPartMap = new HashMap(); if (isMultiPart) { // get the http upload configuration - String maxSizeStr = EntityUtilProperties.getPropertyValue("general.properties", "http.upload.max.size", "-1", dctx.getDelegator()); + String maxSizeStr = EntityUtilProperties.getPropertyValue("general", "http.upload.max.size", "-1", dctx.getDelegator()); long maxUploadSize = -1; try { maxUploadSize = Long.parseLong(maxSizeStr); @@ -142,7 +142,7 @@ public class ServiceEventHandler implements EventHandler { } // get the http size threshold configuration - files bigger than this will be // temporarly stored on disk during upload - String sizeThresholdStr = EntityUtilProperties.getPropertyValue("general.properties", "http.upload.max.sizethreshold", "10240", dctx.getDelegator()); + String sizeThresholdStr = EntityUtilProperties.getPropertyValue("general", "http.upload.max.sizethreshold", "10240", dctx.getDelegator()); int sizeThreshold = 10240; // 10K try { sizeThreshold = Integer.parseInt(sizeThresholdStr); @@ -151,7 +151,7 @@ public class ServiceEventHandler implements EventHandler { sizeThreshold = -1; } // directory used to temporarily store files that are larger than the configured size threshold - String tmpUploadRepository = EntityUtilProperties.getPropertyValue("general.properties", "http.upload.tmprepository", "runtime/tmp", dctx.getDelegator()); + String tmpUploadRepository = EntityUtilProperties.getPropertyValue("general", "http.upload.tmprepository", "runtime/tmp", dctx.getDelegator()); String encoding = request.getCharacterEncoding(); // check for multipart content types which may have uploaded items @@ -410,7 +410,7 @@ public class ServiceEventHandler implements EventHandler { Debug.logError("=============== " + errMsg + "; In session [" + session.getId() + "]; Note that this can be changed using the service.http.parameters.require.encrypted property in the url.properties file", module); // the default here is true, so anything but N/n is true - boolean requireEncryptedServiceWebParameters = !EntityUtilProperties.propertyValueEqualsIgnoreCase("url.properties", "service.http.parameters.require.encrypted", "N", delegator); + boolean requireEncryptedServiceWebParameters = !EntityUtilProperties.propertyValueEqualsIgnoreCase("url", "service.http.parameters.require.encrypted", "N", delegator); // NOTE: this forces service call event parameters to be in the body and not in the URL! can be issues with existing links, like Delete links or whatever, and those need to be changed to forms! if (requireEncryptedServiceWebParameters) { diff --git a/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizCurrencyTransform.java b/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizCurrencyTransform.java index c14b773a79..4fc35446fb 100644 --- a/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizCurrencyTransform.java +++ b/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizCurrencyTransform.java @@ -137,9 +137,9 @@ public class OfbizCurrencyTransform implements TemplateTransformModel { Delegator delegator = (Delegator) request.getAttribute("delegator"); // Get rounding from SystemProperty if (UtilValidate.isNotEmpty(delegator)) { - scaleEnabled = EntityUtilProperties.getPropertyValue("general.properties", "currency.scale.enabled", "N", delegator); + scaleEnabled = EntityUtilProperties.getPropertyValue("general", "currency.scale.enabled", "N", delegator); if (UtilValidate.isEmpty(roundingNumber)) { - String roundingString = EntityUtilProperties.getPropertyValue("general.properties", "currency.rounding.default", "10", delegator); + String roundingString = EntityUtilProperties.getPropertyValue("general", "currency.rounding.default", "10", delegator); if (UtilValidate.isInteger(roundingString)) roundingNumber = Integer.parseInt(roundingString); } } diff --git a/framework/webapp/src/org/ofbiz/webapp/website/WebSiteProperties.java b/framework/webapp/src/org/ofbiz/webapp/website/WebSiteProperties.java index c641ab70c0..82fad0f7cf 100644 --- a/framework/webapp/src/org/ofbiz/webapp/website/WebSiteProperties.java +++ b/framework/webapp/src/org/ofbiz/webapp/website/WebSiteProperties.java @@ -152,11 +152,11 @@ public final class WebSiteProperties { private final boolean enableHttps; private WebSiteProperties(Delegator delegator) { - this.httpPort = EntityUtilProperties.getPropertyValue("url.properties", "port.http", delegator); - this.httpHost = EntityUtilProperties.getPropertyValue("url.properties", "force.http.host", delegator); - this.httpsPort = EntityUtilProperties.getPropertyValue("url.properties", "port.https", delegator); - this.httpsHost = EntityUtilProperties.getPropertyValue("url.properties", "force.https.host", delegator); - this.enableHttps = EntityUtilProperties.propertyValueEqualsIgnoreCase("url.properties", "port.https.enabled", "Y", delegator); + this.httpPort = EntityUtilProperties.getPropertyValue("url", "port.http", delegator); + this.httpHost = EntityUtilProperties.getPropertyValue("url", "force.http.host", delegator); + this.httpsPort = EntityUtilProperties.getPropertyValue("url", "port.https", delegator); + this.httpsHost = EntityUtilProperties.getPropertyValue("url", "force.https.host", delegator); + this.enableHttps = EntityUtilProperties.propertyValueEqualsIgnoreCase("url", "port.https.enabled", "Y", delegator); } private WebSiteProperties(String httpPort, String httpHost, String httpsPort, String httpsHost, boolean enableHttps) { diff --git a/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java b/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java index fdf2d1d062..6ce8fa1c5e 100755 --- a/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java +++ b/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java @@ -246,19 +246,19 @@ public class ProductsExportToEbay { if (listingFormat.equals("FixedPriceItem")) { Element startPriceElem = UtilXml.addChildElementValue(itemElem, "StartPrice", startPrice, itemDocument); if (UtilValidate.isEmpty(startPriceCurrencyUomId)) { - startPriceCurrencyUomId = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + startPriceCurrencyUomId = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } startPriceElem.setAttribute("currencyID", startPriceCurrencyUomId); }else{ Element startPriceElem = UtilXml.addChildElementValue(itemElem, "StartPrice", startPrice, itemDocument); if (UtilValidate.isEmpty(startPriceCurrencyUomId)) { - startPriceCurrencyUomId = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + startPriceCurrencyUomId = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } startPriceElem.setAttribute("currencyID", startPriceCurrencyUomId); if (UtilValidate.isNotEmpty(buyItNowPrice)) { Element buyNowPriceElem = UtilXml.addChildElementValue(itemElem, "BuyItNowPrice", buyItNowPrice, itemDocument); if (UtilValidate.isEmpty(buyItNowCurrencyUomId)) { - buyItNowCurrencyUomId = EntityUtilProperties.getPropertyValue("general.properties", "currency.uom.id.default", "USD", delegator); + buyItNowCurrencyUomId = EntityUtilProperties.getPropertyValue("general", "currency.uom.id.default", "USD", delegator); } buyNowPriceElem.setAttribute("currencyID", buyItNowCurrencyUomId); } diff --git a/specialpurpose/googlecheckout/src/org/ofbiz/googlecheckout/GoogleRequestServices.java b/specialpurpose/googlecheckout/src/org/ofbiz/googlecheckout/GoogleRequestServices.java index 44c1a6dfa7..24e0df2e58 100644 --- a/specialpurpose/googlecheckout/src/org/ofbiz/googlecheckout/GoogleRequestServices.java +++ b/specialpurpose/googlecheckout/src/org/ofbiz/googlecheckout/GoogleRequestServices.java @@ -114,8 +114,8 @@ public class GoogleRequestServices { } // flow support URLs - String contShoppingUrl = EntityUtilProperties.getPropertyValue("googleCheckout.properties", "continueShoppingUrl", delegator); - String editCartUrl = EntityUtilProperties.getPropertyValue("googleCheckout.properties", "editCartUrl", delegator); + String contShoppingUrl = EntityUtilProperties.getPropertyValue("googleCheckout", "continueShoppingUrl", delegator); + String editCartUrl = EntityUtilProperties.getPropertyValue("googleCheckout", "editCartUrl", delegator); req.setContinueShoppingUrl(contShoppingUrl); req.setEditCartUrl(editCartUrl); @@ -640,13 +640,13 @@ public class GoogleRequestServices { } // base URLs - String productionRoot = EntityUtilProperties.getPropertyValue("google-checkout.properties", "production.root.url", delegator); - String sandboxRoot = EntityUtilProperties.getPropertyValue("google-checkout.properties", "sandbox.root.url", delegator); + String productionRoot = EntityUtilProperties.getPropertyValue("google-checkout", "production.root.url", delegator); + String sandboxRoot = EntityUtilProperties.getPropertyValue("google-checkout", "sandbox.root.url", delegator); // command strings - String merchantCheckoutCommand = EntityUtilProperties.getPropertyValue("google-checkout.properties", "merchant.checkout.command", "merchantCheckout", delegator); - String checkoutCommand = EntityUtilProperties.getPropertyValue("google-checkout.properties", "checkout.command", "checkout", delegator); - String requestCommand = EntityUtilProperties.getPropertyValue("google-checkout.properties", "request.command", "request", delegator); + String merchantCheckoutCommand = EntityUtilProperties.getPropertyValue("google-checkout", "merchant.checkout.command", "merchantCheckout", delegator); + String checkoutCommand = EntityUtilProperties.getPropertyValue("google-checkout", "checkout.command", "checkout", delegator); + String requestCommand = EntityUtilProperties.getPropertyValue("google-checkout", "request.command", "request", delegator); String environment = null; String checkoutUrl = ""; diff --git a/specialpurpose/ldap/src/org/ofbiz/ldap/commons/AbstractOFBizAuthenticationHandler.java b/specialpurpose/ldap/src/org/ofbiz/ldap/commons/AbstractOFBizAuthenticationHandler.java index b0fa2fb384..b0a194e105 100644 --- a/specialpurpose/ldap/src/org/ofbiz/ldap/commons/AbstractOFBizAuthenticationHandler.java +++ b/specialpurpose/ldap/src/org/ofbiz/ldap/commons/AbstractOFBizAuthenticationHandler.java @@ -98,7 +98,7 @@ public abstract class AbstractOFBizAuthenticationHandler implements InterfaceOFB String visitId = VisitHandler.getVisitId(session); LocalDispatcher dispatcher = (LocalDispatcher) request.getAttribute("dispatcher"); Delegator delegator = dispatcher.getDelegator(); - boolean useEncryption = "true".equals(EntityUtilProperties.getPropertyValue("security.properties", "password.encrypt", delegator)); + boolean useEncryption = "true".equals(EntityUtilProperties.getPropertyValue("security", "password.encrypt", delegator)); GenericValue userLoginToCreate = delegator.makeValue("UserLogin", UtilMisc.toMap("userLoginId", username)); userLoginToCreate.set("passwordHint", ""); userLoginToCreate.set("enabled", "Y"); diff --git a/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java b/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java index 5dfdbbb6a5..140c9cc802 100644 --- a/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java +++ b/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java @@ -68,7 +68,7 @@ public class OagisInventoryServices { Locale locale = (Locale) context.get("locale"); List> errorMapList = new LinkedList>(); List> inventoryMapList = new LinkedList>(); - final String syncInventoryFacilityId = EntityUtilProperties.getPropertyValue("oagis.properties", "Oagis.Warehouse.SyncInventoryFacilityId", delegator); + final String syncInventoryFacilityId = EntityUtilProperties.getPropertyValue("oagis", "Oagis.Warehouse.SyncInventoryFacilityId", delegator); GenericValue userLogin = null; try { userLogin = EntityQuery.use(delegator).from("UserLogin").where("userLoginId", "system").queryOne(); @@ -219,7 +219,7 @@ public class OagisInventoryServices { // prepare information to send mail Map sendMap = new HashMap(); - String sendToEmail = EntityUtilProperties.getPropertyValue("oagis.properties", "oagis.notification.email.sendTo", delegator); + String sendToEmail = EntityUtilProperties.getPropertyValue("oagis", "oagis.notification.email.sendTo", delegator); /* DEJ20070802 changed to get email address from properties file, should be way easier to manage // get facility email address @@ -253,7 +253,7 @@ public class OagisInventoryServices { */ if (UtilValidate.isNotEmpty(sendToEmail)) { - String productStoreId = EntityUtilProperties.getPropertyValue("oagis.properties", "Oagis.Warehouse.SyncInventoryProductStoreId", delegator); + String productStoreId = EntityUtilProperties.getPropertyValue("oagis", "Oagis.Warehouse.SyncInventoryProductStoreId", delegator); GenericValue productStoreEmail = EntityQuery.use(delegator).from("ProductStoreEmailSetting").where("productStoreId", productStoreId, "emailType", "PRDS_OAGIS_CONFIRM").queryOne(); if (productStoreEmail != null) { String bodyScreenLocation = productStoreEmail.getString("bodyScreenLocation"); @@ -451,7 +451,7 @@ public class OagisInventoryServices { Element dataAreaElement = UtilXml.firstChildElement(receivePoElement, "ns:DATAAREA"); Element acknowledgeDeliveryElement = UtilXml.firstChildElement(dataAreaElement, "ns:ACKNOWLEDGE_DELIVERY"); - String facilityId = EntityUtilProperties.getPropertyValue("oagis.properties", "Oagis.Warehouse.PoReceiptFacilityId", delegator); + String facilityId = EntityUtilProperties.getPropertyValue("oagis", "Oagis.Warehouse.PoReceiptFacilityId", delegator); String orderId = null; // get RECEIPTLN elements from message List acknowledgeElementList = UtilXml.childElementList(acknowledgeDeliveryElement, "ns:RECEIPTLN"); @@ -503,7 +503,7 @@ public class OagisInventoryServices { // Case : New record entry when PO not exists in the Database orderHeader = delegator.makeValue("OrderHeader", UtilMisc.toMap("orderId", orderId, "orderTypeId",orderTypeId , "orderDate", timestampItemReceived, "statusId", "ORDER_CREATED", "entryDate", UtilDateTime.nowTimestamp(), - "productStoreId", EntityUtilProperties.getPropertyValue("oagis.properties", "Oagis.Warehouse.SyncInventoryProductStoreId","9001", delegator))); + "productStoreId", EntityUtilProperties.getPropertyValue("oagis", "Oagis.Warehouse.SyncInventoryProductStoreId","9001", delegator))); toStore.add(orderHeader); GenericValue orderItem = delegator.makeValue("OrderItem", UtilMisc.toMap("orderId", orderId, "orderItemSeqId", UtilFormatOut.formatPaddedNumber(1L, 5), @@ -686,8 +686,8 @@ public class OagisInventoryServices { Element firstDocRefElement = UtilXml.firstChildElement(firstReceiptlnElement, "os:DOCUMNTREF"); String firstReturnId = UtilXml.childElementValue(firstDocRefElement, "of:DOCUMENTID"); - String facilityId = EntityUtilProperties.getPropertyValue("oagis.properties", "Oagis.Warehouse.PoReceiptFacilityId", delegator); - String locationSeqId = EntityUtilProperties.getPropertyValue("oagis.properties", "Oagis.Warehouse.ReturnReceiptLocationSeqId", delegator); + String facilityId = EntityUtilProperties.getPropertyValue("oagis", "Oagis.Warehouse.PoReceiptFacilityId", delegator); + String locationSeqId = EntityUtilProperties.getPropertyValue("oagis", "Oagis.Warehouse.ReturnReceiptLocationSeqId", delegator); Timestamp timestamp = UtilDateTime.nowTimestamp(); Map comiCtx = new HashMap(); @@ -1196,8 +1196,8 @@ public class OagisInventoryServices { Element dataAreaElement = UtilXml.firstChildElement(receiveStatusElement, "ns:DATAAREA"); Element acknowledgeDeliveryElement = UtilXml.firstChildElement(dataAreaElement, "ns:ACKNOWLEDGE_DELIVERY"); - String facilityId = EntityUtilProperties.getPropertyValue("oagis.properties", "Oagis.Warehouse.PoReceiptFacilityId", delegator); - String locationSeqId = EntityUtilProperties.getPropertyValue("oagis.properties", "Oagis.Warehouse.ReturnReceiptLocationSeqId", delegator); + String facilityId = EntityUtilProperties.getPropertyValue("oagis", "Oagis.Warehouse.PoReceiptFacilityId", delegator); + String locationSeqId = EntityUtilProperties.getPropertyValue("oagis", "Oagis.Warehouse.ReturnReceiptLocationSeqId", delegator); Timestamp timestamp = UtilDateTime.nowTimestamp(); Map comiCtx = new HashMap(); diff --git a/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java b/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java index 7de1dc6f6b..f5cc75e3f8 100644 --- a/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java +++ b/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java @@ -81,13 +81,13 @@ public class OagisServices { public static final String resource = "OagisUiLabels"; - public static final boolean debugSaveXmlOut = "true".equals(UtilProperties.getPropertyValue("oagis.properties", "Oagis.Debug.Save.Xml.Out")); - public static final boolean debugSaveXmlIn = "true".equals(UtilProperties.getPropertyValue("oagis.properties", "Oagis.Debug.Save.Xml.In")); + public static final boolean debugSaveXmlOut = "true".equals(UtilProperties.getPropertyValue("oagis", "Oagis.Debug.Save.Xml.Out")); + public static final boolean debugSaveXmlIn = "true".equals(UtilProperties.getPropertyValue("oagis", "Oagis.Debug.Save.Xml.In")); /** if TRUE then must exist, if FALSE must not exist, if null don't care */ public static final Boolean requireSerialNumberExist; static { - String requireSerialNumberExistStr = UtilProperties.getPropertyValue("oagis.properties", "Oagis.Warehouse.RequireSerialNumberExist"); + String requireSerialNumberExistStr = UtilProperties.getPropertyValue("oagis", "Oagis.Warehouse.RequireSerialNumberExist"); if ("true".equals(requireSerialNumberExistStr)) { requireSerialNumberExist = Boolean.TRUE; } else if ("false".equals(requireSerialNumberExistStr)) { @@ -106,19 +106,19 @@ public class OagisServices { String sendToUrl = (String) context.get("sendToUrl"); if (UtilValidate.isEmpty(sendToUrl)) { - sendToUrl = EntityUtilProperties.getPropertyValue("oagis.properties", "url.send.confirmBod", delegator); + sendToUrl = EntityUtilProperties.getPropertyValue("oagis", "url.send.confirmBod", delegator); } String saveToFilename = (String) context.get("saveToFilename"); if (UtilValidate.isEmpty(saveToFilename)) { - String saveToFilenameBase = EntityUtilProperties.getPropertyValue("oagis.properties", "test.save.outgoing.filename.base", "", delegator); + String saveToFilenameBase = EntityUtilProperties.getPropertyValue("oagis", "test.save.outgoing.filename.base", "", delegator); if (UtilValidate.isNotEmpty(saveToFilenameBase)) { saveToFilename = saveToFilenameBase + "ConfirmBod" + errorReferenceId + ".xml"; } } String saveToDirectory = (String) context.get("saveToDirectory"); if (UtilValidate.isEmpty(saveToDirectory)) { - saveToDirectory = EntityUtilProperties.getPropertyValue("oagis.properties", "test.save.outgoing.directory", delegator); + saveToDirectory = EntityUtilProperties.getPropertyValue("oagis", "test.save.outgoing.directory", delegator); } OutputStream out = (OutputStream) context.get("outputStream"); @@ -130,8 +130,8 @@ public class OagisServices { Debug.logError(e, "Error getting userLogin", module); } - String logicalId = EntityUtilProperties.getPropertyValue("oagis.properties", "CNTROLAREA.SENDER.LOGICALID", delegator); - String authId = EntityUtilProperties.getPropertyValue("oagis.properties", "CNTROLAREA.SENDER.AUTHID", delegator); + String logicalId = EntityUtilProperties.getPropertyValue("oagis", "CNTROLAREA.SENDER.LOGICALID", delegator); + String authId = EntityUtilProperties.getPropertyValue("oagis", "CNTROLAREA.SENDER.AUTHID", delegator); MapStack bodyParameters = MapStack.create(); bodyParameters.put("logicalId", logicalId); @@ -185,7 +185,7 @@ public class OagisServices { bodyParameters.put("errorReferenceId", errorReferenceId); bodyParameters.put("errorMapList", errorMapList); bodyParameters.put("origRef", context.get("origRefId")); - String bodyScreenUri = EntityUtilProperties.getPropertyValue("oagis.properties", "Oagis.Template.ConfirmBod", delegator); + String bodyScreenUri = EntityUtilProperties.getPropertyValue("oagis", "Oagis.Template.ConfirmBod", delegator); String outText = null; try { @@ -675,9 +675,9 @@ public class OagisServices { } public static Map sendMessageText(String outText, OutputStream out, String sendToUrl, String saveToDirectory, String saveToFilename, Locale locale, Delegator delegator) { - final String certAlias = EntityUtilProperties.getPropertyValue("oagis.properties", "auth.client.certificate.alias", delegator); - final String basicAuthUsername = EntityUtilProperties.getPropertyValue("oagis.properties", "auth.basic.username", delegator); - final String basicAuthPassword = EntityUtilProperties.getPropertyValue("oagis.properties", "auth.basic.password", delegator); + final String certAlias = EntityUtilProperties.getPropertyValue("oagis", "auth.client.certificate.alias", delegator); + final String basicAuthUsername = EntityUtilProperties.getPropertyValue("oagis", "auth.basic.username", delegator); + final String basicAuthPassword = EntityUtilProperties.getPropertyValue("oagis", "auth.basic.password", delegator); if (out != null) { Writer outWriter = new OutputStreamWriter(out); try { diff --git a/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java b/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java index 9ffb8546f3..2520deb182 100644 --- a/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java +++ b/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java @@ -651,19 +651,19 @@ public class OagisShipmentServices { String sendToUrl = (String) context.get("sendToUrl"); if (UtilValidate.isEmpty(sendToUrl)) { - sendToUrl = EntityUtilProperties.getPropertyValue("oagis.properties", "url.send.processShipment", delegator); + sendToUrl = EntityUtilProperties.getPropertyValue("oagis", "url.send.processShipment", delegator); } String saveToFilename = (String) context.get("saveToFilename"); if (UtilValidate.isEmpty(saveToFilename)) { - String saveToFilenameBase = EntityUtilProperties.getPropertyValue("oagis.properties", "test.save.outgoing.filename.base", "", delegator); + String saveToFilenameBase = EntityUtilProperties.getPropertyValue("oagis", "test.save.outgoing.filename.base", "", delegator); if (UtilValidate.isNotEmpty(saveToFilenameBase)) { saveToFilename = saveToFilenameBase + "ProcessShipment" + orderId + ".xml"; } } String saveToDirectory = (String) context.get("saveToDirectory"); if (UtilValidate.isEmpty(saveToDirectory)) { - saveToDirectory = EntityUtilProperties.getPropertyValue("oagis.properties", "test.save.outgoing.directory", delegator); + saveToDirectory = EntityUtilProperties.getPropertyValue("oagis", "test.save.outgoing.directory", delegator); } OutputStream out = (OutputStream) context.get("outputStream"); @@ -685,7 +685,7 @@ public class OagisShipmentServices { GenericValue orderHeader = null; GenericValue orderItemShipGroup = null; - String logicalId = EntityUtilProperties.getPropertyValue("oagis.properties", "CNTROLAREA.SENDER.LOGICALID", delegator); + String logicalId = EntityUtilProperties.getPropertyValue("oagis", "CNTROLAREA.SENDER.LOGICALID", delegator); String referenceId = null; String task = "SHIPREQUEST"; // Actual value of task is "SHIPREQUEST" which is more than 10 char, need this in the db so it will match Confirm BODs, etc String component = "INVENTORY"; @@ -710,7 +710,7 @@ public class OagisShipmentServices { return ServiceUtil.returnError(UtilProperties.getMessage(resource, "OagisOrderIdNotFound", UtilMisc.toMap("orderId", orderId), locale)); } - List validStores = StringUtil.split(EntityUtilProperties.getPropertyValue("oagis.properties", "Oagis.Order.ValidProductStores", delegator), ","); + List validStores = StringUtil.split(EntityUtilProperties.getPropertyValue("oagis", "Oagis.Order.ValidProductStores", delegator), ","); if (UtilValidate.isNotEmpty(validStores)) { if (!validStores.contains(orderHeader.getString("productStoreId"))) { return ServiceUtil.returnSuccess(UtilProperties.getMessage(resource, "OagisOrderIdNotValidStore", UtilMisc.toMap("orderId", orderId), locale)); @@ -748,7 +748,7 @@ public class OagisShipmentServices { referenceId = delegator.getNextSeqId("OagisMessageInfo"); omiPkMap = UtilMisc.toMap("logicalId", logicalId, "component", component, "task", task, "referenceId", referenceId); - String authId = EntityUtilProperties.getPropertyValue("oagis.properties", "CNTROLAREA.SENDER.AUTHID", delegator); + String authId = EntityUtilProperties.getPropertyValue("oagis", "CNTROLAREA.SENDER.AUTHID", delegator); Timestamp timestamp = UtilDateTime.nowTimestamp(); String sentDate = OagisServices.isoDateFormat.format(timestamp); @@ -877,7 +877,7 @@ public class OagisShipmentServices { bodyParameters.put("orderId", orderId); bodyParameters.put("userLogin", userLogin); - String bodyScreenUri = EntityUtilProperties.getPropertyValue("oagis.properties", "Oagis.Template.ProcessShipment", delegator); + String bodyScreenUri = EntityUtilProperties.getPropertyValue("oagis", "Oagis.Template.ProcessShipment", delegator); String outText = null; Writer writer = new StringWriter(); ScreenRenderer screens = new ScreenRenderer(writer, bodyParameters, htmlScreenRenderer); @@ -973,19 +973,19 @@ public class OagisShipmentServices { Locale locale = (Locale) context.get("locale"); String sendToUrl = (String) context.get("sendToUrl"); if (UtilValidate.isEmpty(sendToUrl)) { - sendToUrl = EntityUtilProperties.getPropertyValue("oagis.properties", "url.send.receiveDelivery", delegator); + sendToUrl = EntityUtilProperties.getPropertyValue("oagis", "url.send.receiveDelivery", delegator); } String saveToFilename = (String) context.get("saveToFilename"); if (UtilValidate.isEmpty(saveToFilename)) { - String saveToFilenameBase = EntityUtilProperties.getPropertyValue("oagis.properties", "test.save.outgoing.filename.base", "", delegator); + String saveToFilenameBase = EntityUtilProperties.getPropertyValue("oagis", "test.save.outgoing.filename.base", "", delegator); if (UtilValidate.isNotEmpty(saveToFilenameBase)) { saveToFilename = saveToFilenameBase + "ReceiveDelivery" + returnId + ".xml"; } } String saveToDirectory = (String) context.get("saveToDirectory"); if (UtilValidate.isEmpty(saveToDirectory)) { - saveToDirectory = EntityUtilProperties.getPropertyValue("oagis.properties", "test.save.outgoing.directory", delegator); + saveToDirectory = EntityUtilProperties.getPropertyValue("oagis", "test.save.outgoing.directory", delegator); } GenericValue userLogin = null; @@ -1033,8 +1033,8 @@ public class OagisShipmentServices { orderId = EntityUtil.getFirst(returnItems).getString("orderId"); - String logicalId = EntityUtilProperties.getPropertyValue("oagis.properties", "CNTROLAREA.SENDER.LOGICALID", delegator); - String authId = EntityUtilProperties.getPropertyValue("oagis.properties", "CNTROLAREA.SENDER.AUTHID", delegator); + String logicalId = EntityUtilProperties.getPropertyValue("oagis", "CNTROLAREA.SENDER.LOGICALID", delegator); + String authId = EntityUtilProperties.getPropertyValue("oagis", "CNTROLAREA.SENDER.AUTHID", delegator); referenceId = delegator.getNextSeqId("OagisMessageInfo"); omiPkMap = UtilMisc.toMap("logicalId", logicalId, "component", component, "task", task, "referenceId", referenceId); @@ -1123,7 +1123,7 @@ public class OagisShipmentServices { bodyParameters.put("returnId", returnId); - String bodyScreenUri = EntityUtilProperties.getPropertyValue("oagis.properties", "Oagis.Template.ReceiveDelivery", delegator); + String bodyScreenUri = EntityUtilProperties.getPropertyValue("oagis", "Oagis.Template.ReceiveDelivery", delegator); Writer writer = new StringWriter(); ScreenRenderer screens = new ScreenRenderer(writer, bodyParameters, htmlScreenRenderer); screens.render(bodyScreenUri); diff --git a/specialpurpose/pos/src/org/ofbiz/guiapp/xui/XuiContainer.java b/specialpurpose/pos/src/org/ofbiz/guiapp/xui/XuiContainer.java index 31d7a6275b..16466a5778 100644 --- a/specialpurpose/pos/src/org/ofbiz/guiapp/xui/XuiContainer.java +++ b/specialpurpose/pos/src/org/ofbiz/guiapp/xui/XuiContainer.java @@ -142,7 +142,7 @@ public abstract class XuiContainer implements Container { if (args.length > 0) { startupProperties = args[0]; } - String languageSuffix = EntityUtilProperties.getPropertyValue("xui.properties", "languageSuffix", "", delegator); + String languageSuffix = EntityUtilProperties.getPropertyValue("xui", "languageSuffix", "", delegator); String suffix = null; if(UtilValidate.isEmpty(languageSuffix)) { suffix = Locale.getDefault().getLanguage(); diff --git a/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java b/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java index 49478eaaaf..c199c74343 100644 --- a/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java +++ b/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java @@ -1939,7 +1939,7 @@ public class PosTransaction implements Serializable { String passwordAcceptEncryptedAndPlain = null; try { - passwordAcceptEncryptedAndPlain = EntityUtilProperties.getPropertyValue("security.properties", "password.accept.encrypted.and.plain", delegator); + passwordAcceptEncryptedAndPlain = EntityUtilProperties.getPropertyValue("security", "password.accept.encrypted.and.plain", delegator); UtilProperties.setPropertyValueInMemory("security.properties", "password.accept.encrypted.and.plain", "true"); svcRes = dispatcher.runSync("updatePassword", UtilMisc.toMap("userLogin", userLogin,