public interface DocumentSearchService
Modifier and Type | Method and Description |
---|---|
DocumentSearchCriteria |
clearCriteria(DocumentType documentType,
DocumentSearchCriteria criteria) |
void |
clearNamedSearches(String principalId)
Clears all saved searches for the specified user (named and automatic)
|
int |
getFetchMoreIterationLimit()
Returns the number of results that should be returned from an additional fetch against
the document search.
|
int |
getMaxResultCap(DocumentSearchCriteria criteria)
Returns the maximum number of results that should be returned from the document search.
|
List<KeyValue> |
getMostRecentSearches(String principalId)
Returns automatically saved recent searches for the specified user
|
DocumentSearchCriteria |
getNamedSearchCriteria(String principalId,
String savedSearchName)
Returns an explicitly named saved search criteria
|
List<KeyValue> |
getNamedSearches(String principalId)
Returns named saved searches for the specified user
|
DocumentSearchCriteria |
getSavedSearchCriteria(String principalId,
String key)
Returns a saved search criteria, either explicitly named by the user, or saved automatically as a recent search
|
DocumentSearchGenerator |
getStandardDocumentSearchGenerator() |
DocumentSearchResults |
lookupDocuments(String principalId,
DocumentSearchCriteria criteria)
This method performs a standard document search for the given criteria.
|
DocumentSearchResults |
lookupDocuments(String principalId,
DocumentSearchCriteria criteria,
boolean saveSearch)
This method performs a standard document search for the given criteria.
|
void |
validateDocumentSearchCriteria(DocumentSearchGenerator docSearchGenerator,
DocumentSearchCriteria.Builder criteria) |
DocumentSearchResults lookupDocuments(String principalId, DocumentSearchCriteria criteria)
principalId
- the id of the principal who is executing the search, this may be null to indicate the
search could be executed by an arbitrary usercriteria
- criteria to use to search documentsDocumentSearchResults lookupDocuments(String principalId, DocumentSearchCriteria criteria, boolean saveSearch)
principalId
- the id of the principal who is executing the search, this may be null to indicate the
search could be executed by an arbitrary usercriteria
- criteria to use to search documentsboolean
- to indicate if search criteria should be saved to the users preferencesDocumentSearchCriteria getSavedSearchCriteria(String principalId, String key)
principalId
- the user principal idkey
- the user option key under which the criteria is savedDocumentSearchCriteria getNamedSearchCriteria(String principalId, String savedSearchName)
principalId
- the user principal idsavedSearchName
- the user-provided saved search namevoid clearNamedSearches(String principalId)
principalId
- user principal idList<KeyValue> getNamedSearches(String principalId)
principalId
- the user principal idList<KeyValue> getMostRecentSearches(String principalId)
principalId
- the user principal idDocumentSearchCriteria clearCriteria(DocumentType documentType, DocumentSearchCriteria criteria)
DocumentSearchGenerator getStandardDocumentSearchGenerator()
void validateDocumentSearchCriteria(DocumentSearchGenerator docSearchGenerator, DocumentSearchCriteria.Builder criteria)
int getMaxResultCap(DocumentSearchCriteria criteria)
criteria
- the criteria in which to check for a max results valueint getFetchMoreIterationLimit()
org.kuali.rice.kew.docsearch.dao.impl.DocumentSearchDAOJdbcImpl.DEFAULT_FETCH_MORE_ITERATION_LIMIT
Override: KewApiConstants.DOC_SEARCH_FETCH_MORE_ITERATION_LIMIT
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.