|
||||||||||
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.ContentRepository
public class ContentRepository
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.engine.ILogger |
---|
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN |
Constructor Summary | |
---|---|
ContentRepository()
Constructor |
Method Summary | |
---|---|
int |
deleteContentOlderThanDate(Date agingDate)
This method is used to delete ContentItemFile objects that are older than the specified date. |
List |
getAllBackgroundExecutedContentItems(IPentahoSession session)
Gets list of all background content ids. |
List |
getAllContentLocations()
|
List |
getBackgroundExecutedContentItemsForUser(IPentahoSession session)
Gets list of users' background execution content ids. |
IContentItem |
getContentItemById(String theId)
Gets a content item by id. |
IContentItem |
getContentItemByPath(String thePath)
Gets a content item by path |
IContentLocation |
getContentLocationById(String theId)
Retrieves a content location by Id. |
IContentLocation |
getContentLocationByPath(String thePath)
Retrieves a content location by the path. |
static IContentRepository |
getInstance(IPentahoSession sess)
|
org.apache.commons.logging.Log |
getLogger()
|
List |
getMessages()
|
static IPentahoSession |
getUserSession()
|
void |
init(IPentahoSession session)
Simplifier for initialization of objects from the PentahoSystem object |
IBackgroundExecutedContentId |
newBackgroundExecutedContentId(IPentahoSession session,
String contentId)
Returns a new background executed content object |
IContentLocation |
newContentLocation(String thePath,
String theName,
String description,
String solId,
boolean createIfNotExists)
Creates a new Content Location. |
void |
removeBackgroundExecutedContentId(IPentahoSession session,
String contentId)
Removes an ID from the background executed content Id list |
List |
searchContentItemsForTerms(String searchTerm,
int searchType)
Content Item finder - searches for the terms amongst content items |
List |
searchLocationsAndItemsForTerms(String searchTerm,
int searchType)
Content Location and Item finder - Simply aggregates the output of the searchLocationsForTerms and searchContentItemsForTerms. |
List |
searchLocationsForTerms(String searchTerm,
int searchType)
Content Location finder - searches for the terms amongst the content locations |
void |
setSession(IPentahoSession session)
Set the session for this session container. |
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, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentRepository()
Method Detail |
---|
public static IPentahoSession getUserSession()
public List getMessages()
public void setSession(IPentahoSession session)
ISessionContainer
setSession
in interface ISessionContainer
setSession
in interface IContentRepository
session
- Sets the IPentahoSession Content Repository. This also begins
the Hibernate transaction.public void init(IPentahoSession session)
IPentahoInitializer
init
in interface IPentahoInitializer
public static IContentRepository getInstance(IPentahoSession sess)
public IContentLocation newContentLocation(String thePath, String theName, String description, String solId, boolean createIfNotExists)
IContentRepository
newContentLocation
in interface IContentRepository
thePath
- The paththeName
- The name of the locationdescription
- The description of the locationsolId
- The Id of the solutioncreateIfNotExists
- Attempt to create the physical folder on the hard drive
public IContentLocation getContentLocationById(String theId)
IContentRepository
getContentLocationById
in interface IContentRepository
theId
- The Id to retrieve
public IContentLocation getContentLocationByPath(String thePath)
IContentRepository
getContentLocationByPath
in interface IContentRepository
thePath
- The path to search for
public IContentItem getContentItemByPath(String thePath)
IContentRepository
getContentItemByPath
in interface IContentRepository
thePath
- The path of the content item to find
public IContentItem getContentItemById(String theId)
IContentRepository
getContentItemById
in interface IContentRepository
public List getAllContentLocations()
getAllContentLocations
in interface IContentRepository
public List searchLocationsForTerms(String searchTerm, int searchType)
IContentRepository
searchLocationsForTerms
in interface IContentRepository
searchTerm
- The search term(s) to find
ISearchable
public List searchContentItemsForTerms(String searchTerm, int searchType)
IContentRepository
searchContentItemsForTerms
in interface IContentRepository
searchTerm
- The search term(s) to find
ISearchable
public List searchLocationsAndItemsForTerms(String searchTerm, int searchType)
IContentRepository
searchLocationsAndItemsForTerms
in interface IContentRepository
searchTerm
- The search term(s) to find
ISearchable
public int deleteContentOlderThanDate(Date agingDate)
IContentRepository
deleteContentOlderThanDate
in interface IContentRepository
agingDate
- Date to use for selecting items for deleting. The argument is
used as a "Less Than". The date is NOT inclusive. I.e., not
"Less Than or Equal To".
public org.apache.commons.logging.Log getLogger()
getLogger
in class PentahoBase
public IBackgroundExecutedContentId newBackgroundExecutedContentId(IPentahoSession session, String contentId)
newBackgroundExecutedContentId
in interface IContentRepository
session
- Users' session objectcontentId
- The content id to reference.
public List getBackgroundExecutedContentItemsForUser(IPentahoSession session)
getBackgroundExecutedContentItemsForUser
in interface IContentRepository
session
- The users' session
public List getAllBackgroundExecutedContentItems(IPentahoSession session)
getAllBackgroundExecutedContentItems
in interface IContentRepository
session
- Users session
public void removeBackgroundExecutedContentId(IPentahoSession session, String contentId)
removeBackgroundExecutedContentId
in interface IContentRepository
session
- Users' sessioncontentId
- The content id to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |