| 
 | ||||||||||
| 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(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 content items in the Background Execution id list. | 
|  List | getAllContentLocations() | 
|  List | getBackgroundExecutedContentItemsForUser(IPentahoSession session)Gets list of Content Items from a users' background execution list. | 
|  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. | 
|  IBackgroundExecutedContentId | newBackgroundExecutedContentId(IPentahoSession session,
                               String contentId)Returns a new background executed content object | 
|  IContentLocation | newContentLocation(String thePath,
                   String theName,
                   String description,
                   String solutionId,
                   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. | 
| Method Detail | 
|---|
IContentLocation newContentLocation(String thePath,
                                    String theName,
                                    String description,
                                    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(String thePath)
                                          throws RepositoryException
thePath - The path to search for
RepositoryExceptionIContentLocation getContentLocationById(String theId)
theId - The Id to retrieve
IContentItem getContentItemByPath(String thePath)
thePath - The path of the content item to find
IContentItem getContentItemById(String theId)
id - The id of the content item to find
List getAllContentLocations()
List searchLocationsForTerms(String searchTerm,
                             int searchType)
searchTerm - The search term(s) to findsearchType - 
ISearchable
List searchContentItemsForTerms(String searchTerm,
                                int searchType)
searchTerm - The search term(s) to findsearchType - 
ISearchable
List searchLocationsAndItemsForTerms(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(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,
                                                            String contentId)
session - Users' session objectcontentId - The content id to reference.
List getBackgroundExecutedContentItemsForUser(IPentahoSession session)
session - The users' session
List getAllBackgroundExecutedContentItems(IPentahoSession session)
session - Users session
void removeBackgroundExecutedContentId(IPentahoSession session,
                                       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 | |||||||||