diff --git a/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml b/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml index e76515d62a..ff62048793 100644 --- a/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml +++ b/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml @@ -22,20 +22,8 @@ under the License. xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods-v2.xsd"> - - - - - - - - - - - - - - + + @@ -59,12 +47,8 @@ under the License. - - - - - - + + @@ -710,13 +694,7 @@ under the License. - - - - - - - + diff --git a/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml b/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml index 508a839335..b3f49059af 100644 --- a/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml +++ b/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml @@ -692,12 +692,7 @@ under the License. - - - - - - + @@ -928,12 +923,7 @@ under the License. - - - - - - + diff --git a/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml b/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml index 04abb3a50d..d1019594eb 100644 --- a/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml +++ b/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml @@ -2849,20 +2849,8 @@ under the License. - - - - - - - - - - - - - - + + diff --git a/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml b/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml index dc56fa9da8..677df2d0ef 100644 --- a/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml +++ b/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml @@ -603,12 +603,7 @@ under the License. - - - - - - + @@ -902,13 +897,7 @@ under the License. - - - - - - - + @@ -916,13 +905,7 @@ under the License. - - - - - - - + @@ -1056,13 +1039,7 @@ under the License. - - - - - - - + diff --git a/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml b/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml index aba8b8322d..a037d3b087 100644 --- a/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml +++ b/applications/accounting/script/org/ofbiz/accounting/rate/RateServices.xml @@ -30,12 +30,7 @@ under the License. - - - - - - + @@ -86,12 +81,7 @@ under the License. - - - - - - + @@ -140,12 +130,7 @@ under the License. Then will be checked if the requested periodTypeId and currency can be found, if not isue an error message --> - - - - - - + @@ -394,12 +379,7 @@ under the License. - - - - - - + diff --git a/applications/accounting/src/org/ofbiz/accounting/thirdparty/clearcommerce/CCPaymentServices.java b/applications/accounting/src/org/ofbiz/accounting/thirdparty/clearcommerce/CCPaymentServices.java index eda682e7ed..47a6c32741 100644 --- a/applications/accounting/src/org/ofbiz/accounting/thirdparty/clearcommerce/CCPaymentServices.java +++ b/applications/accounting/src/org/ofbiz/accounting/thirdparty/clearcommerce/CCPaymentServices.java @@ -865,7 +865,7 @@ public class CCPaymentServices { Element instructionsElement = UtilXml.addChildElement(engineDocElement, "Instructions", requestDocument); String pipeline = "PaymentNoFraud"; - if (EntityUtilProperties.propertyValueEqualsIgnoreCase(paymentConfig, "payment.clearcommerce.enableFraudShield", "Y", delegator)) { + if (UtilProperties.propertyValueEqualsIgnoreCase(paymentConfig, "payment.clearcommerce.enableFraudShield", "Y")) { pipeline = "Payment"; } UtilXml.addChildElementValue(instructionsElement, "Pipeline", pipeline, requestDocument); diff --git a/applications/content/script/org/ofbiz/content/content/ContentServices.xml b/applications/content/script/org/ofbiz/content/content/ContentServices.xml index a550c08d9f..4fdc8a9561 100644 --- a/applications/content/script/org/ofbiz/content/content/ContentServices.xml +++ b/applications/content/script/org/ofbiz/content/content/ContentServices.xml @@ -977,12 +977,7 @@ - - - - - - + diff --git a/applications/content/script/org/ofbiz/content/data/DataServices.xml b/applications/content/script/org/ofbiz/content/data/DataServices.xml index f6838dcd45..bdef08c55d 100644 --- a/applications/content/script/org/ofbiz/content/data/DataServices.xml +++ b/applications/content/script/org/ofbiz/content/data/DataServices.xml @@ -561,12 +561,7 @@ under the License. - - - - - - + diff --git a/applications/order/script/org/ofbiz/order/order/OrderServices.xml b/applications/order/script/org/ofbiz/order/order/OrderServices.xml index cd1bdac007..7a3fba69ba 100644 --- a/applications/order/script/org/ofbiz/order/order/OrderServices.xml +++ b/applications/order/script/org/ofbiz/order/order/OrderServices.xml @@ -1392,12 +1392,7 @@ under the License. ]]> - - - - - - + diff --git a/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/CategoryDetail.groovy b/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/CategoryDetail.groovy index 14d74fe9b2..45468a2345 100644 --- a/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/CategoryDetail.groovy +++ b/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/CategoryDetail.groovy @@ -39,7 +39,7 @@ viewIndex = parameters.VIEW_INDEX; currentCatalogId = CatalogWorker.getCurrentCatalogId(request); // set the default view size -defaultViewSize = request.getAttribute("defaultViewSize") ?: EntityUtilProperties.getPropertyValue("widget", "widget.form.defaultViewSize", "20", delegator); +defaultViewSize = request.getAttribute("defaultViewSize") ?: UtilProperties.getPropertyValue("widget", "widget.form.defaultViewSize", "20"); context.defaultViewSize = defaultViewSize; // set the limit view diff --git a/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml b/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml index ee80af6c69..582417d3e9 100644 --- a/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml +++ b/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml @@ -321,13 +321,7 @@ under the License. - - - - - - - + diff --git a/applications/party/script/org/ofbiz/party/customer/CustomerEvents.xml b/applications/party/script/org/ofbiz/party/customer/CustomerEvents.xml index dbb6b9286b..88e724f7c1 100644 --- a/applications/party/script/org/ofbiz/party/customer/CustomerEvents.xml +++ b/applications/party/script/org/ofbiz/party/customer/CustomerEvents.xml @@ -26,20 +26,9 @@ under the License. - - - - - - - - - - - - - - + + + diff --git a/applications/party/script/org/ofbiz/party/user/UserEvents.xml b/applications/party/script/org/ofbiz/party/user/UserEvents.xml index 42c1a219c7..3c900b8b5c 100644 --- a/applications/party/script/org/ofbiz/party/user/UserEvents.xml +++ b/applications/party/script/org/ofbiz/party/user/UserEvents.xml @@ -35,20 +35,8 @@ under the License. - - - - - - - - - - - - - - + + @@ -61,20 +49,8 @@ under the License. - - - - - - - - - - - - - - + + @@ -82,20 +58,8 @@ under the License. - - - - - - - - - - - - - - + + @@ -359,11 +323,9 @@ under the License. - + - - diff --git a/applications/party/webapp/partymgr/WEB-INF/actions/party/FindLookUp.groovy b/applications/party/webapp/partymgr/WEB-INF/actions/party/FindLookUp.groovy index a1ba1bceff..8793e6abe9 100644 --- a/applications/party/webapp/partymgr/WEB-INF/actions/party/FindLookUp.groovy +++ b/applications/party/webapp/partymgr/WEB-INF/actions/party/FindLookUp.groovy @@ -19,13 +19,12 @@ import org.ofbiz.base.util.*; import org.ofbiz.entity.condition.*; -import org.ofbiz.entity.util.EntityUtilProperties; if (context.noConditionFind == null) { context.noConditionFind = parameters.noConditionFind; } if (context.noConditionFind == null) { - context.noConditionFind = EntityUtilProperties.getPropertyValue("widget", "widget.defaultNoConditionFind", delegator); + context.noConditionFind = UtilProperties.getPropertyValue("widget", "widget.defaultNoConditionFind"); } if (context.filterByDate == null) { context.filterByDate = parameters.filterByDate; diff --git a/applications/product/script/org/ofbiz/product/catalog/CatalogServices.xml b/applications/product/script/org/ofbiz/product/catalog/CatalogServices.xml index 50edce0003..7d7713053c 100644 --- a/applications/product/script/org/ofbiz/product/catalog/CatalogServices.xml +++ b/applications/product/script/org/ofbiz/product/catalog/CatalogServices.xml @@ -25,12 +25,7 @@ under the License. - - - - - - + diff --git a/applications/product/script/org/ofbiz/product/rental/RentalServices.xml b/applications/product/script/org/ofbiz/product/rental/RentalServices.xml index 120330c74f..4899fde3d4 100644 --- a/applications/product/script/org/ofbiz/product/rental/RentalServices.xml +++ b/applications/product/script/org/ofbiz/product/rental/RentalServices.xml @@ -22,12 +22,7 @@ under the License. xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods-v2.xsd"> - - - - - - + diff --git a/applications/workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml b/applications/workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml index b8184239ef..39671c1f72 100644 --- a/applications/workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml +++ b/applications/workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml @@ -143,24 +143,13 @@ under the License. - - - - - - + - - - - - - - + diff --git a/framework/common/script/org/ofbiz/common/email/EmailServices.xml b/framework/common/script/org/ofbiz/common/email/EmailServices.xml index 6efe219e9b..efdcb19786 100644 --- a/framework/common/script/org/ofbiz/common/email/EmailServices.xml +++ b/framework/common/script/org/ofbiz/common/email/EmailServices.xml @@ -51,13 +51,7 @@ under the License. - - - - - - - + diff --git a/framework/common/src/org/ofbiz/common/email/EmailServices.java b/framework/common/src/org/ofbiz/common/email/EmailServices.java index 475a8f185d..e9aa1a6d56 100644 --- a/framework/common/src/org/ofbiz/common/email/EmailServices.java +++ b/framework/common/src/org/ofbiz/common/email/EmailServices.java @@ -238,7 +238,7 @@ public class EmailServices { } session = Session.getInstance(props); - boolean debug = EntityUtilProperties.propertyValueEqualsIgnoreCase("general.properties", "mail.debug.on", "Y", delegator); + boolean debug = UtilProperties.propertyValueEqualsIgnoreCase("general.properties", "mail.debug.on", "Y"); session.setDebug(debug); mail = new MimeMessage(session); diff --git a/framework/entity/script/org/ofbiz/entity/test/EntityUtilPropertiesTests.xml b/framework/entity/script/org/ofbiz/entity/test/EntityUtilPropertiesTests.xml index f9a85253e2..f194bbef82 100644 --- a/framework/entity/script/org/ofbiz/entity/test/EntityUtilPropertiesTests.xml +++ b/framework/entity/script/org/ofbiz/entity/test/EntityUtilPropertiesTests.xml @@ -36,20 +36,10 @@ under the License. - - - - - - + - - - - - - + diff --git a/framework/entity/src/org/ofbiz/entity/util/EntityUtilProperties.java b/framework/entity/src/org/ofbiz/entity/util/EntityUtilProperties.java index a7da669e85..1ef82fc5a1 100644 --- a/framework/entity/src/org/ofbiz/entity/util/EntityUtilProperties.java +++ b/framework/entity/src/org/ofbiz/entity/util/EntityUtilProperties.java @@ -88,19 +88,6 @@ public class EntityUtilProperties implements Serializable { } return value; } - - public static String getPropertyValue(String resource, String name, String defaultValue, Locale locale, Delegator delegator) { - String value = getSystemPropertyValue(resource, name, delegator); - if (UtilValidate.isEmpty(value)) { - if (UtilValidate.isNotEmpty(locale)) { - value = UtilProperties.getMessage(resource, name, locale); - } - if (UtilValidate.isEmpty(value)) { - value = UtilProperties.getPropertyValue(resource, name, defaultValue); - } - } - return value; - } public static double getPropertyNumber(String resource, String name, double defaultValue) { return UtilProperties.getPropertyNumber(resource, name, defaultValue); diff --git a/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java b/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java index 27e61e62ca..f9e4d19fa1 100644 --- a/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java +++ b/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java @@ -237,7 +237,7 @@ public class LoginWorker { // check if they have permission for this login attempt; if not log them out if (userLogin != null) { List errorMessageList = UtilGenerics.checkList(request.getAttribute("_ERROR_MESSAGE_LIST")); - if (!hasBasePermission(userLogin, request) || isFlaggedLoggedOut(userLogin, userLogin.getDelegator())) { + if (!hasBasePermission(userLogin, request) || isFlaggedLoggedOut(userLogin)) { if (errorMessageList == null) { errorMessageList = new LinkedList(); request.setAttribute("_ERROR_MESSAGE_LIST", errorMessageList); @@ -1066,8 +1066,8 @@ public class LoginWorker { return "success"; } - public static boolean isFlaggedLoggedOut(GenericValue userLogin, Delegator delegator) { - if ("true".equalsIgnoreCase(EntityUtilProperties.getPropertyValue("security.properties", "login.disable.global.logout", delegator))) { + public static boolean isFlaggedLoggedOut(GenericValue userLogin) { + if ("true".equalsIgnoreCase(UtilProperties.getPropertyValue("security.properties", "login.disable.global.logout"))) { return false; } if (userLogin == null || userLogin.get("userLoginId") == null) { diff --git a/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java b/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java index 89cb721daa..ad73cb387e 100644 --- a/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java +++ b/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java @@ -71,6 +71,8 @@ import org.python.modules.re; public class RequestHandler { public static final String module = RequestHandler.class.getName(); + private static final boolean throwRequestHandlerExceptionOnMissingLocalRequest = UtilProperties.propertyValueEqualsIgnoreCase( + "requestHandler.properties", "throwRequestHandlerExceptionOnMissingLocalRequest", "Y"); private final String defaultStatusCodeString = UtilProperties.getPropertyValue("requestHandler.properties", "status-code", "302"); private final ViewFactory viewFactory; private final EventFactory eventFactory; @@ -129,8 +131,6 @@ public class RequestHandler { public void doRequest(HttpServletRequest request, HttpServletResponse response, String chain, GenericValue userLogin, Delegator delegator) throws RequestHandlerException, RequestHandlerExceptionAllowExternalRequests { - final boolean throwRequestHandlerExceptionOnMissingLocalRequest = EntityUtilProperties.propertyValueEqualsIgnoreCase( - "requestHandler.properties", "throwRequestHandlerExceptionOnMissingLocalRequest", "Y", delegator); long startTime = System.currentTimeMillis(); HttpSession session = request.getSession(); @@ -280,7 +280,7 @@ public class RequestHandler { } } if (enableHttps == null) { - enableHttps = EntityUtilProperties.propertyValueEqualsIgnoreCase("url.properties", "port.https.enabled", "Y", delegator); + enableHttps = UtilProperties.propertyValueEqualsIgnoreCase("url.properties", "port.https.enabled", "Y"); } if (Boolean.FALSE.equals(enableHttps)) { @@ -1024,11 +1024,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 = UtilProperties.getPropertyValue("url.properties", "port.https", "443"); + String httpsServer = UtilProperties.getPropertyValue("url.properties", "force.https.host"); + String httpPort = UtilProperties.getPropertyValue("url.properties", "port.http", "80"); + String httpServer = UtilProperties.getPropertyValue("url.properties", "force.http.host"); + boolean useHttps = UtilProperties.propertyValueEqualsIgnoreCase("url.properties", "port.https.enabled", "Y"); if (Start.getInstance().getConfig().portOffset != 0) { Integer httpPortValue = Integer.valueOf(httpPort); diff --git a/framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java b/framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java index a01bd8637c..0c63d79505 100644 --- a/framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java +++ b/framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java @@ -37,7 +37,6 @@ import org.ofbiz.entity.GenericEntityException; import org.ofbiz.entity.GenericValue; import org.ofbiz.entity.model.ModelEntity; import org.ofbiz.entity.util.EntityQuery; -import org.ofbiz.entity.util.EntityUtilProperties; import com.ibm.icu.util.Calendar; @@ -214,7 +213,7 @@ public class ServerHitBin { // put the copy at the first of the list, then put this object back on if (bin.getNumberHits() > 0) { // persist each bin when time ends if option turned on - if (EntityUtilProperties.propertyValueEqualsIgnoreCase("serverstats", "stats.persist." + ServerHitBin.typeIds[type] + ".bin", "true", delegator)) { + if (UtilProperties.propertyValueEqualsIgnoreCase("serverstats", "stats.persist." + ServerHitBin.typeIds[type] + ".bin", "true")) { GenericValue serverHitBin = delegator.makeValue("ServerHitBin"); serverHitBin.set("contentId", bin.id); serverHitBin.set("hitTypeId", ServerHitBin.typeIds[bin.type]); @@ -466,8 +465,7 @@ public class ServerHitBin { private void saveHit(HttpServletRequest request, long startTime, long runningTime, GenericValue userLogin) throws GenericEntityException { // persist record of hit in ServerHit entity if option turned on - Delegator delegator = (Delegator) request.getAttribute("delegator"); - if (EntityUtilProperties.propertyValueEqualsIgnoreCase("serverstats", "stats.persist." + ServerHitBin.typeIds[type] + ".hit", "true", delegator)) { + if (UtilProperties.propertyValueEqualsIgnoreCase("serverstats", "stats.persist." + ServerHitBin.typeIds[type] + ".hit", "true")) { // if the hit type is ENTITY and the name contains "ServerHit" don't // persist; avoids the infinite loop and a bunch of annoying data if (this.type == ENTITY && this.id.indexOf("ServerHit") > 0) { diff --git a/framework/webapp/src/org/ofbiz/webapp/stats/VisitHandler.java b/framework/webapp/src/org/ofbiz/webapp/stats/VisitHandler.java index f47573e92b..5816db63d2 100644 --- a/framework/webapp/src/org/ofbiz/webapp/stats/VisitHandler.java +++ b/framework/webapp/src/org/ofbiz/webapp/stats/VisitHandler.java @@ -36,7 +36,6 @@ import org.ofbiz.entity.GenericEntityException; import org.ofbiz.entity.GenericValue; import org.ofbiz.entity.model.ModelEntity; import org.ofbiz.entity.util.EntityQuery; -import org.ofbiz.entity.util.EntityUtilProperties; /** * Handles saving and maintaining visit information @@ -205,8 +204,7 @@ public class VisitHandler { public static GenericValue getVisitor(HttpServletRequest request, HttpServletResponse response) { // this defaults to true: ie if anything but "false" it will be true - Delegator delegator = (Delegator) request.getAttribute("delegator"); - if (!EntityUtilProperties.propertyValueEqualsIgnoreCase("serverstats", "stats.persist.visitor", "false", delegator)) { + if (!UtilProperties.propertyValueEqualsIgnoreCase("serverstats", "stats.persist.visitor", "false")) { HttpSession session = request.getSession(); GenericValue visitor = (GenericValue) session.getAttribute("visitor"); @@ -214,6 +212,7 @@ public class VisitHandler { synchronized (session) { visitor = (GenericValue) session.getAttribute("visitor"); if (visitor == null) { + Delegator delegator = (Delegator) request.getAttribute("delegator"); String delegatorName = (String) session.getAttribute("delegatorName"); if (delegator == null && UtilValidate.isNotEmpty(delegatorName)) { diff --git a/framework/webtools/webapp/webtools/WEB-INF/actions/service/AvailableServices.groovy b/framework/webtools/webapp/webtools/WEB-INF/actions/service/AvailableServices.groovy index 80ea2f8cef..bcde15fe12 100644 --- a/framework/webtools/webapp/webtools/WEB-INF/actions/service/AvailableServices.groovy +++ b/framework/webtools/webapp/webtools/WEB-INF/actions/service/AvailableServices.groovy @@ -28,7 +28,6 @@ import org.ofbiz.service.ModelPermission; import org.ofbiz.service.ServiceContainer; import org.ofbiz.base.util.UtilHttp; import org.ofbiz.base.util.UtilProperties; -import org.ofbiz.entity.util.EntityUtilProperties; List getEcaListForService(String selectedService) { ecaMap = org.ofbiz.service.eca.ServiceEcaUtil.getServiceEventMap(selectedService); @@ -477,7 +476,7 @@ if (selectedService) { if (showWsdl?.equals("true")) { try { - wsdl = curServiceModel.toWSDL("http://${request.getServerName()}:${EntityUtilProperties.getPropertyValue("url.properties", "port.http", "80", delegator)}${parameters._CONTROL_PATH_}/SOAPService"); + wsdl = curServiceModel.toWSDL("http://${request.getServerName()}:${UtilProperties.getPropertyValue("url.properties", "port.http", "80")}${parameters._CONTROL_PATH_}/SOAPService"); curServiceMap.wsdl = UtilXml.writeXmlDocument(wsdl); } catch (WSDLException ex) { curServiceMap.wsdl = ex.getLocalizedMessage(); diff --git a/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml b/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml index b2e030d604..7c1dab1dc2 100644 --- a/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml +++ b/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml @@ -35,20 +35,9 @@ under the License. - - - - - - - - - - - - - - + + + diff --git a/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/QuickAnonCustomerEvents.xml b/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/QuickAnonCustomerEvents.xml index a515eca443..09e6dd2aea 100644 --- a/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/QuickAnonCustomerEvents.xml +++ b/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/QuickAnonCustomerEvents.xml @@ -36,19 +36,8 @@ under the License. - - - - - - - - - - - - - + + @@ -356,12 +345,11 @@ under the License. - diff --git a/specialpurpose/googlebase/webapp/googlebase/WEB-INF/actions/autoUpdateConfig.groovy b/specialpurpose/googlebase/webapp/googlebase/WEB-INF/actions/autoUpdateConfig.groovy index b60c431744..d161afc5bf 100644 --- a/specialpurpose/googlebase/webapp/googlebase/WEB-INF/actions/autoUpdateConfig.groovy +++ b/specialpurpose/googlebase/webapp/googlebase/WEB-INF/actions/autoUpdateConfig.groovy @@ -17,30 +17,30 @@ * under the License. */ import javolution.util.FastList -import org.ofbiz.entity.util.EntityUtilProperties +import org.ofbiz.base.util.UtilProperties configList = [] -str = EntityUtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStoreId", delegator) +str = UtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStoreId") productStoreIds = str.split(",") -str = EntityUtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.option.outOfStock", delegator) +str = UtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.option.outOfStock") outOfStock = str.split(",") -str = EntityUtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.option.backInStock", delegator) +str = UtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.option.backInStock") backInStock = str.split(",") -str = EntityUtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.webSiteUrl", delegator) +str = UtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.webSiteUrl") webSiteUrl = str.split(",") -str = EntityUtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.actionType", delegator) +str = UtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.actionType") actionType = str.split(",") -str = EntityUtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.statusId", delegator) +str = UtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.statusId") statusId = str.split(",") -str = EntityUtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.testMode", delegator) +str = UtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.testMode") testMode = str.split(",") -str = EntityUtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.webSiteMountPoint", delegator) +str = UtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.webSiteMountPoint") webSiteMountPoint = str.split(",") -str = EntityUtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.countryCode", delegator) +str = UtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.countryCode") countryCode = str.split(",") -str = EntityUtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.trackingCodeId", delegator) +str = UtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.trackingCodeId") trackingCodeId = str.split(",") -str = EntityUtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.allowRecommended", delegator) +str = UtilProperties.getPropertyValue("autoUpdateToGoogleBase.properties", "autoUpdateGoogleBase.productStore.allowRecommended") allowRecommended = str.split(",") productStoreIds.eachWithIndex{ productStoreId, i -> diff --git a/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/PrepareXMLTemplate.xml b/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/PrepareXMLTemplate.xml index 2d79aa6b04..bc139184eb 100644 --- a/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/PrepareXMLTemplate.xml +++ b/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/PrepareXMLTemplate.xml @@ -66,42 +66,17 @@ - - - - - - - - - - - - - - - - - - + + + - - - - - - - - - - - - + + @@ -141,12 +116,7 @@ - - - - - - + diff --git a/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/ShoppingCartServices.xml b/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/ShoppingCartServices.xml index 4a55756b78..1f53460561 100644 --- a/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/ShoppingCartServices.xml +++ b/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/ShoppingCartServices.xml @@ -45,24 +45,9 @@ - - - - - - - - - - - - - - - - - - + + + diff --git a/specialpurpose/ldap/src/org/ofbiz/ldap/LdapLoginWorker.java b/specialpurpose/ldap/src/org/ofbiz/ldap/LdapLoginWorker.java index 186f9a471a..197d276308 100644 --- a/specialpurpose/ldap/src/org/ofbiz/ldap/LdapLoginWorker.java +++ b/specialpurpose/ldap/src/org/ofbiz/ldap/LdapLoginWorker.java @@ -94,7 +94,7 @@ public class LdapLoginWorker extends LoginWorker { } } - if (!hasBasePermission(userLogin, request) || isFlaggedLoggedOut(userLogin, userLogin.getDelegator()) || hasLdapLoggedOut) { + if (!hasBasePermission(userLogin, request) || isFlaggedLoggedOut(userLogin) || hasLdapLoggedOut) { Debug.logInfo("User does not have permission or is flagged as logged out", module); doBasicLogout(userLogin, request, response); userLogin = null; diff --git a/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java b/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java index 23a60c9bdd..bcbffc2423 100644 --- a/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java +++ b/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java @@ -59,7 +59,7 @@ public class OagisInventoryServices { public static final String resource = "OagisUiLabels"; public static final Double doubleZero = new Double(0.0); public static final Double doubleOne = new Double(1.0); - + public static final String syncInventoryFacilityId = UtilProperties.getPropertyValue("oagis.properties", "Oagis.Warehouse.SyncInventoryFacilityId"); public static Map oagisReceiveSyncInventory(DispatchContext ctx, Map context) { Document doc = (Document) context.get("document"); @@ -69,7 +69,7 @@ public class OagisInventoryServices { Locale locale = (Locale) context.get("locale"); List> errorMapList = FastList.newInstance(); List> inventoryMapList = FastList.newInstance(); - final String syncInventoryFacilityId = EntityUtilProperties.getPropertyValue("oagis.properties", "Oagis.Warehouse.SyncInventoryFacilityId", delegator); + GenericValue userLogin = null; try { userLogin = EntityQuery.use(delegator).from("UserLogin").where("userLoginId", "system").queryOne(); diff --git a/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java b/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java index eb308d3175..0c2c483366 100644 --- a/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java +++ b/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java @@ -82,6 +82,10 @@ public class OagisServices { public static final String resource = "OagisUiLabels"; + public static final String certAlias = UtilProperties.getPropertyValue("oagis.properties", "auth.client.certificate.alias"); + public static final String basicAuthUsername = UtilProperties.getPropertyValue("oagis.properties", "auth.basic.username"); + public static final String basicAuthPassword = UtilProperties.getPropertyValue("oagis.properties", "auth.basic.password"); + 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")); @@ -104,7 +108,7 @@ public class OagisServices { Locale locale = (Locale) context.get("locale"); String errorReferenceId = (String) context.get("referenceId"); List> errorMapList = UtilGenerics.checkList(context.get("errorMapList")); - + String sendToUrl = (String) context.get("sendToUrl"); if (UtilValidate.isEmpty(sendToUrl)) { sendToUrl = EntityUtilProperties.getPropertyValue("oagis.properties", "url.send.confirmBod", delegator); @@ -215,7 +219,7 @@ public class OagisServices { Debug.logError(e, errMsg, module); } - Map sendMessageReturn = OagisServices.sendMessageText(outText, out, sendToUrl, saveToDirectory, saveToFilename, locale, delegator); + Map sendMessageReturn = OagisServices.sendMessageText(outText, out, sendToUrl, saveToDirectory, saveToFilename, locale); if (sendMessageReturn != null) { return sendMessageReturn; } @@ -675,11 +679,8 @@ public class OagisServices { return result; } - 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); - if (out != null) { + public static Map sendMessageText(String outText, OutputStream out, String sendToUrl, String saveToDirectory, String saveToFilename, Locale locale) { + if (out != null) { Writer outWriter = new OutputStreamWriter(out); try { outWriter.write(outText); diff --git a/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java b/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java index 7c00c3728e..8df3a1996a 100644 --- a/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java +++ b/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java @@ -80,6 +80,10 @@ public class OagisShipmentServices { public static final String resource = "OagisUiLabels"; + public static final String certAlias = UtilProperties.getPropertyValue("oagis.properties", "auth.client.certificate.alias"); + public static final String basicAuthUsername = UtilProperties.getPropertyValue("oagis.properties", "auth.basic.username"); + public static final String basicAuthPassword = UtilProperties.getPropertyValue("oagis.properties", "auth.basic.password"); + public static final String oagisMainNamespacePrefix = "n"; public static final String oagisSegmentsNamespacePrefix = "os"; public static final String oagisFieldsNamespacePrefix = "of"; @@ -902,7 +906,7 @@ public class OagisShipmentServices { Debug.logError(e, errMsg, module); } - Map sendMessageReturn = OagisServices.sendMessageText(outText, out, sendToUrl, saveToDirectory, saveToFilename, locale, delegator); + Map sendMessageReturn = OagisServices.sendMessageText(outText, out, sendToUrl, saveToDirectory, saveToFilename, locale); if (sendMessageReturn != null && ServiceUtil.isError(sendMessageReturn)) { try { Map uomiCtx = FastMap.newInstance(); @@ -1145,7 +1149,7 @@ public class OagisShipmentServices { Debug.logError(e, errMsg, module); } - Map sendMessageReturn = OagisServices.sendMessageText(outText, out, sendToUrl, saveToDirectory, saveToFilename, locale, delegator); + Map sendMessageReturn = OagisServices.sendMessageText(outText, out, sendToUrl, saveToDirectory, saveToFilename, locale); if (sendMessageReturn != null && ServiceUtil.isError(sendMessageReturn)) { try { Map uomiCtx = FastMap.newInstance(); diff --git a/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml b/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml index ff58952a42..c17e991f77 100644 --- a/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml +++ b/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml @@ -4179,20 +4179,8 @@ - - - - - - - - - - - - - - + + @@ -4240,7 +4228,6 @@ - diff --git a/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumServices.xml b/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumServices.xml index da54f84837..bb3ba2457f 100644 --- a/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumServices.xml +++ b/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumServices.xml @@ -1432,12 +1432,7 @@ - - - - - - + @@ -1448,13 +1443,7 @@ - - - - - - - +