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/04 21:34:19 UTC
svn commit: r1055175 -
/ofbiz/trunk/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java
Author: mrisaliti
Date: Tue Jan 4 20:34:18 2011
New Revision: 1055175
URL: http://svn.apache.org/viewvc?rev=1055175&view=rev
Log:
Replace tabs to spaces
Modified:
ofbiz/trunk/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java
Modified: ofbiz/trunk/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java?rev=1055175&r1=1055174&r2=1055175&view=diff
==============================================================================
--- ofbiz/trunk/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java (original)
+++ ofbiz/trunk/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java Tue Jan 4 20:34:18 2011
@@ -71,12 +71,12 @@ import org.ofbiz.service.ServiceUtil;
public class VCard {
public static final String module = VCard.class.getName();
- public static final String resourceError = "MarketingUiLabels";
+ public static final String resourceError = "MarketingUiLabels";
public static Map<String, Object> importVCard(DispatchContext dctx, Map<String, ? extends Object> context) {
LocalDispatcher dispatcher = dctx.getDispatcher();
Delegator delegator = dctx.getDelegator();
- Locale locale = (Locale) context.get("locale");
+ Locale locale = (Locale) context.get("locale");
Map<String, Object> result = ServiceUtil.returnSuccess();
Address workAddress = null;
String email = null;
@@ -207,11 +207,11 @@ public class VCard {
}
} catch (GenericEntityException e) {
Debug.logError(e, module);
- return ServiceUtil.returnError(UtilProperties.getMessage(resourceError,
+ return ServiceUtil.returnError(UtilProperties.getMessage(resourceError,
"SfaImportVCardError", UtilMisc.toMap("errorString", e.getMessage()), locale));
} catch (GenericServiceException e) {
Debug.logError(e, module);
- return ServiceUtil.returnError(UtilProperties.getMessage(resourceError,
+ return ServiceUtil.returnError(UtilProperties.getMessage(resourceError,
"SfaImportVCardError", UtilMisc.toMap("errorString", e.getMessage()), locale));
}
return result;
@@ -220,7 +220,7 @@ public class VCard {
public static Map<String, Object> exportVCard(DispatchContext dctx, Map<String, ? extends Object> context) {
Delegator delegator = dctx.getDelegator();
String partyId = (String) context.get("partyId");
- Locale locale = (Locale) context.get("locale");
+ Locale locale = (Locale) context.get("locale");
File file = null;
try {
ContactModelFactory cmf = Pim.getContactModelFactory();
@@ -280,14 +280,14 @@ public class VCard {
outputStream.close();
} catch (FileNotFoundException e) {
Debug.logError(e, module);
- return ServiceUtil.returnError(UtilProperties.getMessage(resourceError,
+ return ServiceUtil.returnError(UtilProperties.getMessage(resourceError,
"SfaExportVCardErrorOpeningFile", UtilMisc.toMap("errorString", file.getAbsolutePath()), locale));
} catch (IOException e) {
Debug.logError(e, module);
return ServiceUtil.returnError(UtilProperties.getMessage(resourceError,
"SfaExportVCardErrorWritingFile", UtilMisc.toMap("errorString", file.getAbsolutePath()), locale));
} catch (GenericEntityException e) {
- return ServiceUtil.returnError(UtilProperties.getMessage(resourceError,
+ return ServiceUtil.returnError(UtilProperties.getMessage(resourceError,
"SfaExportVCardError", UtilMisc.toMap("errorString", e.getMessage()), locale));
}
return ServiceUtil.returnSuccess();