|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.platform.engine.core.output.SimpleContentItem
public class SimpleContentItem
| Field Summary |
|---|
| Fields inherited from interface org.pentaho.platform.api.repository.IContentItem |
|---|
WRITEMODE_APPEND, WRITEMODE_KEEPVERSIONS, WRITEMODE_OVERWRITE |
| Constructor Summary | |
|---|---|
SimpleContentItem()
|
|
SimpleContentItem(OutputStream outputStream)
|
|
| Method Summary | |
|---|---|
void |
closeOutputStream()
|
String |
getActionName()
|
IPentahoStreamSource |
getDataSource()
Returns a reader from the content item. |
Date |
getFileDateTime()
|
String |
getFileId()
|
long |
getFileSize()
|
List |
getFileVersions()
|
String |
getId()
|
InputStream |
getInputStream()
Gets an input stream from the Content item. |
String |
getMimeType()
|
String |
getName()
|
OutputStream |
getOutputStream(String actionName)
The behavior of this method depends upon it's write mode (defined only at construction). |
String |
getPath()
|
Reader |
getReader()
|
String |
getTitle()
|
String |
getUrl()
|
void |
makeTransient()
Removes all versions of this item from the repository and removes this item from underlying persistence layer. |
void |
removeAllVersions()
Removes all the version from Hibernate |
void |
removeVersion(String fileId)
Removes the file with the id specified |
void |
setMimeType(String mimeType)
Sets the mime type |
void |
setName(String name)
|
void |
setOutputStream(OutputStream outputStream)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleContentItem()
public SimpleContentItem(OutputStream outputStream)
| Method Detail |
|---|
public void closeOutputStream()
closeOutputStream in interface IContentItempublic String getId()
getId in interface IContentItempublic String getPath()
getPath in interface IContentItempublic String getName()
getName in interface IContentItempublic String getTitle()
getTitle in interface IContentItempublic String getMimeType()
getMimeType in interface IContentItempublic void setMimeType(String mimeType)
IContentItem
setMimeType in interface IMimeTypeListenersetMimeType in interface IContentItemmimeType - The mime type to set.public String getUrl()
getUrl in interface IContentItempublic List getFileVersions()
getFileVersions in interface IContentItempublic void removeAllVersions()
IContentItem
removeAllVersions in interface IContentItempublic void removeVersion(String fileId)
IContentItem
removeVersion in interface IContentItem
public InputStream getInputStream()
throws ContentException
IContentItem
getInputStream in interface IContentItemContentException
public Reader getReader()
throws ContentException
getReader in interface IContentItemContentException
public OutputStream getOutputStream(String actionName)
throws IOException
IContentItem
getOutputStream in interface IContentItemactionName - The name of the action that is obtaining the output stream.
IOExceptionpublic void setOutputStream(OutputStream outputStream)
public IPentahoStreamSource getDataSource()
IContentItem
getDataSource in interface IContentItempublic String getActionName()
getActionName in interface IContentItempublic String getFileId()
getFileId in interface IContentItempublic long getFileSize()
getFileSize in interface IContentItempublic Date getFileDateTime()
getFileDateTime in interface IContentItempublic void makeTransient()
IContentItem
makeTransient in interface IContentItempublic void setName(String name)
setName in interface IMimeTypeListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||