|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(Object other)
equals override for Hibernate |
String |
getActionName()
|
IPentahoStreamSource |
getDataSource()
Returns a reader from the content item. |
String |
getExtension()
|
Date |
getFileDateTime()
|
String |
getFileId()
|
long |
getFileSize()
|
List |
getFileVersions()
|
String |
getId()
|
InputStream |
getInputStream()
Gets an input stream from the Content item. |
int |
getLatestVersionNum()
Deprecated. |
Log |
getLogger()
|
List |
getMessages()
|
String |
getMimeType()
|
String |
getName()
|
OutputStream |
getOutputStream(String actionName)
The behavior of this method depends upon it's write mode (defined only at construction). |
ContentLocation |
getParent()
|
String |
getPath()
|
String |
getPhraseSearchQueryName()
|
Reader |
getReader()
|
int |
getRevision()
|
String[] |
getSearchableColumns()
|
String |
getSearchableTable()
|
String |
getTitle()
|
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(String fileId)
Removes the file with the id specified |
void |
setExtension(String extension)
|
void |
setId(String id)
|
void |
setLatestFile(ContentItemFile latestFile)
|
void |
setLatestVersionNum(int latestVersionNum)
Deprecated. |
void |
setMimeType(String mimeType)
Sets the mime type |
void |
setName(String fName)
|
void |
setParent(ContentLocation theParent)
|
void |
setPath(String path)
|
void |
setRevision(int revision)
|
void |
setTitle(String title)
|
void |
setUrl(String url)
|
void |
setWriteMode(int writeMode)
|
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 List getMessages()
public InputStream getInputStream() throws ContentException
IContentItem
getInputStream
in interface IContentItem
ContentException
public IPentahoStreamSource getDataSource()
IContentItem
getDataSource
in interface IContentItem
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 closeOutputStream()
closeOutputStream
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 int getWriteMode()
public void setWriteMode(int writeMode)
writeMode
- The writeMode to set.public boolean equals(Object other)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String getExtension()
public void setExtension(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(String fileId)
IContentItem
removeVersion
in interface IContentItem
public void removeAllVersions()
removeAllVersions
in interface IContentItem
public ContentLocation getParent()
public void setParent(ContentLocation theParent)
theParent
- The parent to set.public String getName()
getName
in interface IContentItem
public void setName(String fName)
setName
in interface IMimeTypeListener
fName
- The name to set.public String getId()
getId
in interface IContentItem
public void setId(String id)
id
- The id to set.public String getMimeType()
getMimeType
in interface IContentItem
public void setMimeType(String mimeType)
IContentItem
setMimeType
in interface IMimeTypeListener
setMimeType
in interface IContentItem
mimeType
- The mimeType to set.public String getUrl()
getUrl
in interface IContentItem
public void setUrl(String url)
url
- The url to set.public String getPath()
getPath
in interface IContentItem
public void setPath(String path)
path
- The path to set.public List getFileVersions()
getFileVersions
in interface IContentItem
public String getTitle()
getTitle
in interface IContentItem
public void setTitle(String title)
title
- The title to set.public Log getLogger()
getLogger
in class PentahoBase
public String[] getSearchableColumns()
getSearchableColumns
in interface ISearchable
public String getSearchableTable()
getSearchableTable
in interface ISearchable
public String getPhraseSearchQueryName()
getPhraseSearchQueryName
in interface ISearchable
public void makeTransient()
IContentItem
makeTransient
in interface IContentItem
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |