Author: jleroux
Date: Thu Jun 3 04:48:45 2010
New Revision: 950876
URL:
http://svn.apache.org/viewvc?rev=950876&view=revLog:
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 {