Class ViewHelperServiceImpl
- All Implemented Interfaces:
Serializable,ViewHelperService
- Direct Known Subclasses:
DocumentViewHelperServiceImpl,InquirableImpl,LookupableImpl,MaintainableImpl
ViewHelperService- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomContainerComponents(ViewModel model, Container container) Hook for creating new components with code and adding them to a containerprotected intaddLine(Collection<Object> collection, Object addLine, boolean insertFirst) Add addLine to collection while giving derived classes an opportunity to override for things like sorting.voidapplyDefaultValues(Component component) Iterates through the view components picking up data fields and applying an default value configuredvoidapplyDefaultValuesForCollectionLine(CollectionGroup collectionGroup, Object line) Populate default values the model backing a line in a collection group.Builds JS script that will invoke the show growl method to display a growl message when the page is renderedvoidbuildInquiryLink(Object dataObject, String propertyName, Inquiry inquiry) Finds theInquirableconfigured for the given data object class and delegates to it for building the inquiry URL Invoked by theInquirywidget to build the inquiry linkprotected booleancontainsDuplicateLine(Object addLine, Collection<Object> collectionItems, List<String> duplicateLinePropertyNames) Determines whether the new line matches one of the entries in the existing collection, based on theduplicateLinePropertyNames.protected ObjectextractNewValuesAndAssign(String collectionPath, int selectedLineIndex, Map<String, String[]> parameters, List<Object> collection) Gets the current object from the collection and assigns the new values to it.protected StringextractSingleValue(String[] data) Extract a single value form an array of stringsfilterByReturnedFieldConversions(String multiValueReturnFields, Map<String, String> fieldConversions) Filters the field conversions by the multi value return fieldsprotected ConfigurationServiceGets the configuration serviceprotected DataDictionaryServiceGets the data dictionary serviceprotected org.kuali.rice.krad.data.DataObjectServicegetDefaultValueForField(Object object, DataField dataField) Retrieves the default value that is configured for the given data fieldGets an expression evaluator factory for use with the current view.protected LegacyDataAdapterGet the legacy data adapter.protected ViewDictionaryServiceGets the view dictionary serviceprotected booleanisDuplicateLine(Object addLine, Object collectionItem, List<String> duplicateLinePropertyNames) Determines whether the newaddLineis a duplicate ofcollectionItem, based on theduplicateLinePropertyNames.protected booleanlinkAddedLine(Object model, String collectionPath, int addedIndex) Set the parent for bi-directional relationships when adding a line to a collection.protected voidlogAndThrowRuntime(String message) Log an error message using log4j, then throw a runtime exception with the provided message.protected booleanperformAddLineValidation(ViewModel viewModel, Object newLine, String collectionId, String collectionPath) Performs validation on the new collection line before it is added to the corresponding collection.voidperformCustomApplyModel(LifecycleElement element, Object model) Hook for service overrides to perform custom apply model logic on the componentvoidperformCustomFinalize(LifecycleElement element, Object model, LifecycleElement parent) Hook for service overrides to perform custom component finalizationvoidHook for service overrides to perform custom initialization on the componentvoidperformCustomViewFinalize(Object model) Hook for service overrides to perform view component finalizationvoidHook for service overrides to perform custom initialization prior to view initialization.protected booleanperformDeleteLineValidation(ViewModel model, String collectionId, String collectionPath, Object deleteLine) Performs validation on the collection line before it is removed from the corresponding collection.voidpopulateDefaultValueForField(Object object, DataField dataField, String bindingPath) Applies the default value configured for the given field (if any) to the line given object property that is determined by the given binding pathvoidpopulateViewFromRequestParameters(Map<String, String> parameters) Uses reflection to find all fields defined on theViewinstance that have theRequestParameterannotation (which indicates the field may be populated by the request).voidprocessAfterAddLine(ViewModel model, Object lineObject, String collectionId, String collectionPath, boolean isValidLine) Hook for service overrides to process the new collection line after it has been added to the collectionvoidprocessAfterDeleteLine(ViewModel model, String collectionId, String collectionPath, int lineIndex) Hook for service overrides to process the collection line after it has been deletedvoidprocessAfterEditLine(ViewModel model, Object lineObject, String collectionId, String collectionPath) Hook for service overrides to process the edit collection line after it has been validatedvoidprocessAfterSaveLine(ViewModel model, Object lineObject, String collectionId, String collectionPath) Hook for service overrides to process the save collection line after it has been validatedvoidprocessAndAddLineObject(ViewModel viewModel, Object newLine, String collectionId, String collectionPath) Do all processing related to adding a line: calls processBeforeAddLine, performAddLineValidation, addLine, processAfterAddLinevoidprocessBeforeAddLine(ViewModel model, Object addLine, String collectionId, String collectionPath) Hook for service overrides to process the new collection line before it is added to the collectionvoidprocessBeforeEditLine(ViewModel model, Object lineObject, String collectionId, String collectionPath) Hook for service overrides to process the edit collection line before it is validatedvoidprocessBeforeSaveLine(ViewModel model, Object lineObject, String collectionId, String collectionPath) Hook for service overrides to process the save collection line before it is validatedvoidprocessCollectionAddBlankLine(ViewModel model, String collectionId, String collectionPath) Adds a blank line to the collectionvoidprocessCollectionAddLine(ViewModel model, String collectionId, String collectionPath) Invoked when the add line action is chosen for a collection.voidprocessCollectionCloseEditLineDialog(ViewModel model, String collectionId, String collectionPath, int selectedLineIndex) Invoked when the close edit line dialog action is chosen for a collection.voidprocessCollectionDeleteLine(ViewModel model, String collectionId, String collectionPath, int lineIndex) Invoked when the delete line action is chosen for a collection.voidprocessCollectionEditLine(ViewModel model, CollectionControllerServiceImpl.CollectionActionParameters parameterData) Invoked when the edit line action is chosen for a collection.voidprocessCollectionRetrieveEditLineDialog(ViewModel model, String collectionId, String collectionPath, int selectedLineIndex) Invoked when the retrieve edit line dialog action is chosen for a collection.voidprocessCollectionSaveLine(ViewModel model, CollectionControllerServiceImpl.CollectionActionParameters parameterData) Invoked when the save line action is chosen for a collection.voidprocessMultipleValueLookupResults(ViewModel model, String collectionId, String collectionPath, String multiValueReturnFields, String lookupResultValues) Process the results returned from a multi-value lookup populating the lines for the collection given by the pathvoidrefreshReference(Object parentObject, String referenceObjectName) Perform a database or data dictionary based refresh of a specific property objectvoidrefreshReferences(String referencesToRefresh) Update the reference objects listed in referencesToRefresh of the modelvoidInvokes the configuredPresentationControllerandAuthorizerfor the view to get the exported action flags and edit modes that can be used in conditional logicvoidsetConfigurationService(ConfigurationService configurationService) Sets the configuration servicevoidsetDataDictionaryService(DataDictionaryService dataDictionaryService) Sets the data dictionary serviceprotected voidsetDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService) voidsetElementContext(LifecycleElement element, LifecycleElement parent) Invoked to set up the context for an element.voidsetExpressionEvaluatorFactory(ExpressionEvaluatorFactory expressionEvaluatorFactory) Setter forgetExpressionEvaluatorFactory().voidsetLegacyDataAdapter(LegacyDataAdapter legacyDataAdapter) Set the legacy data adapter.voidSets up the view context which will be available to other components through their context for conditional logic evaluation.voidsetViewDictionaryService(ViewDictionaryService viewDictionaryService) Sets the view dictionary service
-
Constructor Details
-
ViewHelperServiceImpl
public ViewHelperServiceImpl()
-
-
Method Details
-
addCustomContainerComponents
Hook for creating new components with code and adding them to a containerSubclasses can override this method to check for one or more containers by id and then adding components created in code. This is invoked before the initialize method on the container component, so the full lifecycle will be run on the components returned.
New components instances can be retrieved using
ComponentFactory- Specified by:
addCustomContainerComponentsin interfaceViewHelperService- Parameters:
model- object containing the view datacontainer- container instance to add components to
-
buildInquiryLink
Finds theInquirableconfigured for the given data object class and delegates to it for building the inquiry URL Invoked by theInquirywidget to build the inquiry linkNote 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.- Specified by:
buildInquiryLinkin interfaceViewHelperService- 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
-
performCustomApplyModel
Hook for service overrides to perform custom apply model logic on the component- Specified by:
performCustomApplyModelin interfaceViewHelperService- Parameters:
element- component instance to apply model tomodel- Top level object containing the data (could be the model or a top level business object, dto)
-
performCustomFinalize
Hook for service overrides to perform custom component finalization- Specified by:
performCustomFinalizein interfaceViewHelperService- Parameters:
element- component instance to updatemodel- Top level object containing the dataparent- Parent component for the component being finalized
-
performCustomInitialization
Hook for service overrides to perform custom initialization on the component- Specified by:
performCustomInitializationin interfaceViewHelperService- Parameters:
element- component instance to initialize
-
performCustomViewFinalize
Hook for service overrides to perform view component finalization- Specified by:
performCustomViewFinalizein interfaceViewHelperService- Parameters:
model- Top level object containing the data
-
performCustomViewInitialization
Hook for service overrides to perform custom initialization prior to view initialization.- Specified by:
performCustomViewInitializationin interfaceViewHelperService- Parameters:
model- The model.
-
processAfterAddLine
public void processAfterAddLine(ViewModel model, Object lineObject, String collectionId, String collectionPath, boolean isValidLine) Hook for service overrides to process the new collection line after it has been added to the collection- Specified by:
processAfterAddLinein interfaceViewHelperService- Parameters:
model- object instance that contain's the views datalineObject- the new line that was addedcollectionId- the id of the collection being added tocollectionPath- the path to the collection being modifiedisValidLine- indicates if the line is valid
-
processAfterDeleteLine
public void processAfterDeleteLine(ViewModel model, String collectionId, String collectionPath, int lineIndex) Hook for service overrides to process the collection line after it has been deleted- Specified by:
processAfterDeleteLinein interfaceViewHelperService- Parameters:
model- object instance that contains the views datacollectionId- the id of the collection being added tocollectionPath- the path to the collection being modifiedlineIndex- index of the line that was deleted
-
processAfterSaveLine
public void processAfterSaveLine(ViewModel model, Object lineObject, String collectionId, String collectionPath) Hook for service overrides to process the save collection line after it has been validated- Specified by:
processAfterSaveLinein interfaceViewHelperService- Parameters:
model- object instance that contains the views datalineObject- the line instance to be processedcollectionId- the id of the collection being added tocollectionPath- the path to the collection being modified
-
processBeforeAddLine
public void processBeforeAddLine(ViewModel model, Object addLine, String collectionId, String collectionPath) Hook for service overrides to process the new collection line before it is added to the collection- Specified by:
processBeforeAddLinein interfaceViewHelperService- Parameters:
model- object instance that contain's the view's dataaddLine- the new line instance to be processedcollectionId- the id of the collection being added tocollectionPath- the path to the collection being modified
-
processBeforeSaveLine
public void processBeforeSaveLine(ViewModel model, Object lineObject, String collectionId, String collectionPath) Hook for service overrides to process the save collection line before it is validated- Specified by:
processBeforeSaveLinein interfaceViewHelperService- Parameters:
model- object instance that contain's the views datalineObject- the line instance to be processedcollectionId- the id of the collection being added tocollectionPath- the path to the collection being modified
-
processBeforeEditLine
public void processBeforeEditLine(ViewModel model, Object lineObject, String collectionId, String collectionPath) Hook for service overrides to process the edit collection line before it is validated- Specified by:
processBeforeEditLinein interfaceViewHelperService- Parameters:
model- object instance that contain's the views datalineObject- the line instance to be processedcollectionId- the id of the collection being edited fromcollectionPath- the path to the collection being modified
-
processAfterEditLine
public void processAfterEditLine(ViewModel model, Object lineObject, String collectionId, String collectionPath) Hook for service overrides to process the edit collection line after it has been validated- Specified by:
processAfterEditLinein interfaceViewHelperService- Parameters:
model- object instance that contains the views datalineObject- the line instance to be processedcollectionId- the id of the collection being edited fromcollectionPath- the path to the collection being modified
-
processCollectionAddBlankLine
public void processCollectionAddBlankLine(ViewModel model, String collectionId, String collectionPath) Adds a blank line to the collectionAdds a new collection item to the collection and applies any default values.
- Specified by:
processCollectionAddBlankLinein interfaceViewHelperService- Parameters:
model- Top level object containing the view data including the collection and new linecollectionId- the id of the collection being added tocollectionPath- the path to the collection being modified
-
processCollectionAddLine
Invoked when the add line action is chosen for a collection. The collection path gives the full path to the collection that action was selected for. Here validation can be performed on the line as well as further processing on the line such as defaults. If the action is valid the line should be added to the collection, otherwise errors should be added to the globalMessageMap- Specified by:
processCollectionAddLinein interfaceViewHelperService- Parameters:
model- Top level object containing the view data including the collection and new linecollectionId- the id of the collection being added tocollectionPath- the path to the collection being modified
-
processAndAddLineObject
public void processAndAddLineObject(ViewModel viewModel, Object newLine, String collectionId, String collectionPath) Do all processing related to adding a line: calls processBeforeAddLine, performAddLineValidation, addLine, processAfterAddLine- Specified by:
processAndAddLineObjectin interfaceViewHelperService- Parameters:
viewModel- object instance that contain's the view's datanewLine- the new line instance to be processedcollectionId- the id of the collection being added tocollectionPath- the path to the collection being modified
-
processCollectionDeleteLine
public void processCollectionDeleteLine(ViewModel model, String collectionId, String collectionPath, int lineIndex) Invoked when the delete line action is chosen for a collection. The collection path gives the full path to the collection that action was selected for. Here validation can be performed to make sure the action is allowed. If the action is valid the line should be deleted from the collection, otherwise errors should be added to the globalMessageMap- Specified by:
processCollectionDeleteLinein interfaceViewHelperService- Parameters:
model- Top level object containing the view data including the collectioncollectionId- the id of the collection being added tocollectionPath- the path to the collection being modifiedlineIndex- index of the collection line that was selected for removal
-
processCollectionRetrieveEditLineDialog
public void processCollectionRetrieveEditLineDialog(ViewModel model, String collectionId, String collectionPath, int selectedLineIndex) Invoked when the retrieve edit line dialog action is chosen for a collection. This method only does server side validation by default but creates hook for client applications to add additional logic like persisting data.- Specified by:
processCollectionRetrieveEditLineDialogin interfaceViewHelperService- Parameters:
model- Top level object containing the view data including the collection and new linecollectionId- the id of the collection being added tocollectionPath- the path to the collection being modifiedselectedLineIndex- The index within the collection of the line to edit.
-
processCollectionEditLine
public void processCollectionEditLine(ViewModel model, CollectionControllerServiceImpl.CollectionActionParameters parameterData) Invoked when the edit line action is chosen for a collection. This method only does server side validation by default but creates hook for client applications to add additional logic like persisting data.- Specified by:
processCollectionEditLinein interfaceViewHelperService- Parameters:
model- Top level object containing the view data including the collection and new lineparameterData- the parameters for edit line request
-
processCollectionCloseEditLineDialog
public void processCollectionCloseEditLineDialog(ViewModel model, String collectionId, String collectionPath, int selectedLineIndex) Invoked when the close edit line dialog action is chosen for a collection.- Specified by:
processCollectionCloseEditLineDialogin interfaceViewHelperService- Parameters:
model- Top level object containing the view data including the collection and new linecollectionId- the id of the collection being added tocollectionPath- the path to the collection being modifiedselectedLineIndex- The index within the collection of the line to edit.
-
processCollectionSaveLine
public void processCollectionSaveLine(ViewModel model, CollectionControllerServiceImpl.CollectionActionParameters parameterData) Invoked when the save line action is chosen for a collection. This method only does server side validation by default but creates hook for client applications to add additional logic like persisting data.- Specified by:
processCollectionSaveLinein interfaceViewHelperService- Parameters:
model- Top level object containing the view data including the collection and new lineparameterData- the parameters for save line request
-
extractNewValuesAndAssign
protected Object extractNewValuesAndAssign(String collectionPath, int selectedLineIndex, Map<String, String[]> parameters, List<Object> collection) Gets the current object from the collection and assigns the new values to it.- Parameters:
collectionPath- the path to the collection being modifiedselectedLineIndex- The index within the collection of the line to save.parameters- the path to the collection being modifiedcollection- the collection of the lines of data- Returns:
- true if the action is allowed and the line should be removed, false if the line should not be removed
-
extractSingleValue
Extract a single value form an array of strings- Parameters:
data- the array of strings
-
processMultipleValueLookupResults
public void processMultipleValueLookupResults(ViewModel model, String collectionId, String collectionPath, String multiValueReturnFields, String lookupResultValues) Process the results returned from a multi-value lookup populating the lines for the collection given by the path- Specified by:
processMultipleValueLookupResultsin interfaceViewHelperService- Parameters:
model- object containing the view datacollectionId- the id of the collection being added tocollectionPath- the path to the collection being modifiedmultiValueReturnFields- String containing the selected line field nameslookupResultValues- String containing the selected line values
-
addLine
Add addLine to collection while giving derived classes an opportunity to override for things like sorting.- Parameters:
collection- the Collection to add the given addLine toaddLine- the line to add to the given collectioninsertFirst- indicates if the item should be inserted as the first item- Returns:
- the index at which the item was added to the collection, or -1 if it was not added
-
linkAddedLine
Set the parent for bi-directional relationships when adding a line to a collection.- Parameters:
model- the view datacollectionPath- the path to the collection being linkedaddedIndex- the index of the added line- Returns:
- whether the linked line needs further processing
-
performAddLineValidation
protected boolean performAddLineValidation(ViewModel viewModel, Object newLine, String collectionId, String collectionPath) Performs validation on the new collection line before it is added to the corresponding collection.- Parameters:
viewModel- object instance that contain's the view's datanewLine- the new line instance to be processedcollectionId- the id of the collection being added tocollectionPath- the path to the collection being modified
-
filterByReturnedFieldConversions
protected Map<String,String> filterByReturnedFieldConversions(String multiValueReturnFields, Map<String, String> fieldConversions) Filters the field conversions by the multi value return fields- Parameters:
multiValueReturnFields- the return fields to filter by, as a comma separated stringfieldConversions- the map of field conversions to filter- Returns:
- a
Mapcontaining the filtered field conversions
-
containsDuplicateLine
protected boolean containsDuplicateLine(Object addLine, Collection<Object> collectionItems, List<String> duplicateLinePropertyNames) Determines whether the new line matches one of the entries in the existing collection, based on theduplicateLinePropertyNames.- Parameters:
addLine- new line instance to validatecollectionItems- items in the collectionduplicateLinePropertyNames- property names to check for duplicates- Returns:
- true if there is a duplicate line, false otherwise
-
isDuplicateLine
protected boolean isDuplicateLine(Object addLine, Object collectionItem, List<String> duplicateLinePropertyNames) Determines whether the newaddLineis a duplicate ofcollectionItem, based on theduplicateLinePropertyNames.- Parameters:
addLine- new line instance to validatecollectionItem- existing instance to validateduplicateLinePropertyNames- the property names to check for duplicates- Returns:
- true if
addLineis a duplicate ofcollectionItem, false otherwise
-
performDeleteLineValidation
protected boolean performDeleteLineValidation(ViewModel model, String collectionId, String collectionPath, Object deleteLine) Performs validation on the collection line before it is removed from the corresponding collection.- Parameters:
model- object instance that contain's the view's datacollectionId- the id of the collection being added tocollectionPath- the path to the collection being modifieddeleteLine- line that will be removed- Returns:
- true if the action is allowed and the line should be removed, false if the line should not be removed
-
applyDefaultValuesForCollectionLine
Populate default values the model backing a line in a collection group.- Specified by:
applyDefaultValuesForCollectionLinein interfaceViewHelperService- Parameters:
collectionGroup- The collection group.line- The model object backing the line.
-
applyDefaultValues
Iterates through the view components picking up data fields and applying an default value configured- Specified by:
applyDefaultValuesin interfaceViewHelperService- Parameters:
component- component that should be checked for default values
-
populateViewFromRequestParameters
Uses reflection to find all fields defined on theViewinstance that have theRequestParameterannotation (which indicates the field may be populated by the request).The
Viewinstance is inspected for fields that have theRequestParameterannotation and if corresponding parameters are found in the request parameter map, the request value is used to set the view property. The Map of parameter name/values that match are placed in the view so they can be later retrieved to rebuild the view. CustomViewServiceHelperimplementations can add additional parameter key/value pairs to the returned map if necessary.For each field found, if there is a corresponding key/value pair in the request parameters, the value is used to populate the field. In addition, any conditional properties of
PropertyReplacersconfigured for the field are cleared so that the request parameter value does not get overridden by the dictionary conditional logic- Specified by:
populateViewFromRequestParametersin interfaceViewHelperService- Parameters:
parameters- The request parameters that apply to the view.- See Also:
-
buildGrowlScript
Builds JS script that will invoke the show growl method to display a growl message when the page is renderedA growl call will be created for any explicit growl messages added to the message map.
Growls are only generated if @{link org.kuali.rice.krad.uif.view.View#isGrowlMessagingEnabled()} is enabled. If not, the growl messages are set as info messages for the page
- Specified by:
buildGrowlScriptin interfaceViewHelperService- Returns:
- JS script string for generated growl messages
-
populateDefaultValueForField
Applies the default value configured for the given field (if any) to the line given object property that is determined by the given binding path- Specified by:
populateDefaultValueForFieldin interfaceViewHelperService- Parameters:
object- object that should be populateddataField- field to check for configured default valuebindingPath- path to the property on the object that should be populated
-
getDefaultValueForField
Retrieves the default value that is configured for the given data fieldThe field's default value is determined in the following order:
- If default value on field is non-blank
- If expression is found for default value
- If default value finder class is configured for field
- If an expression is found for default values
- If default values on field is not null
- Specified by:
getDefaultValueForFieldin interfaceViewHelperService- Parameters:
object- object that should be populateddataField- field to retrieve default value for- Returns:
- Object default value for field or null if value was not found
-
refreshReference
Perform a database or data dictionary based refresh of a specific property objectThe object needs to be of type PersistableBusinessObject.
- Specified by:
refreshReferencein interfaceViewHelperService- Parameters:
parentObject- parent object that references the object to be refreshedreferenceObjectName- property name of the parent object to be refreshed
-
refreshReferences
Update the reference objects listed in referencesToRefresh of the modelThe the individual references in the referencesToRefresh string are separated by KRADConstants.REFERENCES_TO_REFRESH_SEPARATOR).
- Specified by:
refreshReferencesin interfaceViewHelperService- Parameters:
referencesToRefresh- list of references to refresh (
-
retrieveEditModesAndActionFlags
public void retrieveEditModesAndActionFlags()Invokes the configuredPresentationControllerandAuthorizerfor the view to get the exported action flags and edit modes that can be used in conditional logic- Specified by:
retrieveEditModesAndActionFlagsin interfaceViewHelperService
-
setViewContext
public void setViewContext()Sets up the view context which will be available to other components through their context for conditional logic evaluation.- Specified by:
setViewContextin interfaceViewHelperService
-
setElementContext
Invoked to set up the context for an element.Context is primarily used for expression evaluation. Any object in the context for a component will be available as a variable within expressions.
- Specified by:
setElementContextin interfaceViewHelperService- Parameters:
element- element to setup context forparent- parent of the given element
-
getCurrentPersonContactId
-
getConfigurationService
Gets the configuration service- Returns:
- configuration service
-
setConfigurationService
Sets the configuration service- Parameters:
configurationService- The configuration service.
-
getDataDictionaryService
Gets the data dictionary service- Returns:
- data dictionary service
-
setDataDictionaryService
Sets the data dictionary service- Parameters:
dataDictionaryService- The dictionary service.
-
getViewDictionaryService
Gets the view dictionary service- Returns:
- view dictionary service
-
setViewDictionaryService
Sets the view dictionary service- Parameters:
viewDictionaryService- The view dictionary service.
-
getExpressionEvaluatorFactory
Gets an expression evaluator factory for use with the current view.- Specified by:
getExpressionEvaluatorFactoryin interfaceViewHelperService- Returns:
- expression evaluator factory
-
setExpressionEvaluatorFactory
Setter forgetExpressionEvaluatorFactory().- Parameters:
expressionEvaluatorFactory- expression evaluator factory
-
getLegacyDataAdapter
Get the legacy data adapter.- Returns:
- The legacy data adapter.
-
getDataObjectService
protected org.kuali.rice.krad.data.DataObjectService getDataObjectService() -
setDataObjectService
protected void setDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService) -
setLegacyDataAdapter
Set the legacy data adapter.- Parameters:
legacyDataAdapter- The legacy data adapter.
-
logAndThrowRuntime
Log an error message using log4j, then throw a runtime exception with the provided message.- Parameters:
message- The error message.
-