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)
DocumentSearchCustomizationMediatorgetDocumentSearchCriteriaConfiguration in interface DocumentSearchCustomizationMediatordocumentType - the document type for which to find document search criteria configuration, must not be nullpublic List<RemotableAttributeError> validateLookupFieldParameters(DocumentType documentType, DocumentSearchCriteria documentSearchCriteria)
DocumentSearchCustomizationMediatorvalidateLookupFieldParameters in interface DocumentSearchCustomizationMediatordocumentType - 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)
DocumentSearchCustomizationMediatorcustomizeCriteria in interface DocumentSearchCustomizationMediatordocumentType - 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)
DocumentSearchCustomizationMediatorcustomizeClearCriteria in interface DocumentSearchCustomizationMediatordocumentType - 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)
DocumentSearchCustomizationMediatorDocumentSearchResultValue 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 DocumentSearchCustomizationMediatordocumentType - 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)
DocumentSearchCustomizationMediatorDocumentSearchResultSetConfiguration can be used by the calling code to determine how best
to render the lookup results.customizeResultSetConfiguration in interface DocumentSearchCustomizationMediatordocumentType - 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–2016 The Kuali Foundation. All rights reserved.