Interface Inquirable
- All Known Implementing Classes:
InquirableImpl
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionvoidbuildInquirableLink(Object dataObject, String propertyName, Inquiry inquiry) Invoked by theViewHelperServiceto build a link to the inquirybooleancanViewInquiryNoteAttachment(org.kuali.rice.kim.api.identity.Person user) Checks appropriate permissions to determine whether the given user is authorized to download note attachments associated with this inquiry data object.Class<?> Class for the data object the inquirable should retrieveretrieveDataObject(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 pairsvoidsetDataObjectClass(Class<?> dataObjectClass)
-
Method Details
-
getDataObjectClass
Class<?> getDataObjectClass()Class for the data object the inquirable should retrieveMust be set before invoking any other operations on the
Inquirable, including the retrieveDataObject method- Returns:
- inquiry data object class
-
setDataObjectClass
- See Also:
-
retrieveDataObject
Responsible for retrieving the data object from its data source (database, service call, etc) based on the given map of field name/value pairsGiven 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
- Parameters:
fieldValues- - a map of string field names and values- Returns:
- the data object or null if not found
-
buildInquirableLink
Invoked by theViewHelperServiceto build a link to the inquiryNote this is used primarily for custom
Inquirableimplementations 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, Classinvalid input: '<'?>, Mapinvalid input: '<'String, String>) given an inquiry class and parameters to build the link field.- Parameters:
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 property
-
canViewInquiryNoteAttachment
boolean canViewInquiryNoteAttachment(org.kuali.rice.kim.api.identity.Person user) Checks appropriate permissions to determine whether the given user is authorized to download note attachments associated with this inquiry data object. Should probably be in an authorizer class, but since inquiries don't always have document or view associations this is the next best place.- Parameters:
user- - the user for whom to check authorization- Returns:
- whether or not the user is authorized to download note attachments
-