Java Doc for DataResourceWorker.java in  » ERP-CRM-Financial » ofbiz » org » ofbiz » content » data » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » ofbiz » org.ofbiz.content.data 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ofbiz.content.data.DataResourceWorker

DataResourceWorker
public class DataResourceWorker (Code)
DataResourceWorker Class


Field Summary
final public static  Stringerr_resource
    
final public static  Stringmodule
    


Method Summary
public static  byte[]acquireImage(GenericDelegator delegator, String dataResourceId)
     Gets image data from ImageDataResource and returns it as a byte array.
public static  byte[]acquireImage(GenericDelegator delegator, GenericValue dataResource)
    
public static  voidbuildList(HashMap nd, List lst, int depth)
     Takes a DataCategory structure and builds a list of maps, one value (id) is the dataCategoryId value and the other is an indented string suitable for use in a drop-down pick list.
public static  StringbuildRequestPrefix(GenericDelegator delegator, Locale locale, String webSiteId, String https)
    
public static  StringcallDataResourcePermissionCheck(GenericDelegator delegator, LocalDispatcher dispatcher, Map context)
     callDataResourcePermissionCheck Formats data for a call to the checkContentPermission service.
public static  MapcallDataResourcePermissionCheckResult(GenericDelegator delegator, LocalDispatcher dispatcher, Map context)
     callDataResourcePermissionCheck Formats data for a call to the checkContentPermission service.
public static  ByteWrappergetContentAsByteWrapper(GenericDelegator delegator, String dataResourceId, String https, String webSiteId, Locale locale, String rootDir)
    
public static  FilegetContentFile(String dataResourceTypeId, String objectInfo, String contextRoot)
    
public static  voidgetDataCategoryAncestry(GenericDelegator delegator, String dataCategoryId, List categoryTypeIds)
     Finds the parents of DataCategory entity and puts them in a list, the start entity at the top.
public static  StringgetDataCategoryMap(GenericDelegator delegator, int depth, Map categoryNode, List categoryTypeIds, boolean getAll)
     Traverses the DataCategory parent/child structure and put it in categoryNode.
public static  StringgetDataResourceContentUploadPath()
    
public static  StringgetDataResourceMimeType(GenericDelegator delegator, String dataResourceId, GenericValue view)
    
public static  MapgetDataResourceStream(GenericValue dataResource, String https, String webSiteId, Locale locale, String contextRoot, boolean cache)
    
public static  StringgetDataResourceText(GenericValue dataResource, String mimeTypeId, Locale locale, Map context, GenericDelegator delegator, boolean cache)
    
public static  StringgetDataResourceText(GenericValue dataResource, String mimeTypeId, Locale locale, Map context, GenericDelegator delegator)
    
public static  StringgetDataResourceTextCache(GenericValue dataResource, String mimeTypeId, Locale locale, Map context, GenericDelegator delegator)
    
public static  StringgetImageType(GenericDelegator delegator, String dataResourceId)
     Returns the image type.
public static  StringgetImageType(GenericDelegator delegator, GenericValue dataResource)
    
public static  StringgetMimeType(GenericValue dataResource)
    
public static  StringgetMimeTypeFromImageFileName(String imageFileName)
    
public static  StringrenderDataResourceAsText(GenericDelegator delegator, String dataResourceId, Map templateContext, Locale locale, String targetMimeTypeId, boolean cache)
    
public static  voidrenderDataResourceAsText(GenericDelegator delegator, String dataResourceId, Writer out, Map templateContext, Locale locale, String targetMimeTypeId, boolean cache)
    
public static  StringrenderDataResourceAsText(GenericDelegator delegator, String dataResourceId, Map templateContext, GenericValue view, Locale locale, String mimeTypeId)
    
public static  voidrenderDataResourceAsText(GenericDelegator delegator, String dataResourceId, Writer out, Map templateContext, GenericValue view, Locale locale, String targetMimeTypeId)
    
public static  StringrenderDataResourceAsTextCache(GenericDelegator delegator, String dataResourceId, Map templateContext, GenericValue view, Locale locale, String mimeTypeId)
    
public static  voidrenderDataResourceAsTextCache(GenericDelegator delegator, String dataResourceId, Writer out, Map templateContext, GenericValue view, Locale locale, String targetMimeTypeId)
    
public static  voidrenderFile(String dataResourceTypeId, String objectInfo, String rootDir, Writer out)
    
public static  StringrenderMimeTypeTemplate(GenericValue mimeTypeTemplate, Map context)
    
public static  voidstreamDataResource(OutputStream os, GenericDelegator delegator, String dataResourceId, String https, String webSiteId, Locale locale, String rootDir)
    
public static  StringuploadAndStoreImage(HttpServletRequest request, String idField, String uploadField)
     Uploads image data from a form and stores it in ImageDataResource.
public static  voidwriteDataResourceText(GenericValue dataResource, String mimeTypeId, Locale locale, Map templateContext, GenericDelegator delegator, Writer out, boolean cache)
    
public static  voidwriteDataResourceText(GenericValue dataResource, String mimeTypeId, Locale locale, Map context, GenericDelegator delegator, Writer out)
    
public static  voidwriteDataResourceTextCache(GenericValue dataResource, String mimeTypeId, Locale locale, Map context, GenericDelegator delegator, Writer outWriter)
    
public static  voidwriteText(GenericValue dataResource, String textData, Map context, String targetMimeTypeId, Locale locale, Writer out)
    

Field Detail
err_resource
final public static String err_resource(Code)



module
final public static String module(Code)





Method Detail
acquireImage
public static byte[] acquireImage(GenericDelegator delegator, String dataResourceId) throws GenericEntityException(Code)
Gets image data from ImageDataResource and returns it as a byte array.



acquireImage
public static byte[] acquireImage(GenericDelegator delegator, GenericValue dataResource) throws GenericEntityException(Code)



buildList
public static void buildList(HashMap nd, List lst, int depth)(Code)
Takes a DataCategory structure and builds a list of maps, one value (id) is the dataCategoryId value and the other is an indented string suitable for use in a drop-down pick list.



buildRequestPrefix
public static String buildRequestPrefix(GenericDelegator delegator, Locale locale, String webSiteId, String https)(Code)



callDataResourcePermissionCheck
public static String callDataResourcePermissionCheck(GenericDelegator delegator, LocalDispatcher dispatcher, Map context)(Code)
callDataResourcePermissionCheck Formats data for a call to the checkContentPermission service.



callDataResourcePermissionCheckResult
public static Map callDataResourcePermissionCheckResult(GenericDelegator delegator, LocalDispatcher dispatcher, Map context)(Code)
callDataResourcePermissionCheck Formats data for a call to the checkContentPermission service.



getContentAsByteWrapper
public static ByteWrapper getContentAsByteWrapper(GenericDelegator delegator, String dataResourceId, String https, String webSiteId, Locale locale, String rootDir) throws IOException, GeneralException(Code)



getContentFile
public static File getContentFile(String dataResourceTypeId, String objectInfo, String contextRoot) throws GeneralException, FileNotFoundException(Code)



getDataCategoryAncestry
public static void getDataCategoryAncestry(GenericDelegator delegator, String dataCategoryId, List categoryTypeIds) throws GenericEntityException(Code)
Finds the parents of DataCategory entity and puts them in a list, the start entity at the top.



getDataCategoryMap
public static String getDataCategoryMap(GenericDelegator delegator, int depth, Map categoryNode, List categoryTypeIds, boolean getAll) throws GenericEntityException(Code)
Traverses the DataCategory parent/child structure and put it in categoryNode. Returns non-null error string if there is an error.
Parameters:
  depth - The place on the categoryTypesIds to start collecting.
Parameters:
  getAll - Indicates that all descendants are to be gotten. Used as "true" to populate anindented select list.



getDataResourceContentUploadPath
public static String getDataResourceContentUploadPath()(Code)



getDataResourceMimeType
public static String getDataResourceMimeType(GenericDelegator delegator, String dataResourceId, GenericValue view) throws GenericEntityException(Code)



getDataResourceStream
public static Map getDataResourceStream(GenericValue dataResource, String https, String webSiteId, Locale locale, String contextRoot, boolean cache) throws IOException, GeneralException(Code)
getDataResourceStream - gets an InputStream and Content-Length of a DataResource
Parameters:
  dataResource -
Parameters:
  https -
Parameters:
  webSiteId -
Parameters:
  locale -
Parameters:
  contextRoot - Map containing 'stream': the InputStream and 'length' a Long containing the content-length
throws:
  IOException -
throws:
  GeneralException -



getDataResourceText
public static String getDataResourceText(GenericValue dataResource, String mimeTypeId, Locale locale, Map context, GenericDelegator delegator, boolean cache) throws IOException, GeneralException(Code)



getDataResourceText
public static String getDataResourceText(GenericValue dataResource, String mimeTypeId, Locale locale, Map context, GenericDelegator delegator) throws IOException, GeneralException(Code)



getDataResourceTextCache
public static String getDataResourceTextCache(GenericValue dataResource, String mimeTypeId, Locale locale, Map context, GenericDelegator delegator) throws IOException, GeneralException(Code)



getImageType
public static String getImageType(GenericDelegator delegator, String dataResourceId) throws GenericEntityException(Code)
Returns the image type.



getImageType
public static String getImageType(GenericDelegator delegator, GenericValue dataResource)(Code)



getMimeType
public static String getMimeType(GenericValue dataResource)(Code)



getMimeTypeFromImageFileName
public static String getMimeTypeFromImageFileName(String imageFileName)(Code)



renderDataResourceAsText
public static String renderDataResourceAsText(GenericDelegator delegator, String dataResourceId, Map templateContext, Locale locale, String targetMimeTypeId, boolean cache) throws GeneralException, IOException(Code)



renderDataResourceAsText
public static void renderDataResourceAsText(GenericDelegator delegator, String dataResourceId, Writer out, Map templateContext, Locale locale, String targetMimeTypeId, boolean cache) throws GeneralException, IOException(Code)



renderDataResourceAsText
public static String renderDataResourceAsText(GenericDelegator delegator, String dataResourceId, Map templateContext, GenericValue view, Locale locale, String mimeTypeId) throws GeneralException, IOException(Code)



renderDataResourceAsText
public static void renderDataResourceAsText(GenericDelegator delegator, String dataResourceId, Writer out, Map templateContext, GenericValue view, Locale locale, String targetMimeTypeId) throws GeneralException, IOException(Code)



renderDataResourceAsTextCache
public static String renderDataResourceAsTextCache(GenericDelegator delegator, String dataResourceId, Map templateContext, GenericValue view, Locale locale, String mimeTypeId) throws GeneralException, IOException(Code)



renderDataResourceAsTextCache
public static void renderDataResourceAsTextCache(GenericDelegator delegator, String dataResourceId, Writer out, Map templateContext, GenericValue view, Locale locale, String targetMimeTypeId) throws GeneralException, IOException(Code)



renderFile
public static void renderFile(String dataResourceTypeId, String objectInfo, String rootDir, Writer out) throws GeneralException, IOException(Code)



renderMimeTypeTemplate
public static String renderMimeTypeTemplate(GenericValue mimeTypeTemplate, Map context) throws GeneralException, IOException(Code)



streamDataResource
public static void streamDataResource(OutputStream os, GenericDelegator delegator, String dataResourceId, String https, String webSiteId, Locale locale, String rootDir) throws IOException, GeneralException(Code)



uploadAndStoreImage
public static String uploadAndStoreImage(HttpServletRequest request, String idField, String uploadField)(Code)
Uploads image data from a form and stores it in ImageDataResource. Expects key data in a field identitified by the "idField" value and the binary data to be in a field id'd by uploadField.



writeDataResourceText
public static void writeDataResourceText(GenericValue dataResource, String mimeTypeId, Locale locale, Map templateContext, GenericDelegator delegator, Writer out, boolean cache) throws IOException, GeneralException(Code)



writeDataResourceText
public static void writeDataResourceText(GenericValue dataResource, String mimeTypeId, Locale locale, Map context, GenericDelegator delegator, Writer out) throws IOException, GeneralException(Code)



writeDataResourceTextCache
public static void writeDataResourceTextCache(GenericValue dataResource, String mimeTypeId, Locale locale, Map context, GenericDelegator delegator, Writer outWriter) throws IOException, GeneralException(Code)



writeText
public static void writeText(GenericValue dataResource, String textData, Map context, String targetMimeTypeId, Locale locale, Writer out) throws GeneralException, IOException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.