|
||||||||||
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.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(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(String itemName)
Gets a child content item by name. |
IContentItem |
getContentItemByPath(String path)
Returns the contentitem with the specified path |
Iterator |
getContentItemIterator()
Iterates over registered content items. |
String |
getDescription()
|
String |
getDirPath()
|
String |
getId()
|
org.apache.commons.logging.Log |
getLogger()
|
List |
getMessages()
|
String |
getName()
|
String |
getPhraseSearchQueryName()
|
int |
getRevision()
|
String[] |
getSearchableColumns()
|
String |
getSearchableTable()
|
String |
getSolutionId()
|
File |
makeSubdirectory(String subDirName)
Creates a subdirectory in the content location. |
IContentItem |
newContentItem(String itemName,
String title,
String extension,
String mType,
String url,
int writeMode)
Create a new ContentItem parented to this content location. |
IContentItem |
newContentItem(String cntId,
String itemName,
String title,
String extension,
String mType,
String url,
int writeMode)
Create a new ContentItem parented to this content location. |
void |
setDescription(String description)
|
void |
setDirPath(String dirPath)
|
void |
setId(String id)
|
void |
setName(String name)
|
void |
setRevision(int revision)
|
void |
setSolutionId(String solutionId)
|
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(String itemName, String title, String extension, String mType, String url, int writeMode) throws ContentException
IContentLocation
newContentItem
in interface IContentLocation
itemName
- 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(String cntId, String itemName, String title, String extension, String mType, String url, int writeMode) throws ContentException
IContentLocation
newContentItem
in interface IContentLocation
cntId
- 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
ContentException
public IContentItem getContentItemByPath(String path)
IContentLocation
getContentItemByPath
in interface IContentLocation
path
- The path to look for
public List getMessages()
public int getRevision()
getRevision
in interface IContentLocation
public void setRevision(int revision)
revision
- The revision to set.public Iterator getContentItemIterator()
getContentItemIterator
in interface IContentLocation
public IContentItem getContentItemById(String itemId)
IContentLocation
getContentItemById
in interface IContentLocation
itemId
- The id to retrieve
public IContentItem getContentItemByName(String itemName)
IContentLocation
getContentItemByName
in interface IContentLocation
itemName
- The name to find
public File makeSubdirectory(String subDirName) throws ContentException
makeSubdirectory
in interface IContentLocation
subDirName
- The directory name to create
ContentException
public String getDirPath()
getDirPath
in interface IContentLocation
public void setDirPath(String dirPath)
dirPath
- The dirPath to set.public String getId()
getId
in interface IContentLocation
public void setId(String id)
id
- The id to set.public String getName()
getName
in interface IContentLocation
public void setName(String name)
name
- The name to set.public String getSolutionId()
getSolutionId
in interface IContentLocation
public void setSolutionId(String solutionId)
solutionId
- The solutionId to set.public String getDescription()
getDescription
in interface IContentLocation
public void setDescription(String description)
description
- The description to set.public org.apache.commons.logging.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 String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |