org.kuali.rice.krad.labs.inquiry
Class TravelCompanyCategoryInquirable
java.lang.Object
org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl
org.kuali.rice.krad.inquiry.InquirableImpl
org.kuali.rice.krad.labs.inquiry.TravelCompanyCategoryInquirable
- All Implemented Interfaces:
- Serializable, Inquirable, ViewHelperService
public class TravelCompanyCategoryInquirable
- extends InquirableImpl
- implements Inquirable
InquirableImpl for TravelCompanyCategory
. This is a very limited implementation to make the
demonstration page work. Rather than query, it creates an instance of the data object manually.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
- Serialized Form
Method Summary |
void |
buildInquirableLink(Object dataObject,
String propertyName,
Inquiry inquiry)
Invoked by the ViewHelperService to build a link to the
inquiry |
Object |
retrieveDataObject(Map<String,String> fieldValues)
Finds primary and alternate key sets configured for the configured data object class and
then attempts to find a set with matching key/value pairs from the request, if a set is
found then calls the module service (for EBOs) or business object service to retrieve
the data object |
void |
setDataObjectClass(Class<?> dataObjectClass)
|
Methods inherited from class org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl |
addCustomContainerComponents, addLine, applyDefaultValues, applyDefaultValuesForCollectionLine, buildGrowlScript, buildInquiryLink, getConfigurationService, getDataObjectService, getDefaultValueForField, getExpressionEvaluatorFactory, getViewDictionaryService, linkAddedLine, logAndThrowRuntime, performAddLineValidation, performCustomApplyModel, performCustomFinalize, performCustomInitialization, performCustomViewFinalize, performCustomViewInitialization, performDeleteLineValidation, populateDefaultValueForField, populateViewFromRequestParameters, processAfterAddLine, processAfterDeleteLine, processAfterSaveLine, processAndAddLineObject, processBeforeAddLine, processBeforeSaveLine, processCollectionAddBlankLine, processCollectionAddLine, processCollectionDeleteLine, processCollectionSaveLine, processMultipleValueLookupResults, refreshReference, refreshReferences, retrieveEditModesAndActionFlags, setConfigurationService, setDataDictionaryService, setDataObjectService, setExpressionEvaluatorFactory, setLegacyDataAdapter, setViewContext, setViewDictionaryService |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TravelCompanyCategoryInquirable
public TravelCompanyCategoryInquirable()
setDataObjectClass
public void setDataObjectClass(Class<?> dataObjectClass)
- Description copied from class:
InquirableImpl
-
- Specified by:
setDataObjectClass
in interface Inquirable
- Overrides:
setDataObjectClass
in class InquirableImpl
- See Also:
Inquirable.getDataObjectClass()
retrieveDataObject
public Object retrieveDataObject(Map<String,String> fieldValues)
- Description copied from class:
InquirableImpl
- Finds primary and alternate key sets configured for the configured data object class and
then attempts to find a set with matching key/value pairs from the request, if a set is
found then calls the module service (for EBOs) or business object service to retrieve
the data object
Note at this point on business objects are supported by the default implementation
Responsible for retrieving the data object from its data source
(database, service call, etc) based on the given map of field
name/value pairs
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
- Specified by:
retrieveDataObject
in interface Inquirable
- Overrides:
retrieveDataObject
in class InquirableImpl
- Parameters:
fieldValues
- - a map of string field names and values
- Returns:
- the data object or null if not found
buildInquirableLink
public void buildInquirableLink(Object dataObject,
String propertyName,
Inquiry inquiry)
- Description copied from interface:
Inquirable
- Invoked by the
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) given an inquiry class and parameters to
build the link field.
- Specified by:
buildInquirableLink
in interface Inquirable
- Overrides:
buildInquirableLink
in class InquirableImpl
- 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- See Also:
Inquirable.buildInquirableLink(java.lang.Object,
java.lang.String, org.kuali.rice.krad.uif.widget.Inquiry)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.