public class DocumentSearchServiceImpl extends Object implements DocumentSearchService
Constructor and Description |
---|
DocumentSearchServiceImpl() |
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)
DocumentSearchService
clearNamedSearches
in interface DocumentSearchService
principalId
- user principal idpublic DocumentSearchCriteria getNamedSearchCriteria(String principalId, String searchName)
DocumentSearchService
getNamedSearchCriteria
in interface DocumentSearchService
principalId
- the user principal idsearchName
- the user-provided saved search namepublic DocumentSearchCriteria getSavedSearchCriteria(String principalId, String searchName)
DocumentSearchService
getSavedSearchCriteria
in interface DocumentSearchService
principalId
- 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)
DocumentSearchService
lookupDocuments
in interface DocumentSearchService
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 documentspublic DocumentSearchResults lookupDocuments(String principalId, DocumentSearchCriteria criteria, boolean saveSearch)
DocumentSearchService
lookupDocuments
in interface DocumentSearchService
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 documentsprotected void applyResultCustomization(DocumentSearchResult.Builder result, 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 DocumentSearchService
public void validateDocumentSearchCriteria(DocumentSearchGenerator docSearchGenerator, DocumentSearchCriteria.Builder criteria)
validateDocumentSearchCriteria
in interface DocumentSearchService
protected List<WorkflowServiceError> validateWorkflowDocumentSearchCriteria(DocumentSearchCriteria.Builder criteria)
public static DictionaryValidationService getDictionaryValidationService()
public static DataDictionaryService getDataDictionaryService()
public List<KeyValue> getNamedSearches(String principalId)
DocumentSearchService
getNamedSearches
in interface DocumentSearchService
principalId
- the user principal idpublic List<KeyValue> getMostRecentSearches(String principalId)
DocumentSearchService
getMostRecentSearches
in interface DocumentSearchService
principalId
- the user principal idpublic DocumentSearchCriteria clearCriteria(DocumentType documentType, DocumentSearchCriteria criteria)
clearCriteria
in interface DocumentSearchService
protected 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)
DocumentSearchService
getMaxResultCap
in interface DocumentSearchService
criteria
- the criteria in which to check for a max results valuepublic int getFetchMoreIterationLimit()
DocumentSearchService
org.kuali.rice.kew.docsearch.dao.impl.DocumentSearchDAOJdbcImpl.DEFAULT_FETCH_MORE_ITERATION_LIMIT
Override: KewApiConstants.DOC_SEARCH_FETCH_MORE_ITERATION_LIMIT
getFetchMoreIterationLimit
in interface DocumentSearchService
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.