|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.platform.engine.core.system.PentahoBase
org.pentaho.platform.repository.content.ContentItem
public class ContentItem
| Nested Class Summary | |
|---|---|
static class |
ContentItem.FilePentahoStreamSource
|
| Field Summary |
|---|
| Fields inherited from class org.pentaho.platform.engine.core.system.PentahoBase |
|---|
EMPTYLOGID, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR |
| Fields inherited from interface org.pentaho.platform.api.repository.IContentItem |
|---|
WRITEMODE_APPEND, WRITEMODE_KEEPVERSIONS, WRITEMODE_OVERWRITE |
| Fields inherited from interface org.pentaho.platform.api.repository.ISearchable |
|---|
SEARCH_TYPE_PHRASE, SEARCH_TYPE_WORDS_AND, SEARCH_TYPE_WORDS_OR |
| Fields inherited from interface org.pentaho.platform.api.engine.ILogger |
|---|
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN |
| Method Summary | |
|---|---|
void |
closeOutputStream()
|
boolean |
equals(java.lang.Object other)
equals override for Hibernate |
java.lang.String |
getActionName()
|
org.pentaho.commons.connection.IPentahoStreamSource |
getDataSource()
Returns a reader from the content item. |
java.lang.String |
getExtension()
|
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. |
int |
getLatestVersionNum()
Deprecated. |
org.apache.commons.logging.Log |
getLogger()
|
java.util.List |
getMessages()
|
java.lang.String |
getMimeType()
|
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). |
ContentLocation |
getParent()
|
java.lang.String |
getPath()
|
java.lang.String |
getPhraseSearchQueryName()
|
java.io.Reader |
getReader()
|
int |
getRevision()
|
java.lang.String[] |
getSearchableColumns()
|
java.lang.String |
getSearchableTable()
|
java.lang.String |
getTitle()
|
java.lang.String |
getUrl()
|
int |
getWriteMode()
|
int |
hashCode()
hashcode override for Hibernate |
void |
makeTransient()
Removes all versions of this item from the repository and removes this item from underlying persistence layer. |
void |
removeAllVersions()
Removes all version files. |
void |
removeVersion(ContentItemFile cif)
|
void |
removeVersion(java.lang.String fileId)
Removes the file with the id specified |
void |
setExtension(java.lang.String extension)
|
void |
setId(java.lang.String id)
|
void |
setLatestFile(ContentItemFile latestFile)
|
void |
setLatestVersionNum(int latestVersionNum)
Deprecated. |
void |
setMimeType(java.lang.String mimeType)
Sets the mime type |
void |
setName(java.lang.String fName)
|
void |
setParent(ContentLocation theParent)
|
void |
setPath(java.lang.String path)
|
void |
setRevision(int revision)
|
void |
setTitle(java.lang.String title)
|
void |
setUrl(java.lang.String url)
|
void |
setWriteMode(int writeMode)
|
java.lang.String |
toString()
|
| Methods inherited from class org.pentaho.platform.engine.core.system.PentahoBase |
|---|
debug, debug, error, error, fatal, fatal, genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, getObjectName, info, info, setLoggingLevel, setLogId, trace, trace, warn, warn |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public java.util.List getMessages()
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 IContentItemContentException
public java.io.OutputStream getOutputStream(java.lang.String actionName)
throws java.io.IOException
IContentItem
getOutputStream in interface IContentItemactionName - The name of the action that is obtaining the output stream.
java.io.IOExceptionpublic void closeOutputStream()
closeOutputStream in interface IContentItempublic 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 int getWriteMode()
public void setWriteMode(int writeMode)
writeMode - The writeMode to set.public boolean equals(java.lang.Object other)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public java.lang.String getExtension()
public void setExtension(java.lang.String extension)
extension - The extension to set.public void setLatestFile(ContentItemFile latestFile)
latestFile - The latestFile to set.@Deprecated public int getLatestVersionNum()
@Deprecated public void setLatestVersionNum(int latestVersionNum)
latestVersionNum - The latestVersionNum to set. Don't set or get this value any more - retained for backward compatibility.public int getRevision()
public void setRevision(int revision)
revision - The revision to set.public void removeVersion(ContentItemFile cif)
public void removeVersion(java.lang.String fileId)
IContentItem
removeVersion in interface IContentItempublic void removeAllVersions()
removeAllVersions in interface IContentItempublic ContentLocation getParent()
public void setParent(ContentLocation theParent)
theParent - The parent to set.public java.lang.String getName()
getName in interface IContentItempublic void setName(java.lang.String fName)
setName in interface IMimeTypeListenerfName - The name to set.public java.lang.String getId()
getId in interface IContentItempublic void setId(java.lang.String id)
id - The id to set.public java.lang.String getMimeType()
getMimeType in interface IContentItempublic void setMimeType(java.lang.String mimeType)
IContentItem
setMimeType in interface IMimeTypeListenersetMimeType in interface IContentItemmimeType - The mimeType to set.public java.lang.String getUrl()
getUrl in interface IContentItempublic void setUrl(java.lang.String url)
url - The url to set.public java.lang.String getPath()
getPath in interface IContentItempublic void setPath(java.lang.String path)
path - The path to set.public java.util.List getFileVersions()
getFileVersions in interface IContentItempublic java.lang.String getTitle()
getTitle in interface IContentItempublic void setTitle(java.lang.String title)
title - The title to set.public org.apache.commons.logging.Log getLogger()
getLogger in class PentahoBasepublic java.lang.String[] getSearchableColumns()
getSearchableColumns in interface ISearchablepublic java.lang.String getSearchableTable()
getSearchableTable in interface ISearchablepublic java.lang.String getPhraseSearchQueryName()
getPhraseSearchQueryName in interface ISearchablepublic void makeTransient()
IContentItem
makeTransient in interface IContentItempublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||