A modified patch from Pierre Smits for "Remove superfluous .properties extension from EntityUtilProperties requests" https://issues.apache.org/jira/browse/OFBIZ-6719
Currently many EntityUtilProperties requests have the .properties extension in the parameters for the resource, but this is not needed as it is stripped later on. jleroux: I found 5 others, replaced also git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1713985 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+9
-9
@@ -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<String, Object> refundCtx = new HashMap<String, Object>();
|
||||
@@ -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
|
||||
|
||||
+2
-2
@@ -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<String, Object> authContext = new HashMap<String, Object>();
|
||||
@@ -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 {
|
||||
|
||||
Vendored
+1
-1
@@ -536,7 +536,7 @@ public class IcsPaymentServices {
|
||||
|
||||
private static void processAuthResult(Map<String, Object> reply, Map<String, Object> 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);
|
||||
|
||||
Vendored
+5
-5
@@ -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<String, Object> redeemCtx = new HashMap<String, Object>();
|
||||
@@ -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<String, Object> redeemCtx = new HashMap<String, Object>();
|
||||
@@ -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<String, Object> refundCtx = new HashMap<String, Object>();
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
+1
-1
@@ -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 {
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -261,7 +261,7 @@ public class ShoppingCart implements Iterable<ShoppingCartItem>, 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;
|
||||
|
||||
|
||||
@@ -230,7 +230,7 @@ public class ShoppingCartHelper {
|
||||
|
||||
// get order item attributes
|
||||
Map<String, String> orderItemAttributes = new HashMap<String, String>();
|
||||
String orderItemAttributePrefix = EntityUtilProperties.getPropertyValue("order.properties", "order.item.attr.prefix", delegator);
|
||||
String orderItemAttributePrefix = EntityUtilProperties.getPropertyValue("order", "order.item.attr.prefix", delegator);
|
||||
for (Entry<String, ? extends Object> entry : context.entrySet()) {
|
||||
if (entry.getKey().toString().contains(orderItemAttributePrefix) && UtilValidate.isNotEmpty(entry.getValue())) {
|
||||
orderItemAttributes.put(entry.getKey().replaceAll(orderItemAttributePrefix, ""), entry.getValue().toString());
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
+1
-1
@@ -229,7 +229,7 @@ public class ZipSalesServices {
|
||||
List<List<GenericValue>> itemAdjustments = new LinkedList<List<GenericValue>>();
|
||||
|
||||
// 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<String> stateSplit = StringUtil.split(validStates, "|");
|
||||
if (!stateSplit.contains(stateProvince)) {
|
||||
|
||||
+3
-3
@@ -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<String, Object> result = null;
|
||||
Delegator delegator = dispatcher.getDelegator();
|
||||
List<Map<String, Object>> tempResults = new LinkedList<Map<String,Object>>();
|
||||
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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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<String, Object> convertPriceMap = new HashMap<String, Object>();
|
||||
|
||||
@@ -900,7 +900,7 @@ public class ProductServices {
|
||||
|
||||
public static Map<String, Object> updateProductIfAvailableFromShipment(DispatchContext dctx, Map<String, ? extends Object> 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");
|
||||
|
||||
@@ -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<String, BigDecimal> entry: packageMap.entrySet()) {
|
||||
String productId = entry.getKey();
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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...
|
||||
|
||||
+3
-3
@@ -151,7 +151,7 @@ public class WeightPackageServices {
|
||||
|
||||
Map<String, Object> response = new HashMap<String, Object>();
|
||||
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<String, Object> response = new HashMap<String, Object>();
|
||||
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) {
|
||||
|
||||
@@ -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))) {
|
||||
|
||||
+8
-8
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -43,7 +43,7 @@ public class CommonWorkers {
|
||||
|
||||
public static List<GenericValue> getCountryList(Delegator delegator) {
|
||||
List<GenericValue> geoList = new LinkedList<GenericValue>();
|
||||
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<EntityExpr> exprs = UtilMisc.toList(EntityCondition.makeCondition("geoTypeId", EntityOperator.EQUALS, "COUNTRY"));
|
||||
List<String> countriesAvailable = StringUtil.split(EntityUtilProperties.getPropertyValue("general.properties", "countries.geo.id.available", delegator), ",");
|
||||
List<String> 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<GenericValue> 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)) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -92,7 +92,7 @@ public class LoginServices {
|
||||
}
|
||||
|
||||
Map<String, Object> result = new LinkedHashMap<String, Object>();
|
||||
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<String> errorMessageList = new LinkedList<String>();
|
||||
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<String> 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<String, String> 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;
|
||||
|
||||
@@ -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<GenericValue> passwordHistories = null;
|
||||
try {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -132,7 +132,7 @@ public class ServiceEventHandler implements EventHandler {
|
||||
Map<String, Object> multiPartMap = new HashMap<String, Object>();
|
||||
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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
+7
-7
@@ -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 = "";
|
||||
|
||||
+1
-1
@@ -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");
|
||||
|
||||
@@ -68,7 +68,7 @@ public class OagisInventoryServices {
|
||||
Locale locale = (Locale) context.get("locale");
|
||||
List<Map<String, String>> errorMapList = new LinkedList<Map<String,String>>();
|
||||
List<Map<String, Object>> inventoryMapList = new LinkedList<Map<String,Object>>();
|
||||
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<String, Object> sendMap = new HashMap<String, Object>();
|
||||
|
||||
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<? extends Element> 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<String, Object> comiCtx = new HashMap<String, Object>();
|
||||
@@ -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<String, Object> comiCtx = new HashMap<String, Object>();
|
||||
|
||||
@@ -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<String> 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<String, Object> 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 {
|
||||
|
||||
@@ -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<String> validStores = StringUtil.split(EntityUtilProperties.getPropertyValue("oagis.properties", "Oagis.Order.ValidProductStores", delegator), ",");
|
||||
List<String> 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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user