You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2009/10/03 07:49:45 UTC

svn commit: r821253 - /ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechWorker.java

Author: lektran
Date: Sat Oct  3 05:49:45 2009
New Revision: 821253

URL: http://svn.apache.org/viewvc?rev=821253&view=rev
Log:
Removed the following deprecated methods from ContactMechWorker:
getPartyContactMechValueMaps(PageContext, String, boolean, String)
getOrderContactMechValueMaps(PageContext, String, String)

Modified:
    ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechWorker.java

Modified: ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechWorker.java?rev=821253&r1=821252&r2=821253&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechWorker.java (original)
+++ ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechWorker.java Sat Oct  3 05:49:45 2009
@@ -25,8 +25,6 @@
 import java.util.Map;
 
 import javax.servlet.ServletRequest;
-import javax.servlet.jsp.PageContext;
-
 import javolution.util.FastList;
 import javolution.util.FastMap;
 
@@ -47,16 +45,6 @@
 
     public static final String module = ContactMechWorker.class.getName();
 
-    /** @deprecated */
-    @Deprecated
-    public static void getPartyContactMechValueMaps(PageContext pageContext, String partyId, boolean showOld, String partyContactMechValueMapsAttr) {
-        GenericDelegator delegator = (GenericDelegator) pageContext.getRequest().getAttribute("delegator");
-        List<Map<String, Object>> partyContactMechValueMaps = getPartyContactMechValueMaps(delegator, partyId, showOld);
-        if (partyContactMechValueMaps.size() > 0) {
-            pageContext.setAttribute(partyContactMechValueMapsAttr, partyContactMechValueMaps);
-        }
-    }
-
     public static List<Map<String, Object>> getPartyContactMechValueMaps(GenericDelegator delegator, String partyId, boolean showOld) {
        return getPartyContactMechValueMaps(delegator, partyId, showOld, null);
     }
@@ -204,15 +192,6 @@
     }
 
 
-    /** @deprecated */
-    @Deprecated
-    public static void getOrderContactMechValueMaps(PageContext pageContext, String orderId, String orderContactMechValueMapsAttr) {
-        GenericDelegator delegator = (GenericDelegator) pageContext.getRequest().getAttribute("delegator");
-        List<Map<String, GenericValue>> maps = getOrderContactMechValueMaps(delegator, orderId);
-        if (UtilValidate.isNotEmpty(maps)) {
-            pageContext.setAttribute(orderContactMechValueMapsAttr, maps);
-        }
-    }
     public static List<Map<String, GenericValue>> getOrderContactMechValueMaps(GenericDelegator delegator, String orderId) {
         List<Map<String, GenericValue>> orderContactMechValueMaps = FastList.newInstance();