|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IContentItem
Construction of a new ContentItem is managed by ContentLocation.newContentItem. This is because there is a parent-child relationship between ContentLocations and content items. To avoid having a content item reach back into it's parent to add itself to the children list, you instead call the content location to construct a content item. A content item cannot exist without a content location.
ContentLocation
Field Summary | |
---|---|
static int |
WRITEMODE_APPEND
Append to existing file when request for a new output stream is received. |
static int |
WRITEMODE_KEEPVERSIONS
Keep multiple versions when request for an output stream is received |
static int |
WRITEMODE_OVERWRITE
Overwrite each time a request for a new output stream is received. |
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 |
Methods inherited from interface org.pentaho.platform.api.engine.IMimeTypeListener |
---|
setName |
Field Detail |
---|
static final int WRITEMODE_KEEPVERSIONS
static final int WRITEMODE_OVERWRITE
static final int WRITEMODE_APPEND
Method Detail |
---|
String getId()
String getPath()
String getName()
String getTitle()
String getMimeType()
String getUrl()
List getFileVersions()
void removeAllVersions()
void removeVersion(String fileId)
InputStream getInputStream() throws ContentException
ContentException
org.pentaho.commons.connection.IPentahoStreamSource getDataSource()
ContentException
Reader getReader() throws ContentException
ContentException
OutputStream getOutputStream(String actionName) throws IOException
actionName
- The name of the action that is obtaining the output stream.
IOException
void closeOutputStream()
String getActionName()
String getFileId()
long getFileSize()
Date getFileDateTime()
void setMimeType(String mimeType)
setMimeType
in interface IMimeTypeListener
mimeType
- The mime type to set.void makeTransient()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |