Author: lektran
Date: Sat Oct 3 05:24:00 2009 New Revision: 821252 URL: http://svn.apache.org/viewvc?rev=821252&view=rev Log: Removed the following deprecated methods from DataResourceWorker: renderDataResourceAsText(GenericDelegator, String, Map, GenericValue, Locale, String) renderDataResourceAsText(GenericDelegator, String, Appendable, Map, GenericValue, Locale, String) renderDataResourceAsTextCache(GenericDelegator, String, Map, GenericValue, Locale, String) renderDataResourceAsTextCache(GenericDelegator, String, Appendable, Map, GenericValue, Locale, String) getDataResourceTextCache(GenericValue, String, Locale, Map, GenericDelegator) writeDataResourceTextCache(GenericValue, String, Locale, Map, GenericDelegator, Appendable) getDataResourceText(GenericValue, String, Locale, Map, GenericDelegator) writeDataResourceText(GenericValue, String, Locale, Map, GenericDelegator, Appendable) 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=821252&r1=821251&r2=821252&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 Sat Oct 3 05:24:00 2009 @@ -726,35 +726,6 @@ } } - - /** @deprecated */ - @Deprecated - public static String renderDataResourceAsText(GenericDelegator delegator, String dataResourceId, Map templateContext, - GenericValue view, Locale locale, String mimeTypeId) throws GeneralException, IOException { - return renderDataResourceAsText(delegator, dataResourceId, templateContext, locale, mimeTypeId, false); - } - - /** @deprecated */ - @Deprecated - public static void renderDataResourceAsText(GenericDelegator delegator, String dataResourceId, Appendable out, - Map templateContext, GenericValue view, Locale locale, String targetMimeTypeId) throws GeneralException, IOException { - renderDataResourceAsText(delegator, dataResourceId, out, templateContext, locale, targetMimeTypeId, false); - } - - /** @deprecated */ - @Deprecated - public static String renderDataResourceAsTextCache(GenericDelegator delegator, String dataResourceId, Map templateContext, - GenericValue view, Locale locale, String mimeTypeId) throws GeneralException, IOException { - return renderDataResourceAsText(delegator, dataResourceId, templateContext, locale, mimeTypeId, true); - } - - /** @deprecated */ - @Deprecated - public static void renderDataResourceAsTextCache(GenericDelegator delegator, String dataResourceId, Appendable out, - Map templateContext, GenericValue view, Locale locale, String targetMimeTypeId) throws GeneralException, IOException { - renderDataResourceAsText(delegator, dataResourceId, out, templateContext, locale, targetMimeTypeId, true); - } - // ---------------------------- // Data Resource Data Gathering // ---------------------------- @@ -860,34 +831,6 @@ } } - /** @deprecated */ - @Deprecated - public static String getDataResourceTextCache(GenericValue dataResource, String mimeTypeId, Locale locale, Map context, - GenericDelegator delegator) throws IOException, GeneralException { - return getDataResourceText(dataResource, mimeTypeId, locale, context, delegator, true); - } - - /** @deprecated */ - @Deprecated - public static void writeDataResourceTextCache(GenericValue dataResource, String mimeTypeId, Locale locale, Map context, - GenericDelegator delegator, Appendable outWriter) throws IOException, GeneralException { - writeDataResourceText(dataResource, mimeTypeId, locale, context, delegator, outWriter, true); - } - - /** @deprecated */ - @Deprecated - public static String getDataResourceText(GenericValue dataResource, String mimeTypeId, Locale locale, Map context, - GenericDelegator delegator) throws IOException, GeneralException { - return getDataResourceText(dataResource, mimeTypeId, locale, context, delegator, false); - } - - /** @deprecated */ - @Deprecated - public static void writeDataResourceText(GenericValue dataResource, String mimeTypeId, Locale locale, Map context, - GenericDelegator delegator, Appendable out) throws IOException, GeneralException { - writeDataResourceText(dataResource, mimeTypeId, locale, context, delegator, out, false); - } - public static void writeText(GenericValue dataResource, String textData, Map<String, Object> context, String targetMimeTypeId, Locale locale, Appendable out) throws GeneralException, IOException { String dataResourceMimeTypeId = dataResource.getString("mimeTypeId"); GenericDelegator delegator = dataResource.getDelegator(); |
Free forum by Nabble | Edit this page |