svn commit: r944175 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java

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

svn commit: r944175 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java

lektran
Author: lektran
Date: Fri May 14 09:46:18 2010
New Revision: 944175

URL: http://svn.apache.org/viewvc?rev=944175&view=rev
Log:
The following deprecated classes, constructors or methods have been removed:
org.ofbiz.content.data.DataResourceWorker.getImageType(Delegator, String)
- Use getMimeType(GenericValue) instead

Modified:
    ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java

Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java?rev=944175&r1=944174&r2=944175&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java Fri May 14 09:46:18 2010
@@ -348,17 +348,6 @@ public class DataResourceWorker  impleme
         return b;
     }
 
-    /**
-     * Returns the image type.
-     * @deprecated Use getMimeType(GenericValue) instead
-     */
-    @Deprecated
-    public static String getImageType(Delegator delegator, String dataResourceId) throws GenericEntityException {
-        GenericValue dataResource = delegator.findByPrimaryKey("DataResource", UtilMisc.toMap("dataResourceId", dataResourceId));
-        String imageType = getMimeType(dataResource);
-        return imageType;
-    }
-
     public static String getMimeType(GenericValue dataResource) {
         String mimeTypeId = null;
         if (dataResource != null) {