|
||||||||||
| 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 IContentItempublic java.lang.String getId()
getId in interface IContentItempublic java.lang.String getPath()
getPath in interface IContentItempublic java.lang.String getName()
getName in interface IContentItempublic java.lang.String getTitle()
getTitle in interface IContentItempublic java.lang.String getMimeType()
getMimeType in interface IContentItempublic void setMimeType(java.lang.String mimeType)
IContentItem
setMimeType in interface IMimeTypeListenersetMimeType in interface IContentItemmimeType - The mime type to set.public void setName(java.lang.String name)
setName in interface IMimeTypeListenerpublic java.lang.String getUrl()
getUrl in interface IContentItempublic java.util.List getFileVersions()
getFileVersions in interface IContentItempublic void removeAllVersions()
IContentItem
removeAllVersions in interface IContentItempublic void removeVersion(java.lang.String fileId)
IContentItem
removeVersion in interface IContentItem
public java.io.InputStream getInputStream()
throws ContentException
IContentItem
getInputStream in interface IContentItemContentExceptionpublic org.pentaho.commons.connection.IPentahoStreamSource getDataSource()
IContentItem
getDataSource in interface IContentItem
public java.io.Reader getReader()
throws ContentException
getReader in interface IContentItemContentExceptionpublic java.io.OutputStream getOutputStream(java.lang.String actionName)
IContentItem
getOutputStream in interface IContentItemactionName - 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 IContentItempublic java.lang.String getFileId()
getFileId in interface IContentItempublic long getFileSize()
getFileSize in interface IContentItempublic java.util.Date getFileDateTime()
getFileDateTime in interface IContentItempublic void makeTransient()
IContentItem
makeTransient in interface IContentItempublic IMimeTypeListener getMimeTypeListener()
public void setMimeTypeListener(IMimeTypeListener mimeTypeListener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||