|
||||||||||
| 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.ContentLocation
public class ContentLocation
| 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.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 | |
|---|---|
IContentItem |
getContentItemById(java.lang.String itemId)
Gets a content item by its Id - this is the most efficient way to get a content item from a location |
IContentItem |
getContentItemByName(java.lang.String itemName)
Gets a child content item by name. |
IContentItem |
getContentItemByPath(java.lang.String path)
Returns the contentitem with the specified path |
java.util.Iterator |
getContentItemIterator()
Iterates over registered content items. |
java.lang.String |
getDescription()
|
java.lang.String |
getDirPath()
|
java.lang.String |
getId()
|
org.apache.commons.logging.Log |
getLogger()
|
java.util.List |
getMessages()
|
java.lang.String |
getName()
|
java.lang.String |
getPhraseSearchQueryName()
|
int |
getRevision()
|
java.lang.String[] |
getSearchableColumns()
|
java.lang.String |
getSearchableTable()
|
java.lang.String |
getSolutionId()
|
java.io.File |
makeSubdirectory(java.lang.String subDirName)
Creates a subdirectory in the content location. |
IContentItem |
newContentItem(java.lang.String itemName,
java.lang.String title,
java.lang.String extension,
java.lang.String mType,
java.lang.String url,
int writeMode)
Create a new ContentItem parented to this content location. |
IContentItem |
newContentItem(java.lang.String cntId,
java.lang.String itemName,
java.lang.String title,
java.lang.String extension,
java.lang.String mType,
java.lang.String url,
int writeMode)
Create a new ContentItem parented to this content location. |
void |
setDescription(java.lang.String description)
|
void |
setDirPath(java.lang.String dirPath)
|
void |
setId(java.lang.String id)
|
void |
setName(java.lang.String name)
|
void |
setRevision(int revision)
|
void |
setSolutionId(java.lang.String solutionId)
|
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 |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public IContentItem newContentItem(java.lang.String itemName,
java.lang.String title,
java.lang.String extension,
java.lang.String mType,
java.lang.String url,
int writeMode)
throws ContentException
IContentLocation
newContentItem in interface IContentLocationitemName - The name of the content itemtitle - The title of the content itemextension - The extension (i.e. .txt or .pdf) of the content item.mType - The mime type of the content itemurl - Optional URL to get to the content.writeMode - The write mode of the content item. Please see IContentItem
for valid write modes
ContentException
public IContentItem newContentItem(java.lang.String cntId,
java.lang.String itemName,
java.lang.String title,
java.lang.String extension,
java.lang.String mType,
java.lang.String url,
int writeMode)
throws ContentException
IContentLocation
newContentItem in interface IContentLocationcntId - The Identifier for the new content itemitemName - The name of the content itemtitle - The title of the content itemextension - The extension (i.e. .txt or .pdf) of the content item.mType - The mime type of the content itemurl - Optional URL to get to the content.writeMode - The write mode of the content item. Please see IContentItem
for valid write modes
ContentExceptionpublic IContentItem getContentItemByPath(java.lang.String path)
IContentLocation
getContentItemByPath in interface IContentLocationpath - The path to look for
public java.util.List getMessages()
public int getRevision()
getRevision in interface IContentLocationpublic void setRevision(int revision)
revision - The revision to set.public java.util.Iterator getContentItemIterator()
getContentItemIterator in interface IContentLocationpublic IContentItem getContentItemById(java.lang.String itemId)
IContentLocation
getContentItemById in interface IContentLocationitemId - The id to retrieve
public IContentItem getContentItemByName(java.lang.String itemName)
IContentLocation
getContentItemByName in interface IContentLocationitemName - The name to find
public java.io.File makeSubdirectory(java.lang.String subDirName)
throws ContentException
makeSubdirectory in interface IContentLocationsubDirName - The directory name to create
ContentExceptionpublic java.lang.String getDirPath()
getDirPath in interface IContentLocationpublic void setDirPath(java.lang.String dirPath)
dirPath - The dirPath to set.public java.lang.String getId()
getId in interface IContentLocationpublic void setId(java.lang.String id)
id - The id to set.public java.lang.String getName()
getName in interface IContentLocationpublic void setName(java.lang.String name)
name - The name to set.public java.lang.String getSolutionId()
getSolutionId in interface IContentLocationpublic void setSolutionId(java.lang.String solutionId)
solutionId - The solutionId to set.public java.lang.String getDescription()
getDescription in interface IContentLocationpublic void setDescription(java.lang.String description)
description - The description 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 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 | |||||||||