public class DocumentSearchCustomizationMediatorImpl extends Object implements DocumentSearchCustomizationMediator
DocumentSearchCustomizationMediator
.Constructor and Description |
---|
DocumentSearchCustomizationMediatorImpl() |
Modifier and Type | Method and Description |
---|---|
DocumentSearchCriteria |
customizeClearCriteria(DocumentType documentType,
DocumentSearchCriteria documentSearchCriteria)
Optionally performs a custom clearing of the given document search criteria if the given document type
implements a customized clear algorithm.
|
DocumentSearchCriteria |
customizeCriteria(DocumentType documentType,
DocumentSearchCriteria documentSearchCriteria)
Optionally performs customization of the given document search criteria in the cases where the document type
implements criteria customization.
|
DocumentSearchResultValues |
customizeResults(DocumentType documentType,
DocumentSearchCriteria documentSearchCriteria,
DocumentSearchResults results)
Optionally performs customization on the given set of document search results.
|
DocumentSearchResultSetConfiguration |
customizeResultSetConfiguration(DocumentType documentType,
DocumentSearchCriteria documentSearchCriteria)
Optionally provides configuration information that allows for document search result set customization to occur.
|
protected List<AttributeFields> |
flattenOrderedFieldMap(LinkedHashMap<String,AttributeFields> orderedFieldMap) |
DocumentSearchCriteriaConfiguration |
getDocumentSearchCriteriaConfiguration(DocumentType documentType)
Retrieves the document search criteria configuration for the given document type.
|
protected DocumentSearchCustomizationHandlerService |
loadCustomizationService(String applicationId) |
protected void |
mergeAttributeFields(List<AttributeFields> attributeFieldsList,
LinkedHashMap<String,AttributeFields> orderedFieldMap) |
List<RemotableAttributeError> |
validateLookupFieldParameters(DocumentType documentType,
DocumentSearchCriteria documentSearchCriteria)
Performs optional validation of document search criteria prior to execution of the search.
|
public DocumentSearchCustomizationMediatorImpl()
public DocumentSearchCriteriaConfiguration getDocumentSearchCriteriaConfiguration(DocumentType documentType)
DocumentSearchCustomizationMediator
getDocumentSearchCriteriaConfiguration
in interface DocumentSearchCustomizationMediator
documentType
- the document type for which to find document search criteria configuration, must not be nullpublic List<RemotableAttributeError> validateLookupFieldParameters(DocumentType documentType, DocumentSearchCriteria documentSearchCriteria)
DocumentSearchCustomizationMediator
validateLookupFieldParameters
in interface DocumentSearchCustomizationMediator
documentType
- the document type against which the lookup is being performeddocumentSearchCriteria
- the criteria representing the submission of the document searchpublic DocumentSearchCriteria customizeCriteria(DocumentType documentType, DocumentSearchCriteria documentSearchCriteria)
DocumentSearchCustomizationMediator
customizeCriteria
in interface DocumentSearchCustomizationMediator
documentType
- the document type against which to perform the criteria customization, should never be nulldocumentSearchCriteria
- the criteria to use as the starting point for customizationpublic DocumentSearchCriteria customizeClearCriteria(DocumentType documentType, DocumentSearchCriteria documentSearchCriteria)
DocumentSearchCustomizationMediator
customizeClearCriteria
in interface DocumentSearchCustomizationMediator
documentType
- the document type against which to check for a custom implementation of criteria clearingdocumentSearchCriteria
- the current criteria of the document search prior to being clearedpublic DocumentSearchResultValues customizeResults(DocumentType documentType, DocumentSearchCriteria documentSearchCriteria, DocumentSearchResults results)
DocumentSearchCustomizationMediator
DocumentSearchResultValue
objects, each of which are mapped to a
specific document id from the results and include additional key-value pairs for customized or synthesized
values for that document. This method can return a null value if no customization was performed.customizeResults
in interface DocumentSearchCustomizationMediator
documentType
- the document type to use when determining what customization logic (if any) should be invokeddocumentSearchCriteria
- the criteria of the document search which produced the supplied resultsresults
- the results of the document search which are being considered for customizationpublic DocumentSearchResultSetConfiguration customizeResultSetConfiguration(DocumentType documentType, DocumentSearchCriteria documentSearchCriteria)
DocumentSearchCustomizationMediator
DocumentSearchResultSetConfiguration
can be used by the calling code to determine how best
to render the lookup results.customizeResultSetConfiguration
in interface DocumentSearchCustomizationMediator
documentType
- the document type for which to customize result set configurationdocumentSearchCriteria
- the criteria that was used to perform the lookupprotected DocumentSearchCustomizationHandlerService loadCustomizationService(String applicationId)
protected void mergeAttributeFields(List<AttributeFields> attributeFieldsList, LinkedHashMap<String,AttributeFields> orderedFieldMap)
protected List<AttributeFields> flattenOrderedFieldMap(LinkedHashMap<String,AttributeFields> orderedFieldMap)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.