You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2011/01/20 22:23:36 UTC
svn commit: r1061521 - in
/ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore:
EbayAccount.java EbayStoreAutoPrefEvents.java EbayStoreInventoryServices.java
Author: mrisaliti
Date: Thu Jan 20 21:23:36 2011
New Revision: 1061521
URL: http://svn.apache.org/viewvc?rev=1061521&view=rev
Log:
Remove some unused local variable and unused import in ebaystore component (OFBIZ-4102)
Modified:
ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayAccount.java
ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreAutoPrefEvents.java
ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreInventoryServices.java
Modified: ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayAccount.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayAccount.java?rev=1061521&r1=1061520&r2=1061521&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayAccount.java (original)
+++ ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayAccount.java Thu Jan 20 21:23:36 2011
@@ -20,30 +20,23 @@ package org.ofbiz.ebaystore;
import java.util.Locale;
import java.util.Map;
+
import javolution.util.FastMap;
import org.ofbiz.entity.Delegator;
-import org.ofbiz.entity.GenericValue;
import org.ofbiz.service.DispatchContext;
-import org.ofbiz.service.LocalDispatcher;
import org.ofbiz.service.ServiceUtil;
import com.ebay.sdk.ApiContext;
-import com.ebay.sdk.call.*;
+import com.ebay.sdk.call.GetUserCall;
import com.ebay.soap.eBLBaseComponents.AddressType;
import com.ebay.soap.eBLBaseComponents.DetailLevelCodeType;
import com.ebay.soap.eBLBaseComponents.UserType;
public class EbayAccount {
- private static final String resource = "EbayUiLabels";
- private static final String configFileName = "ebayExport.properties";
- private static final String module = EbayAccount.class.getName();
-
+
public static Map<String, Object> getEbayUser(DispatchContext dctx, Map<String, ? extends Object> context) {
Map<String, Object>result = FastMap.newInstance();
- String errorMsg = null;
- LocalDispatcher dispatcher = dctx.getDispatcher();
- GenericValue userLogin = (GenericValue) context.get("userLogin");
Delegator delegator = dctx.getDelegator();
Locale locale = (Locale) context.get("locale");
String productStoreId = (String) context.get("productStoreId");
@@ -66,7 +59,6 @@ public class EbayAccount {
Map<String, Object>registrationAddress = FastMap.newInstance();
try {
- Map<String, Object> infoMap = FastMap.newInstance();
ApiContext apiContext = EbayStoreHelper.getApiContext(productStoreId, locale, delegator);
GetUserCall getUserCall = new GetUserCall(apiContext);
DetailLevelCodeType[] detailLevel = {DetailLevelCodeType.RETURN_ALL};
Modified: ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreAutoPrefEvents.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreAutoPrefEvents.java?rev=1061521&r1=1061520&r2=1061521&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreAutoPrefEvents.java (original)
+++ ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreAutoPrefEvents.java Thu Jan 20 21:23:36 2011
@@ -102,7 +102,7 @@ public class EbayStoreAutoPrefEvents{
bestOfferCondition.put("condition10", condition10);
bestOfferCondition.put("condition11", condition11);
try {
- Map result = dispatcher.runSync("ebayBestOfferPrefCond", bestOfferCondition);
+ dispatcher.runSync("ebayBestOfferPrefCond", bestOfferCondition);
} catch (GenericServiceException e) {
Debug.logError(e, module);
return "error";
Modified: ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreInventoryServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreInventoryServices.java?rev=1061521&r1=1061520&r2=1061521&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreInventoryServices.java (original)
+++ ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreInventoryServices.java Thu Jan 20 21:23:36 2011
@@ -56,7 +56,6 @@ import com.ebay.soap.eBLBaseComponents.S
import com.ebay.soap.eBLBaseComponents.SellingManagerProductType;
public class EbayStoreInventoryServices {
- private static final String resource = "EbayUiLabels";
private static final String module = EbayStoreInventoryServices.class.getName();
private static final String defaultFolderName = "OFBizProducts";
private static String folderId = null;