|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.platform.web.http.HttpContentItem
public class HttpContentItem
Field Summary |
---|
Fields inherited from interface org.pentaho.platform.api.repository.IContentItem |
---|
WRITEMODE_APPEND, WRITEMODE_KEEPVERSIONS, WRITEMODE_OVERWRITE |
Constructor Summary | |
---|---|
HttpContentItem(java.io.OutputStream outputStream,
HttpOutputHandler outputHandler)
|
Method Summary | |
---|---|
void |
closeOutputStream()
|
java.lang.String |
getActionName()
|
org.pentaho.commons.connection.IPentahoStreamSource |
getDataSource()
Returns a reader from the content item. |
java.util.Date |
getFileDateTime()
|
java.lang.String |
getFileId()
|
long |
getFileSize()
|
java.util.List |
getFileVersions()
|
java.lang.String |
getId()
|
java.io.InputStream |
getInputStream()
Gets an input stream from the Content item. |
java.lang.String |
getMimeType()
|
IMimeTypeListener |
getMimeTypeListener()
|
java.lang.String |
getName()
|
java.io.OutputStream |
getOutputStream(java.lang.String actionName)
The behavior of this method depends upon it's write mode (defined only at construction). |
java.lang.String |
getPath()
|
java.io.Reader |
getReader()
|
java.lang.String |
getTitle()
|
java.lang.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(java.lang.String fileId)
Removes the file with the id specified |
void |
setMimeType(java.lang.String mimeType)
Sets the mime type |
void |
setMimeTypeListener(IMimeTypeListener mimeTypeListener)
|
void |
setName(java.lang.String name)
|
void |
setOutputStream(java.io.OutputStream outputStream)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpContentItem(java.io.OutputStream outputStream, HttpOutputHandler outputHandler)
Method Detail |
---|
public void closeOutputStream()
closeOutputStream
in interface IContentItem
public java.lang.String getId()
getId
in interface IContentItem
public java.lang.String getPath()
getPath
in interface IContentItem
public java.lang.String getName()
getName
in interface IContentItem
public java.lang.String getTitle()
getTitle
in interface IContentItem
public java.lang.String getMimeType()
getMimeType
in interface IContentItem
public void setMimeType(java.lang.String mimeType)
IContentItem
setMimeType
in interface IMimeTypeListener
setMimeType
in interface IContentItem
mimeType
- The mime type to set.public void setName(java.lang.String name)
setName
in interface IMimeTypeListener
public java.lang.String getUrl()
getUrl
in interface IContentItem
public java.util.List getFileVersions()
getFileVersions
in interface IContentItem
public void removeAllVersions()
IContentItem
removeAllVersions
in interface IContentItem
public void removeVersion(java.lang.String fileId)
IContentItem
removeVersion
in interface IContentItem
public java.io.InputStream getInputStream() throws ContentException
IContentItem
getInputStream
in interface IContentItem
ContentException
public org.pentaho.commons.connection.IPentahoStreamSource getDataSource()
IContentItem
getDataSource
in interface IContentItem
public java.io.Reader getReader() throws ContentException
getReader
in interface IContentItem
ContentException
public java.io.OutputStream getOutputStream(java.lang.String actionName)
IContentItem
getOutputStream
in interface IContentItem
actionName
- The name of the action that is obtaining the output stream.
public void setOutputStream(java.io.OutputStream outputStream)
public java.lang.String getActionName()
getActionName
in interface IContentItem
public java.lang.String getFileId()
getFileId
in interface IContentItem
public long getFileSize()
getFileSize
in interface IContentItem
public java.util.Date getFileDateTime()
getFileDateTime
in interface IContentItem
public void makeTransient()
IContentItem
makeTransient
in interface IContentItem
public IMimeTypeListener getMimeTypeListener()
public void setMimeTypeListener(IMimeTypeListener mimeTypeListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |