svn commit: r1765036 - in /ofbiz/trunk/applications/party/groovyScripts: communication/ party/ visit/

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1765036 - in /ofbiz/trunk/applications/party/groovyScripts: communication/ party/ visit/

Mridul Pathak-5
Author: mridulpathak
Date: Sat Oct 15 11:40:23 2016
New Revision: 1765036

URL: http://svn.apache.org/viewvc?rev=1765036&view=rev
Log:
Improved: Removed unused imports from groovy files in party component.
(OFBIZ-8465)

Thanks: Gopal Yadav for contribution.

Modified:
    ofbiz/trunk/applications/party/groovyScripts/communication/FindCommEventContactMechs.groovy
    ofbiz/trunk/applications/party/groovyScripts/communication/GetMyCommunicationEventRole.groovy
    ofbiz/trunk/applications/party/groovyScripts/communication/GetPartyEmailFromCommEventInfo.groovy
    ofbiz/trunk/applications/party/groovyScripts/communication/RecentVisitor.groovy
    ofbiz/trunk/applications/party/groovyScripts/party/FindParty.groovy
    ofbiz/trunk/applications/party/groovyScripts/party/GetCurrentCart.groovy
    ofbiz/trunk/applications/party/groovyScripts/party/GetGeoLocation.groovy
    ofbiz/trunk/applications/party/groovyScripts/party/GetLoyaltyPoints.groovy
    ofbiz/trunk/applications/party/groovyScripts/party/GetPaymentMethods.groovy
    ofbiz/trunk/applications/party/groovyScripts/party/PartyFinancialHistory.groovy
    ofbiz/trunk/applications/party/groovyScripts/party/PartyGeoLocation.groovy
    ofbiz/trunk/applications/party/groovyScripts/party/SetRoleVars.groovy
    ofbiz/trunk/applications/party/groovyScripts/party/StatusCondition.groovy
    ofbiz/trunk/applications/party/groovyScripts/party/UnAppliedInvoicesForParty.groovy
    ofbiz/trunk/applications/party/groovyScripts/party/UnAppliedPaymentsForParty.groovy
    ofbiz/trunk/applications/party/groovyScripts/visit/ShowVisits.groovy

Modified: ofbiz/trunk/applications/party/groovyScripts/communication/FindCommEventContactMechs.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/groovyScripts/communication/FindCommEventContactMechs.groovy?rev=1765036&r1=1765035&r2=1765036&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/groovyScripts/communication/FindCommEventContactMechs.groovy (original)
+++ ofbiz/trunk/applications/party/groovyScripts/communication/FindCommEventContactMechs.groovy Sat Oct 15 11:40:23 2016
@@ -25,7 +25,6 @@
  */
 
 import org.apache.ofbiz.base.util.UtilDateTime;
-import org.apache.ofbiz.entity.util.EntityUtil;
 
 partyIdFrom = context.partyIdFrom;
 partyIdTo = context.partyIdTo;

Modified: ofbiz/trunk/applications/party/groovyScripts/communication/GetMyCommunicationEventRole.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/groovyScripts/communication/GetMyCommunicationEventRole.groovy?rev=1765036&r1=1765035&r2=1765036&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/groovyScripts/communication/GetMyCommunicationEventRole.groovy (original)
+++ ofbiz/trunk/applications/party/groovyScripts/communication/GetMyCommunicationEventRole.groovy Sat Oct 15 11:40:23 2016
@@ -16,9 +16,6 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-
-import org.apache.ofbiz.base.util.*;
-import org.apache.ofbiz.entity.util.EntityUtil;
 import org.apache.ofbiz.base.component.ComponentConfig;
 
 if (parameters.communicationEventId) {

Modified: ofbiz/trunk/applications/party/groovyScripts/communication/GetPartyEmailFromCommEventInfo.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/groovyScripts/communication/GetPartyEmailFromCommEventInfo.groovy?rev=1765036&r1=1765035&r2=1765036&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/groovyScripts/communication/GetPartyEmailFromCommEventInfo.groovy (original)
+++ ofbiz/trunk/applications/party/groovyScripts/communication/GetPartyEmailFromCommEventInfo.groovy Sat Oct 15 11:40:23 2016
@@ -17,9 +17,6 @@
  * under the License.
  */
 
-import org.apache.ofbiz.base.util.*;
-import org.apache.ofbiz.entity.util.EntityUtil;
-
 communicationEvent = from("CommunicationEvent").where("communicationEventId", parameters.communicationEventId).cache(true).queryOne();
 
 if (!communicationEvent.note) return;

Modified: ofbiz/trunk/applications/party/groovyScripts/communication/RecentVisitor.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/groovyScripts/communication/RecentVisitor.groovy?rev=1765036&r1=1765035&r2=1765036&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/groovyScripts/communication/RecentVisitor.groovy (original)
+++ ofbiz/trunk/applications/party/groovyScripts/communication/RecentVisitor.groovy Sat Oct 15 11:40:23 2016
@@ -17,9 +17,10 @@
  * under the License.
  */
 
-import org.apache.ofbiz.entity.condition.*;
-import org.apache.ofbiz.entity.util.*
-import org.apache.ofbiz.base.util.*;
+import org.apache.ofbiz.entity.condition.EntityCondition;
+import org.apache.ofbiz.entity.condition.EntityOperator;
+import org.apache.ofbiz.base.util.UtilDateTime;
+import org.apache.ofbiz.entity.util.EntityUtil;
 
 lastDate = UtilDateTime.addDaysToTimestamp(UtilDateTime.nowTimestamp(), -21); // should be there the last 3 weeks.
 visits = select('partyId')

Modified: ofbiz/trunk/applications/party/groovyScripts/party/FindParty.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/groovyScripts/party/FindParty.groovy?rev=1765036&r1=1765035&r2=1765036&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/groovyScripts/party/FindParty.groovy (original)
+++ ofbiz/trunk/applications/party/groovyScripts/party/FindParty.groovy Sat Oct 15 11:40:23 2016
@@ -16,7 +16,6 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-import org.apache.ofbiz.base.util.*;
 
 if (!context.extInfo || context.extInfo == 'N') {
     if (parameters.partyIdentificationTypeId || parameters.idValue) context.extInfo='I';

Modified: ofbiz/trunk/applications/party/groovyScripts/party/GetCurrentCart.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/groovyScripts/party/GetCurrentCart.groovy?rev=1765036&r1=1765035&r2=1765036&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/groovyScripts/party/GetCurrentCart.groovy (original)
+++ ofbiz/trunk/applications/party/groovyScripts/party/GetCurrentCart.groovy Sat Oct 15 11:40:23 2016
@@ -17,8 +17,6 @@
  * under the License.
  */
 
-import org.apache.ofbiz.entity.util.EntityUtil;
-
 partyId = partyId ?: parameters.partyId;
 
 savedCart = from("ShoppingList").where("partyId", partyId, "shoppingListTypeId", "SLT_SPEC_PURP" , "listName", "auto-save").queryFirst();

Modified: ofbiz/trunk/applications/party/groovyScripts/party/GetGeoLocation.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/groovyScripts/party/GetGeoLocation.groovy?rev=1765036&r1=1765035&r2=1765036&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/groovyScripts/party/GetGeoLocation.groovy (original)
+++ ofbiz/trunk/applications/party/groovyScripts/party/GetGeoLocation.groovy Sat Oct 15 11:40:23 2016
@@ -17,12 +17,7 @@
  * under the License.
  */
 
-import org.apache.ofbiz.entity.*;
-import org.apache.ofbiz.entity.util.EntityUtil;
-import org.apache.ofbiz.base.util.*;
-import org.apache.ofbiz.base.util.string.*;
-import org.apache.ofbiz.party.contact.ContactHelper;
-import org.apache.ofbiz.common.geo.*;
+import org.apache.ofbiz.common.geo.GeoWorker;
 
 if (partyId) {
     context.partyId = partyId;

Modified: ofbiz/trunk/applications/party/groovyScripts/party/GetLoyaltyPoints.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/groovyScripts/party/GetLoyaltyPoints.groovy?rev=1765036&r1=1765035&r2=1765036&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/groovyScripts/party/GetLoyaltyPoints.groovy (original)
+++ ofbiz/trunk/applications/party/groovyScripts/party/GetLoyaltyPoints.groovy Sat Oct 15 11:40:23 2016
@@ -17,8 +17,6 @@
  * under the License.
  */
 
-import org.apache.ofbiz.base.util.*;
-
 partyId = parameters.partyId ? parameters.partyId : userLogin.partyId ;
 
 if (partyId) {

Modified: ofbiz/trunk/applications/party/groovyScripts/party/GetPaymentMethods.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/groovyScripts/party/GetPaymentMethods.groovy?rev=1765036&r1=1765035&r2=1765036&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/groovyScripts/party/GetPaymentMethods.groovy (original)
+++ ofbiz/trunk/applications/party/groovyScripts/party/GetPaymentMethods.groovy Sat Oct 15 11:40:23 2016
@@ -19,7 +19,6 @@
 
 import org.apache.ofbiz.accounting.payment.PaymentWorker;
 import org.apache.ofbiz.accounting.payment.BillingAccountWorker;
-import org.apache.ofbiz.entity.util.EntityUtil;
 
 partyId = parameters.partyId ?: userLogin.partyId;
 showOld = "true".equals(parameters.SHOW_OLD);

Modified: ofbiz/trunk/applications/party/groovyScripts/party/PartyFinancialHistory.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/groovyScripts/party/PartyFinancialHistory.groovy?rev=1765036&r1=1765035&r2=1765036&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/groovyScripts/party/PartyFinancialHistory.groovy (original)
+++ ofbiz/trunk/applications/party/groovyScripts/party/PartyFinancialHistory.groovy Sat Oct 15 11:40:23 2016
@@ -16,15 +16,13 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-import org.apache.ofbiz.entity.*;
-import org.apache.ofbiz.base.util.*;
-import org.apache.ofbiz.common.*;
-import org.apache.ofbiz.webapp.control.*;
-import org.apache.ofbiz.accounting.invoice.*;
-import org.apache.ofbiz.accounting.payment.*;
-import org.apache.ofbiz.entity.*;
-import org.apache.ofbiz.entity.condition.*;
-import org.apache.ofbiz.entity.util.*;
+
+import org.apache.ofbiz.base.util.Debug;
+import org.apache.ofbiz.accounting.invoice.InvoiceWorker;
+import org.apache.ofbiz.accounting.payment.PaymentWorker;
+import org.apache.ofbiz.entity.condition.EntityCondition;
+import org.apache.ofbiz.entity.condition.EntityOperator;
+import org.apache.ofbiz.entity.util.EntityTypeUtil;
 
 Boolean actualCurrency = new Boolean(context.actualCurrency);
 if (actualCurrency == null) {

Modified: ofbiz/trunk/applications/party/groovyScripts/party/PartyGeoLocation.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/groovyScripts/party/PartyGeoLocation.groovy?rev=1765036&r1=1765035&r2=1765036&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/groovyScripts/party/PartyGeoLocation.groovy (original)
+++ ofbiz/trunk/applications/party/groovyScripts/party/PartyGeoLocation.groovy Sat Oct 15 11:40:23 2016
@@ -17,8 +17,10 @@
  * under the License.
  */
 
-import org.apache.ofbiz.common.geo.*;
-import org.apache.ofbiz.base.util.*;
+import org.apache.ofbiz.common.geo.GeoWorker;
+import org.apache.ofbiz.base.util.UtilMisc;
+import org.apache.ofbiz.base.util.UtilValidate;
+import org.apache.ofbiz.base.util.UtilProperties;
 
 uiLabelMap = UtilProperties.getResourceBundleMap("PartyUiLabels", locale);
 uiLabelMap.addBottomResourceBundle("CommonUiLabels");

Modified: ofbiz/trunk/applications/party/groovyScripts/party/SetRoleVars.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/groovyScripts/party/SetRoleVars.groovy?rev=1765036&r1=1765035&r2=1765036&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/groovyScripts/party/SetRoleVars.groovy (original)
+++ ofbiz/trunk/applications/party/groovyScripts/party/SetRoleVars.groovy Sat Oct 15 11:40:23 2016
@@ -16,8 +16,6 @@
  * specific language governing permissions and limitations
  * under the License.
  */
- import org.apache.ofbiz.entity.*;
- import org.apache.ofbiz.entity.util.EntityUtil;
 
 roleTypeId = parameters.roleTypeId;
 roleTypeAndParty = from("RoleTypeAndParty").where("partyId", parameters.partyId, "roleTypeId", roleTypeId).queryFirst();

Modified: ofbiz/trunk/applications/party/groovyScripts/party/StatusCondition.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/groovyScripts/party/StatusCondition.groovy?rev=1765036&r1=1765035&r2=1765036&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/groovyScripts/party/StatusCondition.groovy (original)
+++ ofbiz/trunk/applications/party/groovyScripts/party/StatusCondition.groovy Sat Oct 15 11:40:23 2016
@@ -17,7 +17,8 @@
  * under the License.
  */
 
-import org.apache.ofbiz.entity.condition.*;
+import org.apache.ofbiz.entity.condition.EntityCondition;
+import org.apache.ofbiz.entity.condition.EntityOperator;
 
 exprList = [EntityCondition.makeCondition("statusId", EntityOperator.NOT_EQUAL, "PARTY_DISABLED"),
             EntityCondition.makeCondition("statusId", EntityOperator.NOT_EQUAL, null)];

Modified: ofbiz/trunk/applications/party/groovyScripts/party/UnAppliedInvoicesForParty.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/groovyScripts/party/UnAppliedInvoicesForParty.groovy?rev=1765036&r1=1765035&r2=1765036&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/groovyScripts/party/UnAppliedInvoicesForParty.groovy (original)
+++ ofbiz/trunk/applications/party/groovyScripts/party/UnAppliedInvoicesForParty.groovy Sat Oct 15 11:40:23 2016
@@ -16,15 +16,9 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-import org.apache.ofbiz.entity.*;
-import org.apache.ofbiz.base.util.Debug;
-import org.apache.ofbiz.common.*;
-import org.apache.ofbiz.webapp.control.*;
-import org.apache.ofbiz.accounting.invoice.*;
-import org.apache.ofbiz.accounting.payment.*;
-import org.apache.ofbiz.entity.*;
-import org.apache.ofbiz.entity.condition.*;
-import org.apache.ofbiz.entity.util.*;
+import org.apache.ofbiz.accounting.invoice.InvoiceWorker;
+import org.apache.ofbiz.entity.condition.EntityCondition;
+import org.apache.ofbiz.entity.condition.EntityOperator;
 
 Boolean actualCurrency = new Boolean(context.actualCurrency);
 if (actualCurrency == null) {

Modified: ofbiz/trunk/applications/party/groovyScripts/party/UnAppliedPaymentsForParty.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/groovyScripts/party/UnAppliedPaymentsForParty.groovy?rev=1765036&r1=1765035&r2=1765036&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/groovyScripts/party/UnAppliedPaymentsForParty.groovy (original)
+++ ofbiz/trunk/applications/party/groovyScripts/party/UnAppliedPaymentsForParty.groovy Sat Oct 15 11:40:23 2016
@@ -16,15 +16,10 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-import org.apache.ofbiz.entity.*;
-import org.apache.ofbiz.base.util.Debug;
-import org.apache.ofbiz.common.*;
-import org.apache.ofbiz.webapp.control.*;
-import org.apache.ofbiz.accounting.invoice.*;
-import org.apache.ofbiz.accounting.payment.*;
-import org.apache.ofbiz.entity.*;
-import org.apache.ofbiz.entity.condition.*;
-import org.apache.ofbiz.entity.util.*;
+import org.apache.ofbiz.accounting.payment.PaymentWorker;
+import org.apache.ofbiz.entity.util.EntityFindOptions;
+import org.apache.ofbiz.entity.condition.EntityCondition;
+import org.apache.ofbiz.entity.condition.EntityOperator;
 
 Boolean actualCurrency = new Boolean(context.actualCurrency);
 if (actualCurrency == null) {

Modified: ofbiz/trunk/applications/party/groovyScripts/visit/ShowVisits.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/groovyScripts/visit/ShowVisits.groovy?rev=1765036&r1=1765035&r2=1765036&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/groovyScripts/visit/ShowVisits.groovy (original)
+++ ofbiz/trunk/applications/party/groovyScripts/visit/ShowVisits.groovy Sat Oct 15 11:40:23 2016
@@ -17,10 +17,8 @@
  * under the License.
  */
 
-import org.apache.ofbiz.entity.util.EntityFindOptions;
-import org.apache.ofbiz.entity.condition.*;
 import org.apache.ofbiz.entity.transaction.TransactionUtil;
-import org.apache.ofbiz.base.util.*
+import org.apache.ofbiz.base.util.Debug;
 import org.apache.ofbiz.entity.util.EntityUtilProperties;
 
 module = "showvisits.groovy";