public class DocumentSearchServiceImpl extends Object implements DocumentSearchService
| Constructor and Description |
|---|
DocumentSearchServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAbbreviatedMultiValuedString(Map<String,String> abbreviatedStringMap,
String label,
Collection<? extends Object> values) |
protected void |
addAbbreviatedRangeString(Map<String,String> abbreviatedStringMap,
String label,
org.joda.time.DateTime dateFrom,
org.joda.time.DateTime dateTo) |
protected void |
addAbbreviatedString(Map<String,String> abbreviatedStringMap,
String label,
String value) |
protected DocumentSearchCriteria |
applyCriteriaCustomizations(DocumentType documentType,
DocumentSearchCriteria criteria)
Applies any document type-specific customizations to the lookup criteria.
|
protected DocumentSearchCriteria |
applyCriteriaDefaults(DocumentSearchCriteria criteria) |
protected void |
applyResultCustomization(DocumentSearchResult.Builder result,
org.kuali.rice.kew.framework.document.search.DocumentSearchResultValue value) |
DocumentSearchCriteria |
clearCriteria(DocumentType documentType,
DocumentSearchCriteria criteria) |
void |
clearNamedSearches(String principalId)
Clears all saved searches for the specified user (named and automatic)
|
protected DocumentSearchCriteria.Builder |
createEmptyComparisonCriteria(DocumentSearchCriteria criteria) |
protected List<RemotableAttributeField> |
determineSearchFields(DocumentType documentType) |
protected DocumentSearchCriteria |
getCriteriaFromSavedSearch(UserOptions savedSearch) |
static DataDictionaryService |
getDataDictionaryService() |
static DictionaryValidationService |
getDictionaryValidationService() |
protected DocumentSearchCustomizationMediator |
getDocumentSearchCustomizationMediator() |
int |
getFetchMoreIterationLimit()
Returns the number of results that should be returned from an additional fetch against
the document search.
|
ConfigurationService |
getKualiConfigurationService() |
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 searchName)
Returns an explicitly named saved search criteria
|
List<KeyValue> |
getNamedSearches(String principalId)
Returns named saved searches for the specified user
|
protected String |
getSavedSearchAbbreviatedString(DocumentSearchCriteria criteria) |
DocumentSearchCriteria |
getSavedSearchCriteria(String principalId,
String searchName)
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 |
setDocumentSearchCustomizationMediator(DocumentSearchCustomizationMediator documentSearchCustomizationMediator) |
void |
setDocumentSearchDAO(DocumentSearchDAO docSearchDao) |
void |
setUserOptionsService(UserOptionsService userOptionsService) |
void |
validateDocumentSearchCriteria(DocumentSearchGenerator docSearchGenerator,
DocumentSearchCriteria.Builder criteria) |
protected List<WorkflowServiceError> |
validateWorkflowDocumentSearchCriteria(DocumentSearchCriteria.Builder criteria) |
public DocumentSearchServiceImpl()
public void setDocumentSearchDAO(DocumentSearchDAO docSearchDao)
public void setUserOptionsService(UserOptionsService userOptionsService)
public void setDocumentSearchCustomizationMediator(DocumentSearchCustomizationMediator documentSearchCustomizationMediator)
protected DocumentSearchCustomizationMediator getDocumentSearchCustomizationMediator()
public void clearNamedSearches(String principalId)
DocumentSearchServiceclearNamedSearches in interface DocumentSearchServiceprincipalId - user principal idpublic DocumentSearchCriteria getNamedSearchCriteria(String principalId, String searchName)
DocumentSearchServicegetNamedSearchCriteria in interface DocumentSearchServiceprincipalId - the user principal idsearchName - the user-provided saved search namepublic DocumentSearchCriteria getSavedSearchCriteria(String principalId, String searchName)
DocumentSearchServicegetSavedSearchCriteria in interface DocumentSearchServiceprincipalId - the user principal idsearchName - the user option key under which the criteria is savedprotected DocumentSearchCriteria getCriteriaFromSavedSearch(UserOptions savedSearch)
public DocumentSearchResults lookupDocuments(String principalId, DocumentSearchCriteria criteria)
DocumentSearchServicelookupDocuments in interface DocumentSearchServiceprincipalId - 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 documentspublic DocumentSearchResults lookupDocuments(String principalId, DocumentSearchCriteria criteria, boolean saveSearch)
DocumentSearchServicelookupDocuments in interface DocumentSearchServiceprincipalId - 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 documentsprotected void applyResultCustomization(DocumentSearchResult.Builder result, org.kuali.rice.kew.framework.document.search.DocumentSearchResultValue value)
protected DocumentSearchCriteria applyCriteriaCustomizations(DocumentType documentType, DocumentSearchCriteria criteria)
protected DocumentSearchCriteria applyCriteriaDefaults(DocumentSearchCriteria criteria)
protected DocumentSearchCriteria.Builder createEmptyComparisonCriteria(DocumentSearchCriteria criteria)
protected List<RemotableAttributeField> determineSearchFields(DocumentType documentType)
public DocumentSearchGenerator getStandardDocumentSearchGenerator()
getStandardDocumentSearchGenerator in interface DocumentSearchServicepublic void validateDocumentSearchCriteria(DocumentSearchGenerator docSearchGenerator, DocumentSearchCriteria.Builder criteria)
validateDocumentSearchCriteria in interface DocumentSearchServiceprotected List<WorkflowServiceError> validateWorkflowDocumentSearchCriteria(DocumentSearchCriteria.Builder criteria)
public static DictionaryValidationService getDictionaryValidationService()
public static DataDictionaryService getDataDictionaryService()
public List<KeyValue> getNamedSearches(String principalId)
DocumentSearchServicegetNamedSearches in interface DocumentSearchServiceprincipalId - the user principal idpublic List<KeyValue> getMostRecentSearches(String principalId)
DocumentSearchServicegetMostRecentSearches in interface DocumentSearchServiceprincipalId - the user principal idpublic DocumentSearchCriteria clearCriteria(DocumentType documentType, DocumentSearchCriteria criteria)
clearCriteria in interface DocumentSearchServiceprotected String getSavedSearchAbbreviatedString(DocumentSearchCriteria criteria)
protected void addAbbreviatedString(Map<String,String> abbreviatedStringMap, String label, String value)
protected void addAbbreviatedMultiValuedString(Map<String,String> abbreviatedStringMap, String label, Collection<? extends Object> values)
protected void addAbbreviatedRangeString(Map<String,String> abbreviatedStringMap, String label, org.joda.time.DateTime dateFrom, org.joda.time.DateTime dateTo)
public ConfigurationService getKualiConfigurationService()
public int getMaxResultCap(DocumentSearchCriteria criteria)
DocumentSearchServicegetMaxResultCap in interface DocumentSearchServicecriteria - the criteria in which to check for a max results valuepublic int getFetchMoreIterationLimit()
DocumentSearchServiceorg.kuali.rice.kew.docsearch.dao.impl.DocumentSearchDAOJdbcImpl.DEFAULT_FETCH_MORE_ITERATION_LIMIT
Override: KewApiConstants.DOC_SEARCH_FETCH_MORE_ITERATION_LIMITgetFetchMoreIterationLimit in interface DocumentSearchServiceCopyright © 2005–2017 The Kuali Foundation. All rights reserved.