|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IContentRepository
The ContentRepository is responsible for all the DAO calls used to get content items out of a repository. This interface is used to create IContentLocation objects. The IContentLocation object can then be used to create child IContentItem objects.
| Method Summary | |
|---|---|
int |
deleteContentOlderThanDate(java.util.Date agingDate)
This method is used to delete ContentItemFile objects that are older than the specified date. |
java.util.List |
getAllBackgroundExecutedContentItems(IPentahoSession session)
Gets list of all content items in the Background Execution id list. |
java.util.List |
getAllContentLocations()
|
java.util.List |
getBackgroundExecutedContentItemsForUser(IPentahoSession session)
Gets list of Content Items from a users' background execution list. |
IContentItem |
getContentItemById(java.lang.String theId)
Gets a content item by id. |
IContentItem |
getContentItemByPath(java.lang.String thePath)
Gets a content item by path |
IContentLocation |
getContentLocationById(java.lang.String theId)
Retrieves a content location by Id. |
IContentLocation |
getContentLocationByPath(java.lang.String thePath)
Retrieves a content location by the path. |
IBackgroundExecutedContentId |
newBackgroundExecutedContentId(IPentahoSession session,
java.lang.String contentId)
Returns a new background executed content object |
IContentLocation |
newContentLocation(java.lang.String thePath,
java.lang.String theName,
java.lang.String description,
java.lang.String solutionId,
boolean createIfNotExists)
Creates a new Content Location. |
void |
removeBackgroundExecutedContentId(IPentahoSession session,
java.lang.String contentId)
Removes an ID from the background executed content Id list |
java.util.List |
searchContentItemsForTerms(java.lang.String searchTerm,
int searchType)
Content Item finder - searches for the terms amongst content items |
java.util.List |
searchLocationsAndItemsForTerms(java.lang.String searchTerm,
int searchType)
Content Location and Item finder - Simply aggregates the output of the searchLocationsForTerms and searchContentItemsForTerms. |
java.util.List |
searchLocationsForTerms(java.lang.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. |
| Method Detail |
|---|
IContentLocation newContentLocation(java.lang.String thePath,
java.lang.String theName,
java.lang.String description,
java.lang.String solutionId,
boolean createIfNotExists)
throws RepositoryException
thePath - The paththeName - The name of the locationdescription - The description of the locationsolutionId - The Id of the solutioncreateIfNotExists - Attempt to create the physical folder on the hard drive
RepositoryException
IContentLocation getContentLocationByPath(java.lang.String thePath)
throws RepositoryException
thePath - The path to search for
RepositoryExceptionIContentLocation getContentLocationById(java.lang.String theId)
theId - The Id to retrieve
IContentItem getContentItemByPath(java.lang.String thePath)
thePath - The path of the content item to find
IContentItem getContentItemById(java.lang.String theId)
id - The id of the content item to find
java.util.List getAllContentLocations()
java.util.List searchLocationsForTerms(java.lang.String searchTerm,
int searchType)
searchTerm - The search term(s) to findsearchType -
ISearchable
java.util.List searchContentItemsForTerms(java.lang.String searchTerm,
int searchType)
searchTerm - The search term(s) to findsearchType -
ISearchable
java.util.List searchLocationsAndItemsForTerms(java.lang.String searchTerm,
int searchType)
searchTerm - The search term(s) to findsearchType -
ISearchablevoid setSession(IPentahoSession session)
ISessionContainer
setSession in interface ISessionContainersession - Sets the IPentahoSession Content Repository. This also begins
the Hibernate transaction.int deleteContentOlderThanDate(java.util.Date agingDate)
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".
IBackgroundExecutedContentId newBackgroundExecutedContentId(IPentahoSession session,
java.lang.String contentId)
session - Users' session objectcontentId - The content id to reference.
java.util.List getBackgroundExecutedContentItemsForUser(IPentahoSession session)
session - The users' session
java.util.List getAllBackgroundExecutedContentItems(IPentahoSession session)
session - Users session
void removeBackgroundExecutedContentId(IPentahoSession session,
java.lang.String contentId)
session - Users' sessioncontentId - The content id to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||