Package org.kuali.rice.kns.lookup
Interface LookupableHelperService
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractLookupableHelperServiceImpl,KualiLookupableHelperServiceImpl
Deprecated.
Only used in KNS classes, use KRAD.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Determines if underlying lookup bo has associated maintenance document that allows new or copy maintenance actions.booleanallowsNewOrCopyAction(String documentTypeName) Deprecated.Determines if underlying lookup bo has associated document that allows new or copy maintenance actions.voidDeprecated.Performs conditional logic (based on current search values or other parameters) to override field hidden, read-only, and required attributes previously set.voidDeprecated.booleancheckForAdditionalFields(Map<String, String> fieldValues) Deprecated.Determines if there should be more search fields rendered based on already entered search criteria.getActionUrls(org.kuali.rice.krad.bo.BusinessObject businessObject, List pkNames, BusinessObjectRestrictions businessObjectRestrictions) Deprecated.Builds string of action urls that can take place for a result rowDeprecated.Deprecated.Deprecated.This method returns the BusinessObjectDictionaryService used to initialize this helper service and is used by Lookupable implementations to retrieve the proper service.Deprecated.getCustomActionUrls(org.kuali.rice.krad.bo.BusinessObject businessObject, List pkNames) Deprecated.This method is a template method that allows child classes to return their own custom action html data.org.kuali.rice.krad.service.DataDictionaryServiceDeprecated.This method returns the DataDictionaryService used to initialize this helper service and is used by Lookupable implementations to retrieve the proper service.Deprecated.This method returns a list of the default columns used to sort the result set.Deprecated.Deprecated.Deprecated.get an extra fieldgetInquiryUrl(org.kuali.rice.krad.bo.BusinessObject businessObject, String propertyName) Deprecated.Builds string an inquiry url for drill down on a result fieldgetMaintenanceUrl(org.kuali.rice.krad.bo.BusinessObject businessObject, HtmlData htmlData, List pkNames, BusinessObjectRestrictions businessObjectRestrictions) Deprecated.This method builds a maintenance url.Deprecated.Deprecated.Returns a comma delimited list of primary key field labels, to be used on the UI to tell the user which fields were used to searchDeprecated.Gets the readOnlyFieldsList attribute.Deprecated.This method is public because some unit tests depend on it.Deprecated.getReturnUrl(org.kuali.rice.krad.bo.BusinessObject businessObject, Map fieldConversions, String lookupImpl, List returnKeys, BusinessObjectRestrictions businessObjectRestrictions) Deprecated.Builds the return value url.getReturnUrl(org.kuali.rice.krad.bo.BusinessObject businessObject, LookupForm lookupForm, List returnKeys, BusinessObjectRestrictions businessObjectRestrictions) Deprecated.This method builds the return urlgetRows()Deprecated.Returns a list of Row objects to be used to generate the search query screen Generally, setDataObjectClass needs to be called with a non-null value for proper operationList<? extends org.kuali.rice.krad.bo.BusinessObject> getSearchResults(Map<String, String> fieldValues) Deprecated.Performs a search and returns result list.booleanDeprecated.Determines if the actual size of search results (without limiting) is known.List<? extends org.kuali.rice.krad.bo.BusinessObject> getSearchResultsUnbounded(Map<String, String> fieldValues) Deprecated.Similar to getSearchResults, but the number of returned rows is not boundedDeprecated.This method gets the supplemental lookup menu if anygetTitle()Deprecated.booleanisResultReturnable(org.kuali.rice.krad.bo.BusinessObject object) Deprecated.Determines whether a given BusinessObject that's returned as one of the lookup's results is considered returnable, which means that for single-value lookups, a "return value" link may be rendered, and for multiple value lookups, a checkbox is rendered.booleanDeprecated.This method returns whether the previously executed getSearchResults used the primary key values to search, ignoring all non key valuesvoidperformClear(LookupForm lookupForm) Deprecated.This method allows for overriding the clear behaviorbooleanperformCustomAction(boolean ignoreErrors) Deprecated.performs custom actions.Collection<? extends org.kuali.rice.krad.bo.BusinessObject> performLookup(LookupForm lookupForm, Collection<ResultRow> resultTable, boolean bounded) Deprecated.This method performs the lookup and returns a collection of BO itemsvoidsetBackLocation(String backLocation) Deprecated.voidsetBusinessObjectClass(Class businessObjectClass) Deprecated.Initializes the lookup with a business object class.voidsetDocFormKey(String docFormKey) Deprecated.voidDeprecated.voidsetFieldConversions(Map fieldConversions) Deprecated.Sets the requested fields conversions in the lookupablevoidsetParameters(Map<String, String[]> parameters) Deprecated.Initializes the lookup with the given Map of parameters.voidsetReadOnlyFieldsList(List<String> readOnlyFieldsList) Deprecated.Sets the requested read only fields list in the lookupablebooleanDeprecated.booleanDeprecated.voidvalidateSearchParameters(Map<String, String> fieldValues) Deprecated.Validates the values filled in as search criteria, also checks for required field values.
-
Method Details
-
setBusinessObjectClass
Deprecated.Initializes the lookup with a business object class. This is set via the LookupableHelperService's consumer, namely the Lookupable implementation (or in cases of nesting a wrapping LookupableHelperService). The Lookupable in turn receives this value from the UI via LookupForm population.- Parameters:
businessObjectClass-
-
getBusinessObjectClass
Class getBusinessObjectClass()Deprecated.- Returns:
- Returns the dataObjectClass this lookupable is representing
-
setParameters
Deprecated.Initializes the lookup with the given Map of parameters.- Parameters:
parameters-
-
getParameters
Deprecated.- Returns:
- Returns the parameters passed to this lookup
-
getReturnLocation
String getReturnLocation()Deprecated.- Returns:
- String url for the location to return to after the lookup
-
getColumns
Deprecated.- Returns:
- List of Column objects used to render the result table
-
validateSearchParameters
Deprecated.Validates the values filled in as search criteria, also checks for required field values.- Parameters:
fieldValues- - Map of property/value pairs
-
getSearchResults
List<? extends org.kuali.rice.krad.bo.BusinessObject> getSearchResults(Map<String, String> fieldValues) Deprecated.Performs a search and returns result list.- Parameters:
fieldValues- - Map of property/value pairs- Returns:
- List of business objects found by the search
- Throws:
Exception
-
getSearchResultsUnbounded
List<? extends org.kuali.rice.krad.bo.BusinessObject> getSearchResultsUnbounded(Map<String, String> fieldValues) Deprecated.Similar to getSearchResults, but the number of returned rows is not bounded- Parameters:
fieldValues-- Returns:
-
getSearchResultsActualSizeKnown
boolean getSearchResultsActualSizeKnown()Deprecated.Determines if the actual size of search results (without limiting) is known. This should be false if search results are limited in SQL and there is post-SQL filtering of search results.- Returns:
- boolean
-
checkForAdditionalFields
Deprecated.Determines if there should be more search fields rendered based on already entered search criteria.- Parameters:
fieldValues- - Map of property/value pairs- Returns:
- boolean
-
getReturnUrl
HtmlData getReturnUrl(org.kuali.rice.krad.bo.BusinessObject businessObject, Map fieldConversions, String lookupImpl, List returnKeys, BusinessObjectRestrictions businessObjectRestrictions) Deprecated.Builds the return value url.- Parameters:
businessObject- - Instance of a business object containing the return valuesfieldConversions- - Map of conversions mapping bo names to caller field names.lookupImpl- - Current lookup impl namereturnKeys- - Keys to return- Returns:
- String url called when selecting a row from the result set
-
getReturnUrl
HtmlData getReturnUrl(org.kuali.rice.krad.bo.BusinessObject businessObject, LookupForm lookupForm, List returnKeys, BusinessObjectRestrictions businessObjectRestrictions) Deprecated.This method builds the return url- Parameters:
businessObject-lookupForm-returnKeys-- Returns:
-
getActionUrls
String getActionUrls(org.kuali.rice.krad.bo.BusinessObject businessObject, List pkNames, BusinessObjectRestrictions businessObjectRestrictions) Deprecated.Builds string of action urls that can take place for a result row- Parameters:
businessObject- - Instance of a business object containing the return valuespkNames- - List of primary key names- Returns:
- String rendered in actions column of result set
-
getCustomActionUrls
List<HtmlData> getCustomActionUrls(org.kuali.rice.krad.bo.BusinessObject businessObject, List pkNames) Deprecated.This method is a template method that allows child classes to return their own custom action html data.- Parameters:
businessObject-pkNames-- Returns:
-
getInquiryUrl
Deprecated.Builds string an inquiry url for drill down on a result field- Parameters:
businessObject- - Instance of a business object containing the return valuespropertyName- - Name of the property in the business object- Returns:
- String url called on selection of the result field
-
setFieldConversions
Deprecated.Sets the requested fields conversions in the lookupable- Parameters:
fieldConversions-
-
getReadOnlyFieldsList
Deprecated.Gets the readOnlyFieldsList attribute.- Returns:
- Returns the readOnlyFieldsList.
-
setReadOnlyFieldsList
Deprecated.Sets the requested read only fields list in the lookupable- Parameters:
readOnlyFieldsList-
-
getReturnKeys
Deprecated.This method is public because some unit tests depend on it.- Returns:
- a List of the names of fields which are marked in data dictionary as return fields.
-
getDocFormKey
String getDocFormKey()Deprecated. -
setDocFormKey
Deprecated. -
getDocNum
String getDocNum()Deprecated. -
setDocNum
Deprecated. -
getMaintenanceUrl
String getMaintenanceUrl(org.kuali.rice.krad.bo.BusinessObject businessObject, HtmlData htmlData, List pkNames, BusinessObjectRestrictions businessObjectRestrictions) Deprecated.This method builds a maintenance url.- Parameters:
businessObject-htmlData-pkNames-- Returns:
-
allowsMaintenanceNewOrCopyAction
boolean allowsMaintenanceNewOrCopyAction()Deprecated.Determines if underlying lookup bo has associated maintenance document that allows new or copy maintenance actions.- Returns:
- true if bo has maint doc that allows new or copy actions
-
allowsNewOrCopyAction
Deprecated.Determines if underlying lookup bo has associated document that allows new or copy maintenance actions.- Returns:
- true if bo has doc that allows new or copy actions
-
getRows
Deprecated.Returns a list of Row objects to be used to generate the search query screen Generally, setDataObjectClass needs to be called with a non-null value for proper operation- Returns:
-
getDataDictionaryService
org.kuali.rice.krad.service.DataDictionaryService getDataDictionaryService()Deprecated.This method returns the DataDictionaryService used to initialize this helper service and is used by Lookupable implementations to retrieve the proper service.- Returns:
-
getBusinessObjectDictionaryService
BusinessObjectDictionaryService getBusinessObjectDictionaryService()Deprecated.This method returns the BusinessObjectDictionaryService used to initialize this helper service and is used by Lookupable implementations to retrieve the proper service.- Returns:
-
setBackLocation
Deprecated. -
getBackLocation
String getBackLocation()Deprecated. -
performLookup
Collection<? extends org.kuali.rice.krad.bo.BusinessObject> performLookup(LookupForm lookupForm, Collection<ResultRow> resultTable, boolean bounded) Deprecated.This method performs the lookup and returns a collection of BO items- Parameters:
lookupForm-resultTable-bounded-- Returns:
- the list of result BOs, possibly bounded
-
getDefaultSortColumns
Deprecated.This method returns a list of the default columns used to sort the result set. For multiple value lookups, this method does not change when different columns are sorted.- Returns:
-
isSearchUsingOnlyPrimaryKeyValues
boolean isSearchUsingOnlyPrimaryKeyValues()Deprecated.This method returns whether the previously executed getSearchResults used the primary key values to search, ignoring all non key values- Returns:
- See Also:
-
getPrimaryKeyFieldLabels
String getPrimaryKeyFieldLabels()Deprecated.Returns a comma delimited list of primary key field labels, to be used on the UI to tell the user which fields were used to search- Returns:
- See Also:
-
isResultReturnable
boolean isResultReturnable(org.kuali.rice.krad.bo.BusinessObject object) Deprecated.Determines whether a given BusinessObject that's returned as one of the lookup's results is considered returnable, which means that for single-value lookups, a "return value" link may be rendered, and for multiple value lookups, a checkbox is rendered. Note that this can be part of an authorization mechanism, but not the complete authorization mechanism. The component that invoked the lookup/ lookup caller (e.g. document, nesting lookup, etc.) needs to check that the object that was passed to it was returnable as well because there are ways around this method (e.g. crafting a custom return URL).- Parameters:
object- an object from the search result set- Returns:
-
performClear
Deprecated.This method allows for overriding the clear behavior -
shouldDisplayHeaderNonMaintActions
boolean shouldDisplayHeaderNonMaintActions()Deprecated. -
shouldDisplayLookupCriteria
boolean shouldDisplayLookupCriteria()Deprecated. -
getSupplementalMenuBar
String getSupplementalMenuBar()Deprecated.This method gets the supplemental lookup menu if any- Returns:
- supplemental menu bar
-
getTitle
String getTitle()Deprecated.- Returns:
- String displayed as title for the lookup
-
performCustomAction
boolean performCustomAction(boolean ignoreErrors) Deprecated.performs custom actions. return true to reperform search- Parameters:
ignoreErrors-- Returns:
- boolean to reperform search
-
getExtraField
Field getExtraField()Deprecated.get an extra field- Returns:
-
applyFieldAuthorizationsFromNestedLookups
Deprecated. -
applyConditionalLogicForFieldDisplay
void applyConditionalLogicForFieldDisplay()Deprecated.Performs conditional logic (based on current search values or other parameters) to override field hidden, read-only, and required attributes previously set.
-