1 17 18 package org.pentaho.core.repository; 19 20 import java.util.Date ; 21 import java.util.List ; 22 23 import org.pentaho.core.session.IPentahoSession; 24 import org.pentaho.core.repository.RepositoryException; 25 26 34 35 public interface IContentRepository { 36 37 54 public IContentLocation newContentLocation(String thePath, String theName, String description, String solutionId, boolean createIfNotExists) throws RepositoryException; 55 56 64 public IContentLocation getContentLocationByPath(String thePath) throws RepositoryException; 65 66 74 public IContentLocation getContentLocationById(String theId); 75 76 83 public IContentItem getContentItemByPath(String thePath); 84 85 93 public IContentItem getContentItemById(String theId); 94 95 98 public List getAllContentLocations(); 99 100 110 public List searchLocationsForTerms(String searchTerm, int searchType); 111 112 121 public List searchContentItemsForTerms(String searchTerm, int searchType); 122 123 134 public List searchLocationsAndItemsForTerms(String searchTerm, int searchType); 135 136 141 public void setSession(IPentahoSession session); 142 143 154 public int deleteContentOlderThanDate(Date agingDate); 155 156 162 public IBackgroundExecutedContentId newBackgroundExecutedContentId(IPentahoSession session, String contentId); 163 164 169 public List getBackgroundExecutedContentItemsForUser(IPentahoSession session); 170 171 176 public List getAllBackgroundExecutedContentItems(IPentahoSession session); 177 178 183 public void removeBackgroundExecutedContentId(IPentahoSession session, String contentId); 184 185 } 186
| Popular Tags
|