|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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()
|
org.pentaho.commons.connection.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 IContentItem
public String getId()
getId
in interface IContentItem
public String getPath()
getPath
in interface IContentItem
public String getName()
getName
in interface IContentItem
public String getTitle()
getTitle
in interface IContentItem
public String getMimeType()
getMimeType
in interface IContentItem
public void setMimeType(String mimeType)
IContentItem
setMimeType
in interface IMimeTypeListener
setMimeType
in interface IContentItem
mimeType
- The mime type to set.public String getUrl()
getUrl
in interface IContentItem
public List getFileVersions()
getFileVersions
in interface IContentItem
public void removeAllVersions()
IContentItem
removeAllVersions
in interface IContentItem
public void removeVersion(String fileId)
IContentItem
removeVersion
in interface IContentItem
public InputStream getInputStream() throws ContentException
IContentItem
getInputStream
in interface IContentItem
ContentException
public Reader getReader() throws ContentException
getReader
in interface IContentItem
ContentException
public OutputStream getOutputStream(String actionName) throws IOException
IContentItem
getOutputStream
in interface IContentItem
actionName
- The name of the action that is obtaining the output stream.
IOException
public void setOutputStream(OutputStream outputStream)
public org.pentaho.commons.connection.IPentahoStreamSource getDataSource()
IContentItem
getDataSource
in interface IContentItem
public String getActionName()
getActionName
in interface IContentItem
public String getFileId()
getFileId
in interface IContentItem
public long getFileSize()
getFileSize
in interface IContentItem
public Date getFileDateTime()
getFileDateTime
in interface IContentItem
public void makeTransient()
IContentItem
makeTransient
in interface IContentItem
public void setName(String name)
setName
in interface IMimeTypeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |