public class AttributeQueryServiceImpl extends Object implements AttributeQueryService
AttributeQueryService
that prepares the attribute queries and
delegates to the LookupService
Constructor and Description |
---|
AttributeQueryServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected Collection<?> |
executeAttributeQueryCriteria(AttributeQuery attributeQuery,
Map<String,String> queryParameters,
Map<String,String> additionalCriteria)
Prepares a query using the configured data object, parameters, and criteria, then executes
the query and returns the result Collection
|
protected Object |
executeAttributeQueryMethod(View view,
AttributeQuery attributeQuery,
Map<String,String> queryParameters)
Prepares the method configured on the attribute query then performs the method invocation
|
protected ConfigurationService |
getConfigurationService() |
protected LookupService |
getLookupService() |
AttributeQueryResult |
performFieldQuery(View view,
String fieldId,
Map<String,String> queryParameters)
Executes the
AttributeQuery associated with the field given by the id. |
AttributeQueryResult |
performFieldSuggestQuery(View view,
String fieldId,
String fieldTerm,
Map<String,String> queryParameters)
Executes the
AttributeQuery associated with the Suggest widget within
the field given by the Id. |
void |
setConfigurationService(ConfigurationService configurationService) |
void |
setLookupService(LookupService lookupService) |
public AttributeQueryServiceImpl()
public AttributeQueryResult performFieldSuggestQuery(View view, String fieldId, String fieldTerm, Map<String,String> queryParameters)
AttributeQueryService
AttributeQuery
associated with the Suggest
widget within
the field given by the Id. The given Map of key/value pairs are used to populate the criteria part of the
attribute query or as arguments to the query method. The fieldTerm parameter gives the current value
of the field that should be matched on. The query is expected to return a list of values to suggestperformFieldSuggestQuery
in interface AttributeQueryService
view
- - view instance for which the field belongsfieldId
- - id for the attribute field to perform the query forfieldTerm
- - the partial value of the query field to matchqueryParameters
- - map of key/value pairs that are parameters to the queryorg.kuali.rice.krad.uif.service.AttributeQueryService#performFieldSuggestQuery(
org.kuali.rice.krad.uif.view.View, java.lang.String, java.lang.String, java.util.Map)
public AttributeQueryResult performFieldQuery(View view, String fieldId, Map<String,String> queryParameters)
AttributeQueryService
AttributeQuery
associated with the field given by the id. The given Map of key/value
pairs are used to populate the criteria part of the attribute query or as arguments to the query method.
The query is expected to return a Map of field name/value pairs (unlike the suggest query which just returns
values for one field)performFieldQuery
in interface AttributeQueryService
view
- - view instance for which the field belongsfieldId
- - id for the attribute field to perform the query forqueryParameters
- - map of key/value pairs that are parameters to the queryorg.kuali.rice.krad.uif.service.AttributeQueryService#performFieldQuery(org.kuali.rice.krad.uif.view.View,
java.lang.String, java.util.Map)
protected Object executeAttributeQueryMethod(View view, AttributeQuery attributeQuery, Map<String,String> queryParameters)
view
- - view instance the field is contained withinattributeQuery
- - attribute query instance to executequeryParameters
- - map of query parameters that provide values for the method argumentsprotected Collection<?> executeAttributeQueryCriteria(AttributeQuery attributeQuery, Map<String,String> queryParameters, Map<String,String> additionalCriteria)
attributeQuery
- - attribute query instance to perform query forqueryParameters
- - map of parameters that will be used in the query criteriaadditionalCriteria
- - map of additional name/value pairs to add to the critieraprotected LookupService getLookupService()
public void setLookupService(LookupService lookupService)
protected ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.