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)
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, 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–2016 The Kuali Foundation. All rights reserved.