public interface Inquirable
Modifier and Type | Method and Description |
---|---|
void |
buildInquirableLink(Object dataObject,
String propertyName,
Inquiry inquiry)
Invoked by the
ViewHelperService to build a link to the
inquiry |
Class<?> |
getDataObjectClass()
Class for the data object the inquirable should retrieve
|
Object |
retrieveDataObject(Map<String,String> fieldValues)
Responsible for retrieving the data object from its data source
(database, service call, etc) based on the given map of field
name/value pairs
|
void |
setDataObjectClass(Class<?> dataObjectClass) |
Class<?> getDataObjectClass()
Must be set before invoking any other operations on the Inquirable
,
including the retrieveDataObject method
void setDataObjectClass(Class<?> dataObjectClass)
getDataObjectClass()
Object retrieveDataObject(Map<String,String> fieldValues)
Given map can contain more than fields (primary key or other) necessary for retrieving the data object. Method will use the fields necessary based on the metadata for the data object class configured on the inquirable
fieldValues
- - a map of string field names and valuesvoid buildInquirableLink(Object dataObject, String propertyName, Inquiry inquiry)
ViewHelperService
to build a link to the
inquiry
Note this is used primarily for custom Inquirable
implementations to customize the inquiry class or parameters for an
inquiry. Instead of building the full inquiry link, implementations can
make a callback to
org.kuali.rice.krad.uif.widget.Inquiry.buildInquiryLink(Object, String,
Class>, Map
dataObject
- - parent object for the inquiry propertypropertyName
- - name of the property the inquiry is being built forinquiry
- - instance of the inquiry widget being built for the propertyCopyright © 2005–2014 The Kuali Foundation. All rights reserved.