Class DocumentSearchServiceImpl
java.lang.Object
org.kuali.rice.kew.docsearch.service.impl.DocumentSearchServiceImpl
- All Implemented Interfaces:
DocumentSearchService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAbbreviatedMultiValuedString(Map<String, String> abbreviatedStringMap, String label, Collection<? extends Object> values) protected voidaddAbbreviatedRangeString(Map<String, String> abbreviatedStringMap, String label, org.joda.time.DateTime dateFrom, org.joda.time.DateTime dateTo) protected voidprotected org.kuali.rice.kew.api.document.search.DocumentSearchCriteriaapplyCriteriaCustomizations(DocumentType documentType, org.kuali.rice.kew.api.document.search.DocumentSearchCriteria criteria) Applies any document type-specific customizations to the lookup criteria.protected org.kuali.rice.kew.api.document.search.DocumentSearchCriteriaapplyCriteriaDefaults(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria criteria) protected voidapplyResultCustomization(org.kuali.rice.kew.api.document.search.DocumentSearchResult.Builder result, org.kuali.rice.kew.framework.document.search.DocumentSearchResultValue value) org.kuali.rice.kew.api.document.search.DocumentSearchCriteriaclearCriteria(DocumentType documentType, org.kuali.rice.kew.api.document.search.DocumentSearchCriteria criteria) voidclearNamedSearches(String principalId) Clears all saved searches for the specified user (named and automatic)protected org.kuali.rice.kew.api.document.search.DocumentSearchCriteria.BuildercreateEmptyComparisonCriteria(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria criteria) protected List<org.kuali.rice.core.api.uif.RemotableAttributeField> determineSearchFields(DocumentType documentType) protected org.kuali.rice.kew.api.document.search.DocumentSearchCriteriagetCriteriaFromSavedSearch(UserOptions savedSearch) static org.kuali.rice.kns.service.DataDictionaryServicestatic org.kuali.rice.kns.service.DictionaryValidationServiceprotected DocumentSearchCustomizationMediatorintReturns the number of results that should be returned from an additional fetch against the document search.org.kuali.rice.core.api.config.property.ConfigurationServiceintgetMaxResultCap(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria criteria) Returns the maximum number of results that should be returned from the document search.List<org.kuali.rice.core.api.util.KeyValue> getMostRecentSearches(String principalId) Returns automatically saved recent searches for the specified userorg.kuali.rice.kew.api.document.search.DocumentSearchCriteriagetNamedSearchCriteria(String principalId, String searchName) Returns an explicitly named saved search criteriaList<org.kuali.rice.core.api.util.KeyValue> getNamedSearches(String principalId) Returns named saved searches for the specified userprotected StringgetSavedSearchAbbreviatedString(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria criteria) org.kuali.rice.kew.api.document.search.DocumentSearchCriteriagetSavedSearchCriteria(String principalId, String searchName) Returns a saved search criteria, either explicitly named by the user, or saved automatically as a recent searchorg.kuali.rice.kew.api.document.search.DocumentSearchResultslookupDocuments(String principalId, org.kuali.rice.kew.api.document.search.DocumentSearchCriteria criteria) This method performs a standard document search for the given criteria.org.kuali.rice.kew.api.document.search.DocumentSearchResultslookupDocuments(String principalId, org.kuali.rice.kew.api.document.search.DocumentSearchCriteria criteria, boolean saveSearch) This method performs a standard document search for the given criteria.voidsetDocumentSearchCustomizationMediator(DocumentSearchCustomizationMediator documentSearchCustomizationMediator) voidsetDocumentSearchDAO(DocumentSearchDAO docSearchDao) voidsetUserOptionsService(UserOptionsService userOptionsService) voidvalidateDocumentSearchCriteria(DocumentSearchGenerator docSearchGenerator, org.kuali.rice.kew.api.document.search.DocumentSearchCriteria.Builder criteria) protected List<WorkflowServiceError> validateWorkflowDocumentSearchCriteria(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria.Builder criteria)
-
Constructor Details
-
DocumentSearchServiceImpl
public DocumentSearchServiceImpl()
-
-
Method Details
-
setDocumentSearchDAO
-
setUserOptionsService
-
setDocumentSearchCustomizationMediator
public void setDocumentSearchCustomizationMediator(DocumentSearchCustomizationMediator documentSearchCustomizationMediator) -
getDocumentSearchCustomizationMediator
-
clearNamedSearches
Description copied from interface:DocumentSearchServiceClears all saved searches for the specified user (named and automatic)- Specified by:
clearNamedSearchesin interfaceDocumentSearchService- Parameters:
principalId- user principal id
-
getNamedSearchCriteria
public org.kuali.rice.kew.api.document.search.DocumentSearchCriteria getNamedSearchCriteria(String principalId, String searchName) Description copied from interface:DocumentSearchServiceReturns an explicitly named saved search criteria- Specified by:
getNamedSearchCriteriain interfaceDocumentSearchService- Parameters:
principalId- the user principal idsearchName- the user-provided saved search name- Returns:
- the DocumentSearchCriteria or null if not found
-
getSavedSearchCriteria
public org.kuali.rice.kew.api.document.search.DocumentSearchCriteria getSavedSearchCriteria(String principalId, String searchName) Description copied from interface:DocumentSearchServiceReturns a saved search criteria, either explicitly named by the user, or saved automatically as a recent search- Specified by:
getSavedSearchCriteriain interfaceDocumentSearchService- Parameters:
principalId- the user principal idsearchName- the user option key under which the criteria is saved- Returns:
- the DocumentSearchCriteria or null if not found
-
getCriteriaFromSavedSearch
protected org.kuali.rice.kew.api.document.search.DocumentSearchCriteria getCriteriaFromSavedSearch(UserOptions savedSearch) -
lookupDocuments
public org.kuali.rice.kew.api.document.search.DocumentSearchResults lookupDocuments(String principalId, org.kuali.rice.kew.api.document.search.DocumentSearchCriteria criteria) Description copied from interface:DocumentSearchServiceThis method performs a standard document search for the given criteria.- Specified by:
lookupDocumentsin interfaceDocumentSearchService- Parameters:
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 documents- Returns:
- the results of the search, will never return null
-
lookupDocuments
public org.kuali.rice.kew.api.document.search.DocumentSearchResults lookupDocuments(String principalId, org.kuali.rice.kew.api.document.search.DocumentSearchCriteria criteria, boolean saveSearch) Description copied from interface:DocumentSearchServiceThis method performs a standard document search for the given criteria.- Specified by:
lookupDocumentsin interfaceDocumentSearchService- Parameters:
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 documents- Returns:
- the results of the search, will never return null
-
applyResultCustomization
protected void applyResultCustomization(org.kuali.rice.kew.api.document.search.DocumentSearchResult.Builder result, org.kuali.rice.kew.framework.document.search.DocumentSearchResultValue value) -
applyCriteriaCustomizations
protected org.kuali.rice.kew.api.document.search.DocumentSearchCriteria applyCriteriaCustomizations(DocumentType documentType, org.kuali.rice.kew.api.document.search.DocumentSearchCriteria criteria) Applies any document type-specific customizations to the lookup criteria. If no customizations are configured for the document type, this method will simply return the criteria that is passed to it. If the given DocumentType is null, then this method will also simply return the criteria that is passed to it. -
applyCriteriaDefaults
protected org.kuali.rice.kew.api.document.search.DocumentSearchCriteria applyCriteriaDefaults(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria criteria) -
createEmptyComparisonCriteria
protected org.kuali.rice.kew.api.document.search.DocumentSearchCriteria.Builder createEmptyComparisonCriteria(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria criteria) -
determineSearchFields
protected List<org.kuali.rice.core.api.uif.RemotableAttributeField> determineSearchFields(DocumentType documentType) -
getStandardDocumentSearchGenerator
- Specified by:
getStandardDocumentSearchGeneratorin interfaceDocumentSearchService
-
validateDocumentSearchCriteria
public void validateDocumentSearchCriteria(DocumentSearchGenerator docSearchGenerator, org.kuali.rice.kew.api.document.search.DocumentSearchCriteria.Builder criteria) - Specified by:
validateDocumentSearchCriteriain interfaceDocumentSearchService
-
validateWorkflowDocumentSearchCriteria
protected List<WorkflowServiceError> validateWorkflowDocumentSearchCriteria(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria.Builder criteria) -
getDictionaryValidationService
public static org.kuali.rice.kns.service.DictionaryValidationService getDictionaryValidationService() -
getDataDictionaryService
public static org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService() -
getNamedSearches
Description copied from interface:DocumentSearchServiceReturns named saved searches for the specified user- Specified by:
getNamedSearchesin interfaceDocumentSearchService- Parameters:
principalId- the user principal id- Returns:
- list of search key/label
-
getMostRecentSearches
Description copied from interface:DocumentSearchServiceReturns automatically saved recent searches for the specified user- Specified by:
getMostRecentSearchesin interfaceDocumentSearchService- Parameters:
principalId- the user principal id- Returns:
- list of search key/label
-
clearCriteria
public org.kuali.rice.kew.api.document.search.DocumentSearchCriteria clearCriteria(DocumentType documentType, org.kuali.rice.kew.api.document.search.DocumentSearchCriteria criteria) - Specified by:
clearCriteriain interfaceDocumentSearchService
-
getSavedSearchAbbreviatedString
protected String getSavedSearchAbbreviatedString(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria criteria) -
addAbbreviatedString
-
addAbbreviatedMultiValuedString
-
addAbbreviatedRangeString
-
getKualiConfigurationService
public org.kuali.rice.core.api.config.property.ConfigurationService getKualiConfigurationService() -
getMaxResultCap
public int getMaxResultCap(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria criteria) Description copied from interface:DocumentSearchServiceReturns the maximum number of results that should be returned from the document search.- Specified by:
getMaxResultCapin interfaceDocumentSearchService- Parameters:
criteria- the criteria in which to check for a max results value- Returns:
- the maximum number of results that should be returned from a document search
-
getFetchMoreIterationLimit
public int getFetchMoreIterationLimit()Description copied from interface:DocumentSearchServiceReturns the number of results that should be returned from an additional fetch against the document search. Default:Override:invalid reference
org.kuali.rice.kew.docsearch.dao.impl.DocumentSearchDAOJdbcImpl.DEFAULT_FETCH_MORE_ITERATION_LIMITKewApiConstants.DOC_SEARCH_FETCH_MORE_ITERATION_LIMIT- Specified by:
getFetchMoreIterationLimitin interfaceDocumentSearchService- Returns:
- int
-