svn commit: r950876 - /ofbiz/branches/release09.04/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: r950876 - /ofbiz/branches/release09.04/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java

jleroux@apache.org
Author: jleroux
Date: Thu Jun  3 04:48:45 2010
New Revision: 950876

URL: http://svn.apache.org/viewvc?rev=950876&view=rev
Log:
Oops, forgot a file in r950874 (actually both parts of 950868)

Modified:
    ofbiz/branches/release09.04/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java

Modified: ofbiz/branches/release09.04/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java?rev=950876&r1=950875&r2=950876&view=diff
==============================================================================
--- ofbiz/branches/release09.04/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java (original)
+++ ofbiz/branches/release09.04/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java Thu Jun  3 04:48:45 2010
@@ -578,7 +578,14 @@ public class DataResourceWorker  impleme
     // -------------------------------------
 
     public static String renderDataResourceAsText(GenericDelegator delegator, String dataResourceId, Map templateContext,
-    public static void clearAssociatedRenderCache(Delegator delegator, String dataResourceId) throws GeneralException {
+
+             Locale locale, String targetMimeTypeId, boolean cache) throws GeneralException, IOException {
+        Writer writer = new StringWriter();
+        renderDataResourceAsText(delegator, dataResourceId, writer, templateContext, locale, targetMimeTypeId, cache);
+        return writer.toString();
+    }
+    
+    public static void clearAssociatedRenderCache(GenericDelegator delegator, String dataResourceId) throws GeneralException {
         if (dataResourceId == null) {
             throw new GeneralException("Cannot clear dataResource related cache for a null dataResourceId");
         }
@@ -590,13 +597,7 @@ public class DataResourceWorker  impleme
                 FreeMarkerWorker.clearTemplateFromCache("DataResource:" + dataResourceId);        
             }
         }
-    }
-
-             Locale locale, String targetMimeTypeId, boolean cache) throws GeneralException, IOException {
-        Writer writer = new StringWriter();
-        renderDataResourceAsText(delegator, dataResourceId, writer, templateContext, locale, targetMimeTypeId, cache);
-        return writer.toString();
-    }
+    }    
 
     public static void renderDataResourceAsText(GenericDelegator delegator, String dataResourceId, Appendable out,
             Map templateContext, Locale locale, String targetMimeTypeId, boolean cache) throws GeneralException, IOException {