Java Doc for IContentItem.java in  » Report » pentaho-report » org » pentaho » core » repository » 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 » Report » pentaho report » org.pentaho.core.repository 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.pentaho.core.repository.IContentItem

All known Subclasses:   org.pentaho.repository.content.ContentItem,  org.pentaho.core.services.SimpleContentItem,  org.pentaho.core.services.HttpContentItem,
IContentItem
public interface IContentItem extends MimeTypeListener(Code)
Construction of a new ContentItem is managed by ContentLocation.newContentItem. This is because there is a parent-child relationship between ContentLocations and content items. To avoid having a content item reach back into it's parent to add itself to the children list, you instead call the content location to construct a content item. A content item cannot exist without a content location.
See Also:   ContentLocation
author:
   mbatchel


Field Summary
final public static  intWRITEMODE_APPEND
     Append to existing file when request for a new output stream is received.
final public static  intWRITEMODE_KEEPVERSIONS
    
final public static  intWRITEMODE_OVERWRITE
     Overwrite each time a request for a new output stream is received.


Method Summary
public  voidcloseOutputStream()
    
public  StringgetActionName()
    
public  FileDataSourcegetDataSource()
     Returns a reader from the content item.
public  DategetFileDateTime()
    
public  StringgetFileId()
    
public  longgetFileSize()
    
public  ListgetFileVersions()
    
public  StringgetId()
    
public  InputStreamgetInputStream()
     Gets an input stream from the Content item.
public  StringgetMimeType()
    
public  StringgetName()
    
public  OutputStreamgetOutputStream(String actionName)
     The behavior of this method depends upon it's write mode (defined only at construction).
public  StringgetPath()
    
public  ReadergetReader()
    
public  StringgetTitle()
    
public  StringgetUrl()
    
public  voidmakeTransient()
     Removes all versions of this item from the repository and removes this item from underlying persistence layer.
public  voidremoveAllVersions()
    
public  voidremoveVersion(String fileId)
    
public  voidsetMimeType(String mimeType)
    

Field Detail
WRITEMODE_APPEND
final public static int WRITEMODE_APPEND(Code)
Append to existing file when request for a new output stream is received.



WRITEMODE_KEEPVERSIONS
final public static int WRITEMODE_KEEPVERSIONS(Code)
Keep multiple versions when request for an output stream is received



WRITEMODE_OVERWRITE
final public static int WRITEMODE_OVERWRITE(Code)
Overwrite each time a request for a new output stream is received.





Method Detail
closeOutputStream
public void closeOutputStream()(Code)



getActionName
public String getActionName()(Code)
The name of the action from the latest ContentItemFile class thatthe ContentItem contains.



getDataSource
public FileDataSource getDataSource()(Code)
Returns a reader from the content item. If the content item doesn't exist an exception is thrown. A Reader from the file system that is pointed to by this contentitem.
throws:
  ContentException -



getFileDateTime
public Date getFileDateTime()(Code)
The file date/time from the latest ContentItemFile class that theContentItem contains.



getFileId
public String getFileId()(Code)
This returns the Id of the ContentItemFile class that theContentItem contains.



getFileSize
public long getFileSize()(Code)
The file size from the latest ContentItemFile class that theContentItem contains.



getFileVersions
public List getFileVersions()(Code)
If this is a multiple-versioned style of content item, return thewhole list for admin purposes



getId
public String getId()(Code)
The ContentItem Id



getInputStream
public InputStream getInputStream() throws ContentException(Code)
Gets an input stream from the Content item. If the content item doesn't exist on disk, throws an exception An input stream from the file system that is represented by thiscontent item
throws:
  ContentException -



getMimeType
public String getMimeType()(Code)
The MimeType of the content item.



getName
public String getName()(Code)
The name of the content item



getOutputStream
public OutputStream getOutputStream(String actionName) throws IOException(Code)
The behavior of this method depends upon it's write mode (defined only at construction). If the write mode is WRITEMODE_KEEPVERSIONS, this method will create a new file on the disk, and add it to it's internal list of files, and return an output stream. If the write mode is WRITEMODE_OVERWRITE, this method will create an output stream and overwrite the existing file on the disk if it's found, or will create the file if it doesn't exist. If the write mode is WRITEMODE_APPEND, this method will append to the existing file on disk (if it exists), or create it if it doesn't exist.
Parameters:
  actionName - The name of the action that is obtaining the output stream.
throws:
  IOException - the OutputStream to write to



getPath
public String getPath()(Code)
The ContentItem path



getReader
public Reader getReader() throws ContentException(Code)



getTitle
public String getTitle()(Code)
The title of the content item



getUrl
public String getUrl()(Code)
The URL (optional) of the content item



makeTransient
public void makeTransient()(Code)
Removes all versions of this item from the repository and removes this item from underlying persistence layer.



removeAllVersions
public void removeAllVersions()(Code)
Removes all the version from Hibernate



removeVersion
public void removeVersion(String fileId)(Code)
Removes the file with the id specified



setMimeType
public void setMimeType(String mimeType)(Code)
Sets the mime type
Parameters:
  mimeType - The mime type to set.



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