| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| DocumentSearchService |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2005-2007 The Kuali Foundation | |
| 3 | * | |
| 4 | * | |
| 5 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
| 6 | * you may not use this file except in compliance with the License. | |
| 7 | * You may obtain a copy of the License at | |
| 8 | * | |
| 9 | * http://www.opensource.org/licenses/ecl2.php | |
| 10 | * | |
| 11 | * Unless required by applicable law or agreed to in writing, software | |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 14 | * See the License for the specific language governing permissions and | |
| 15 | * limitations under the License. | |
| 16 | */ | |
| 17 | package org.kuali.rice.kew.docsearch.service; | |
| 18 | ||
| 19 | import org.kuali.rice.kew.docsearch.*; | |
| 20 | import org.kuali.rice.core.util.KeyValue; | |
| 21 | ||
| 22 | import java.util.List; | |
| 23 | ||
| 24 | ||
| 25 | /** | |
| 26 | * Service for data access for document searches. | |
| 27 | * | |
| 28 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
| 29 | */ | |
| 30 | public interface DocumentSearchService { | |
| 31 | ||
| 32 | /** | |
| 33 | * This method performs a standard document search | |
| 34 | * | |
| 35 | * @param principalId - user executing the search | |
| 36 | * @param criteria - criteria to use to search documents | |
| 37 | * @return a {@link DocumentSearchResultComponents} object holding the search result columns and search result rows | |
| 38 | * represented by a list of {@link DocumentSearchResult} objects | |
| 39 | */ | |
| 40 | public DocumentSearchResultComponents getList(String principalId, DocSearchCriteriaDTO criteria); | |
| 41 | ||
| 42 | /** | |
| 43 | * This method performs a standard document search but uses the value returned by | |
| 44 | * {@link DocSearchCriteriaDTO#getThreshold()} as the maximum search results returned | |
| 45 | * | |
| 46 | * @param principalId - user executing the search | |
| 47 | * @param criteria - criteria to use to search documents | |
| 48 | * @return a {@link DocumentSearchResultComponents} object holding the search result columns and search result rows | |
| 49 | * represented by a list of {@link DocumentSearchResult} objects | |
| 50 | */ | |
| 51 | public DocumentSearchResultComponents getListRestrictedByCriteria(String principalId, DocSearchCriteriaDTO criteria); | |
| 52 | public SavedSearchResult getSavedSearchResults(String principalId, String savedSearchName); | |
| 53 | public void clearNamedSearches(String principalId); | |
| 54 | public List<KeyValue> getNamedSearches(String principalId); | |
| 55 | public List<KeyValue> getMostRecentSearches(String principalId); | |
| 56 | ||
| 57 | public DocumentSearchGenerator getStandardDocumentSearchGenerator(); | |
| 58 | public DocumentSearchResultProcessor getStandardDocumentSearchResultProcessor(); | |
| 59 | public void validateDocumentSearchCriteria(DocumentSearchGenerator docSearchGenerator,DocSearchCriteriaDTO criteria); | |
| 60 | } |