Package org.kuali.rice.kns.lookup
Class LookupUtils
java.lang.Object
org.kuali.rice.kns.lookup.LookupUtils
Deprecated.
Only used in KNS classes, use KRAD.
Utility class for Lookup related utilities and helper methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplySearchResultsLimit(Class businessObjectClass, org.apache.ojb.broker.query.Criteria criteria, DatabasePlatform platform) Deprecated.This method applies the search results limit to the search criteria for this BOstatic StringconvertReferencesToSelectCollectionToString(Collection<String> referencesToRefresh) Deprecated.static StringconvertSetOfObjectIdsToString(Set<String> objectIds) Deprecated.convertStringOfObjectIdsToSet(String objectIdsString) Deprecated.static ComparatorfindBestValueComparatorForColumn(List<ResultRow> resultTable, int column) Deprecated.Given a list of results from a lookup, determines the best comparator to use on the String values of each of these columns This method exists because each cell (represented by the Column object) lists the comparator that should be used within it based on the property value class, so we gotta go thru the whole list and determine the best comparator to usegenerateCompositeSelectedObjectIds(Set<String> previouslySelectedObjectIds, Set<String> displayedObjectIds, Set<String> selectedObjectIds) Deprecated.Given 3 sets of object IDs: the set of selected object IDs before rendering the current page, the set of object IDs rendered on the page, and the set of object IDs selected on the page, computes the total set of selected object IDs.static IntegerDeprecated.This method the maximum rows per page in a multiple value lookupstatic IntegerDeprecated.static StringDeprecated.static StringgetBaseLookupUrl(boolean isMultipleValue) Deprecated.Deprecated.Deprecated.static IntegergetBusinessObjectSearchResultsLimit(Class businessObjectClass) Deprecated.Parses and returns the lookup result set limit for the passed in BO (if one exists)static DataDictionaryServiceDeprecated.static DateTimeServiceDeprecated.static BusinessObjectgetNestedBusinessObject(BusinessObject bo, String attributeName) Deprecated.This method walks through the nested attribute and finds the last business object in the chain and returns it (excluding the last parameter which is the actual attribute)static ClassgetNestedReferenceClass(BusinessObject businessObject, String attributeName) Deprecated.static PersistenceStructureServiceDeprecated.static MapgetPrimitiveReference(BusinessObject businessObject, String attributeName) Deprecated.static IntegergetSearchResultsLimit(Class businessObjectClass) Deprecated.Parses and returns the lookup result set limit, checking first for the limit for the BO being looked up, and then the global application limit if there isn't a limit specific to this BO.static booleanDeprecated.preProcessRangeFields(Map<String, String> lookupFormFields) Deprecated.Changes ranged search fields like from/to dates into the range operators the lookupable dao expects ("..",">" etc) this method modifies the passed in map and returns a list containing only the modified fields This method does not handle document searchable attributes.static voidremoveHiddenCriteriaFields(Class businessObjectClass, Map fieldValues) Deprecated.Removes fields identified in the data dictionary as hidden from the lookup field values.static FieldsetFieldDirectInquiry(BusinessObject businessObject, String attributeName, Field field) Deprecated.static FieldsetFieldQuickfinder(Object businessObject, String collectionName, boolean addLine, int index, String attributeName, Field field, List displayedFieldNames) Deprecated.static FieldsetFieldQuickfinder(Object businessObject, String collectionName, boolean addLine, int index, String attributeName, Field field, List displayedFieldNames, boolean noLookupField) Deprecated.static FieldsetFieldQuickfinder(Object businessObject, String attributeName, Field field, List displayedFieldNames) Deprecated.static FieldsetFieldQuickfinder(BusinessObject businessObject, String collectionName, boolean addLine, int index, String attributeName, Field field, List displayedFieldNames, SelectiveReferenceRefresher srr) Deprecated.static FieldsetFieldQuickfinder(BusinessObject businessObject, String attributeName, Field field, List displayedFieldNames, SelectiveReferenceRefresher srr) Deprecated.static StringtransformLookupUrlToMultiple(String lookupUrl) Deprecated.translateFieldConversions(String fieldConversionsString) Deprecated.This translates a , delimited list of pairs separated by a : into a Map of target --> lookup field conversions.translateReadOnlyFieldsToList(String readOnlyFieldsString) Deprecated.This makes a , delimited String list of fields separated by a , into a List of target --> lookup readOnlyFieldsList.
-
Constructor Details
-
LookupUtils
public LookupUtils()Deprecated.
-
-
Method Details
-
removeHiddenCriteriaFields
Deprecated.Removes fields identified in the data dictionary as hidden from the lookup field values. (This will remove Universal User ID and Person name from search requests when a user ID is entered.)- Parameters:
fieldValues-
-
getSearchResultsLimit
Deprecated.Parses and returns the lookup result set limit, checking first for the limit for the BO being looked up, and then the global application limit if there isn't a limit specific to this BO.- Parameters:
businessObjectClass- BO class to search on / get limit for. If the passed in type is not of typeBusinessObject, then the application-wide default limit is used.- Returns:
- result set limit (or null if there isn't one)
-
getApplicationSearchResultsLimit
Deprecated. -
isDistinctSearch
public static boolean isDistinctSearch()Deprecated. -
getBusinessObjectSearchResultsLimit
Deprecated.Parses and returns the lookup result set limit for the passed in BO (if one exists)- Parameters:
businessObjectClass-- Returns:
- result set limit for this BO (or null if the BO doesn't have a limit)
-
applySearchResultsLimit
public static void applySearchResultsLimit(Class businessObjectClass, org.apache.ojb.broker.query.Criteria criteria, DatabasePlatform platform) Deprecated.This method applies the search results limit to the search criteria for this BO- Parameters:
businessObjectClass- BO class to search on / get limit forcriteria- search criteriaplatform- database platform
-
getApplicationMaximumSearchResulsPerPageForMultipleValueLookups
Deprecated.This method the maximum rows per page in a multiple value lookup- Returns:
- See Also:
-
translateReadOnlyFieldsToList
Deprecated.This makes a , delimited String list of fields separated by a , into a List of target --> lookup readOnlyFieldsList.- Parameters:
readOnlyFields-- Returns:
- the List representation of the readOnlyFields String provided.
-
translateFieldConversions
Deprecated.This translates a , delimited list of pairs separated by a : into a Map of target --> lookup field conversions.- Parameters:
conversionFields-- Returns:
- the Map representation of the fieldConversions String provided.
-
setFieldQuickfinder
@Deprecated public static Field setFieldQuickfinder(Object businessObject, String attributeName, Field field, List displayedFieldNames) Deprecated. -
setFieldQuickfinder
@Deprecated public static Field setFieldQuickfinder(BusinessObject businessObject, String attributeName, Field field, List displayedFieldNames, SelectiveReferenceRefresher srr) Deprecated. -
setFieldQuickfinder
@Deprecated public static Field setFieldQuickfinder(BusinessObject businessObject, String collectionName, boolean addLine, int index, String attributeName, Field field, List displayedFieldNames, SelectiveReferenceRefresher srr) Deprecated.Sets a fields quickfinder class and field conversions for an attribute. -
setFieldQuickfinder
@Deprecated public static Field setFieldQuickfinder(Object businessObject, String collectionName, boolean addLine, int index, String attributeName, Field field, List displayedFieldNames) Deprecated.Sets a fields quickfinder class and field conversions for an attribute. -
setFieldQuickfinder
@Deprecated public static Field setFieldQuickfinder(Object businessObject, String collectionName, boolean addLine, int index, String attributeName, Field field, List displayedFieldNames, boolean noLookupField) Deprecated. -
getBaseLookupUrl
Deprecated. -
getBaseInquiryUrl
Deprecated. -
transformLookupUrlToMultiple
Deprecated. -
setFieldDirectInquiry
public static Field setFieldDirectInquiry(BusinessObject businessObject, String attributeName, Field field) Deprecated.- Parameters:
field-- Returns:
- the altered Field object
-
getPrimitiveReference
@Deprecated public static Map getPrimitiveReference(BusinessObject businessObject, String attributeName) Deprecated. -
getNestedBusinessObject
Deprecated.This method walks through the nested attribute and finds the last business object in the chain and returns it (excluding the last parameter which is the actual attribute)- Parameters:
attributeName-- Returns:
-
getNestedReferenceClass
Deprecated. -
convertReferencesToSelectCollectionToString
public static String convertReferencesToSelectCollectionToString(Collection<String> referencesToRefresh) Deprecated. -
convertSetOfObjectIdsToString
Deprecated. -
convertStringOfObjectIdsToSet
Deprecated. -
findBestValueComparatorForColumn
Deprecated.Given a list of results from a lookup, determines the best comparator to use on the String values of each of these columns This method exists because each cell (represented by the Column object) lists the comparator that should be used within it based on the property value class, so we gotta go thru the whole list and determine the best comparator to use- Parameters:
column-resultsTable-- Returns:
-
preProcessRangeFields
Deprecated.Changes ranged search fields like from/to dates into the range operators the lookupable dao expects ("..",">" etc) this method modifies the passed in map and returns a list containing only the modified fields This method does not handle document searchable attributes. This is handled in a second pass by the docsearch-specific DocumentSearchCriteriaTranslator -
generateCompositeSelectedObjectIds
public static Map<String,String> generateCompositeSelectedObjectIds(Set<String> previouslySelectedObjectIds, Set<String> displayedObjectIds, Set<String> selectedObjectIds) Deprecated.Given 3 sets of object IDs: the set of selected object IDs before rendering the current page, the set of object IDs rendered on the page, and the set of object IDs selected on the page, computes the total set of selected object IDs. Instead of storing it in a set, returns it in a map with the selected object ID as both the key and value- Parameters:
previouslySelectedObjectIds-displayedObjectIds-selectedObjectIds-- Returns:
-
getDataDictionaryService
Deprecated. -
getPersistenceStructureService
Deprecated. -
getBusinessObjectDictionaryService
Deprecated. -
getBusinessObjectMetaDataService
Deprecated. -
getDateTimeService
Deprecated.
-