|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kns.lookup.LookupUtils
@Deprecated public class LookupUtils
Utility class for Lookup related utilities and helper methods.
Constructor Summary | |
---|---|
LookupUtils()
Deprecated. |
Method Summary | |
---|---|
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 |
static String |
convertReferencesToSelectCollectionToString(Collection<String> referencesToRefresh)
Deprecated. |
static String |
convertSetOfObjectIdsToString(Set<String> objectIds)
Deprecated. |
static Set<String> |
convertStringOfObjectIdsToSet(String objectIdsString)
Deprecated. |
static Comparator |
findBestValueComparatorForColumn(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 use |
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. |
static Integer |
getApplicationMaximumSearchResulsPerPageForMultipleValueLookups()
Deprecated. This method the maximum rows per page in a multiple value lookup |
static Integer |
getApplicationSearchResultsLimit()
Deprecated. |
static String |
getBaseInquiryUrl()
Deprecated. |
static String |
getBaseLookupUrl(boolean isMultipleValue)
Deprecated. |
static BusinessObjectDictionaryService |
getBusinessObjectDictionaryService()
Deprecated. |
static BusinessObjectMetaDataService |
getBusinessObjectMetaDataService()
Deprecated. |
static Integer |
getBusinessObjectSearchResultsLimit(Class businessObjectClass)
Deprecated. Parses and returns the lookup result set limit for the passed in BO (if one exists) |
static DataDictionaryService |
getDataDictionaryService()
Deprecated. |
static DateTimeService |
getDateTimeService()
Deprecated. |
static BusinessObject |
getNestedBusinessObject(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 Class |
getNestedReferenceClass(BusinessObject businessObject,
String attributeName)
Deprecated. |
static PersistenceStructureService |
getPersistenceStructureService()
Deprecated. |
static Map |
getPrimitiveReference(BusinessObject businessObject,
String attributeName)
Deprecated. |
static Integer |
getSearchResultsLimit(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 Map<String,String> |
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 void |
removeHiddenCriteriaFields(Class businessObjectClass,
Map fieldValues)
Deprecated. Removes fields identified in the data dictionary as hidden from the lookup field values. |
static Field |
setFieldDirectInquiry(BusinessObject businessObject,
String attributeName,
Field field)
Deprecated. |
static Field |
setFieldQuickfinder(BusinessObject businessObject,
String collectionName,
boolean addLine,
int index,
String attributeName,
Field field,
List displayedFieldNames)
Deprecated. |
static Field |
setFieldQuickfinder(BusinessObject businessObject,
String collectionName,
boolean addLine,
int index,
String attributeName,
Field field,
List displayedFieldNames,
boolean noLookupField)
Deprecated. |
static Field |
setFieldQuickfinder(BusinessObject businessObject,
String collectionName,
boolean addLine,
int index,
String attributeName,
Field field,
List displayedFieldNames,
SelectiveReferenceRefresher srr)
Deprecated. |
static Field |
setFieldQuickfinder(BusinessObject businessObject,
String attributeName,
Field field,
List displayedFieldNames)
Deprecated. |
static Field |
setFieldQuickfinder(BusinessObject businessObject,
String attributeName,
Field field,
List displayedFieldNames,
SelectiveReferenceRefresher srr)
Deprecated. |
static String |
transformLookupUrlToMultiple(String lookupUrl)
Deprecated. |
static Map<String,String> |
translateFieldConversions(String fieldConversionsString)
Deprecated. This translates a , delimited list of pairs separated by a : into a Map of target --> lookup field conversions. |
static List<String> |
translateReadOnlyFieldsToList(String readOnlyFieldsString)
Deprecated. This makes a , delimited String list of fields separated by a , into a List of target --> lookup readOnlyFieldsList. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LookupUtils()
Method Detail |
---|
public static void removeHiddenCriteriaFields(Class businessObjectClass, Map fieldValues)
fieldValues
- public static Integer getSearchResultsLimit(Class businessObjectClass)
businessObjectClass
- BO class to search on / get limit for. If the passed in type is not of type
BusinessObject
, then the application-wide default limit is used.
public static Integer getApplicationSearchResultsLimit()
public static Integer getBusinessObjectSearchResultsLimit(Class businessObjectClass)
businessObjectClass
-
public static void applySearchResultsLimit(Class businessObjectClass, org.apache.ojb.broker.query.Criteria criteria, DatabasePlatform platform)
businessObjectClass
- BO class to search on / get limit forcriteria
- search criteriaplatform
- database platformpublic static Integer getApplicationMaximumSearchResulsPerPageForMultipleValueLookups()
org.kuali.KRADConstants.SystemGroupParameterNames#MULTIPLE_VALUE_LOOKUP_RESULTS_PER_PAGE
public static List<String> translateReadOnlyFieldsToList(String readOnlyFieldsString)
readOnlyFields
-
public static Map<String,String> translateFieldConversions(String fieldConversionsString)
conversionFields
-
@Deprecated public static Field setFieldQuickfinder(BusinessObject businessObject, String attributeName, Field field, List displayedFieldNames)
@Deprecated public static Field setFieldQuickfinder(BusinessObject businessObject, String attributeName, Field field, List displayedFieldNames, SelectiveReferenceRefresher srr)
@Deprecated public static Field setFieldQuickfinder(BusinessObject businessObject, String collectionName, boolean addLine, int index, String attributeName, Field field, List displayedFieldNames, SelectiveReferenceRefresher srr)
@Deprecated public static Field setFieldQuickfinder(BusinessObject businessObject, String collectionName, boolean addLine, int index, String attributeName, Field field, List displayedFieldNames)
@Deprecated public static Field setFieldQuickfinder(BusinessObject businessObject, String collectionName, boolean addLine, int index, String attributeName, Field field, List displayedFieldNames, boolean noLookupField)
@Deprecated public static String getBaseLookupUrl(boolean isMultipleValue)
@Deprecated public static String getBaseInquiryUrl()
public static String transformLookupUrlToMultiple(String lookupUrl)
public static Field setFieldDirectInquiry(BusinessObject businessObject, String attributeName, Field field)
field
-
@Deprecated public static Map getPrimitiveReference(BusinessObject businessObject, String attributeName)
public static BusinessObject getNestedBusinessObject(BusinessObject bo, String attributeName)
attributeName
-
public static Class getNestedReferenceClass(BusinessObject businessObject, String attributeName)
public static String convertReferencesToSelectCollectionToString(Collection<String> referencesToRefresh)
public static String convertSetOfObjectIdsToString(Set<String> objectIds)
public static Set<String> convertStringOfObjectIdsToSet(String objectIdsString)
public static Comparator findBestValueComparatorForColumn(List<ResultRow> resultTable, int column)
resultsTable
- column
-
public static Map<String,String> preProcessRangeFields(Map<String,String> lookupFormFields)
public static Map<String,String> generateCompositeSelectedObjectIds(Set<String> previouslySelectedObjectIds, Set<String> displayedObjectIds, Set<String> selectedObjectIds)
previouslySelectedObjectIds
- displayedObjectIds
- selectedObjectIds
-
public static DataDictionaryService getDataDictionaryService()
public static PersistenceStructureService getPersistenceStructureService()
public static BusinessObjectDictionaryService getBusinessObjectDictionaryService()
public static BusinessObjectMetaDataService getBusinessObjectMetaDataService()
public static DateTimeService getDateTimeService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |