Java Doc for LookupUtils.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » core » lookup » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » Kuali Financial System » org.kuali.core.lookup 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.kuali.core.lookup.LookupUtils

LookupUtils
public class LookupUtils (Code)
This is a static utility class for Lookup related utilities and helper methods.



Constructor Summary
public  LookupUtils()
    

Method Summary
public static  voidapplySearchResultsLimit(Criteria criteria, KualiDBPlatform platform)
    
public static  StringconvertReferencesToSelectCollectionToString(Collection<String> referencesToRefresh)
    
public static  StringconvertSetOfObjectIdsToString(Set<String> objectIds)
    
public static  Set<String>convertStringOfObjectIdsToSet(String objectIdsString)
    
public static  ComparatorfindBestValueComparatorForColumn(List<ResultRow> resultTable, int column)
    
public static  StringforceUppercase(Class boClass, String fieldName, String fieldValue)
     This method uses the DataDictionary to determine whether to force uppercase the value, and if it should, then it does the uppercase, and returns the upper-cased value.
Parameters:
  boClass - Parent BO class that the fieldName is a member of.
Parameters:
  fieldName - Name of the field to be forced to uppercase.
Parameters:
  fieldValue - Value of the field that may be uppercased.
public static  Map<String, String>forceUppercase(Class boClass, Map<String, String> fieldValues)
     This method uses the DataDictionary to determine whether to force uppercase the values, and if it should, then it does the uppercase, and returns the upper-cased Map of fieldname/fieldValue pairs.
Parameters:
  boClass - Parent BO class that the fieldName is a member of.
Parameters:
  fieldValues - A Map where the key is the fieldName and the value is the fieldValue.
public static  Map<String, String>generateCompositeSelectedObjectIds(Set<String> previouslySelectedObjectIds, Set<String> displayedObjectIds, Set<String> selectedObjectIds)
     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.
public static  IntegergetApplicationMaximumSearchResulsPerPageForMultipleValueLookups()
    
public static  IntegergetApplicationSearchResultsLimit()
    
public static  BusinessObjectgetNestedBusinessObject(BusinessObject bo, String attributeName)
    
public static  ClassgetNestedReferenceClass(BusinessObject businessObject, String attributeName)
    
public static  MapgetPrimitiveReference(BusinessObject businessObject, String attributeName)
    
public static  voidremoveHiddenCriteriaFields(Class businessObjectClass, Map fieldValues)
     Removes fields idenfied in the data dictionary as hidden from the lookup field values.
public  voidsetBusinessObjectDictionaryService(BusinessObjectDictionaryService businessObjectDictionaryService)
    
public  voidsetBusinessObjectMetaDataService(BusinessObjectMetaDataService businessObjectMetaDataService)
     Sets the businessObjectMetaDataService attribute value.
public  voidsetDataDictionaryService(DataDictionaryService ddService)
    
public static  FieldsetFieldQuickfinder(BusinessObject businessObject, String attributeName, Field field, List displayedFieldNames)
    
public static  FieldsetFieldQuickfinder(BusinessObject businessObject, String attributeName, Field field, List displayedFieldNames, SelectiveReferenceRefresher srr)
    
public static  FieldsetFieldQuickfinder(BusinessObject businessObject, String collectionName, boolean addLine, int index, String attributeName, Field field, List displayedFieldNames, SelectiveReferenceRefresher srr)
     Sets a fields quickfinder class and field conversions for an attribute.
public static  FieldsetFieldQuickfinder(BusinessObject businessObject, String collectionName, boolean addLine, int index, String attributeName, Field field, List displayedFieldNames)
     Sets a fields quickfinder class and field conversions for an attribute.
public  voidsetPersistenceStructureService(PersistenceStructureService persistenceStructureService)
    
public static  MaptranslateFieldConversions(String fieldConversionsString)
     This translates a , delimited list of pairs separated by a : into a Map of target --> lookup field conversions.
public static  List<String>translateReadOnlyFieldsToList(String readOnlyFieldsString)
     This makes a , delimited String list of fields separated by a , into a List of target --> lookup readOnlyFieldsList.


Constructor Detail
LookupUtils
public LookupUtils()(Code)




Method Detail
applySearchResultsLimit
public static void applySearchResultsLimit(Criteria criteria, KualiDBPlatform platform)(Code)



convertReferencesToSelectCollectionToString
public static String convertReferencesToSelectCollectionToString(Collection<String> referencesToRefresh)(Code)



convertSetOfObjectIdsToString
public static String convertSetOfObjectIdsToString(Set<String> objectIds)(Code)



convertStringOfObjectIdsToSet
public static Set<String> convertStringOfObjectIdsToSet(String objectIdsString)(Code)



findBestValueComparatorForColumn
public static Comparator findBestValueComparatorForColumn(List<ResultRow> resultTable, int column)(Code)
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:
  resultsTable -
Parameters:
  column -



forceUppercase
public static String forceUppercase(Class boClass, String fieldName, String fieldValue)(Code)
This method uses the DataDictionary to determine whether to force uppercase the value, and if it should, then it does the uppercase, and returns the upper-cased value.
Parameters:
  boClass - Parent BO class that the fieldName is a member of.
Parameters:
  fieldName - Name of the field to be forced to uppercase.
Parameters:
  fieldValue - Value of the field that may be uppercased. The correctly uppercased fieldValue if it should be uppercased, otherwise fieldValue is returned unchanged.



forceUppercase
public static Map<String, String> forceUppercase(Class boClass, Map<String, String> fieldValues)(Code)
This method uses the DataDictionary to determine whether to force uppercase the values, and if it should, then it does the uppercase, and returns the upper-cased Map of fieldname/fieldValue pairs.
Parameters:
  boClass - Parent BO class that the fieldName is a member of.
Parameters:
  fieldValues - A Map where the key is the fieldName and the value is the fieldValue. The same Map is returned, with the appropriate values uppercased (if any).



generateCompositeSelectedObjectIds
public static Map<String, String> generateCompositeSelectedObjectIds(Set<String> previouslySelectedObjectIds, Set<String> displayedObjectIds, Set<String> selectedObjectIds)(Code)
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 -
Parameters:
  displayedObjectIds -
Parameters:
  selectedObjectIds -



getApplicationMaximumSearchResulsPerPageForMultipleValueLookups
public static Integer getApplicationMaximumSearchResulsPerPageForMultipleValueLookups()(Code)
This method the maximum rows per page in a multiple value lookup
See Also:   org.kuali.RiceConstants.SystemGroupParameterNames.MULTIPLE_VALUE_LOOKUP_RESULTS_PER_PAGE



getApplicationSearchResultsLimit
public static Integer getApplicationSearchResultsLimit()(Code)



getNestedBusinessObject
public static BusinessObject getNestedBusinessObject(BusinessObject bo, String attributeName)(Code)
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 -



getNestedReferenceClass
public static Class getNestedReferenceClass(BusinessObject businessObject, String attributeName)(Code)



getPrimitiveReference
public static Map getPrimitiveReference(BusinessObject businessObject, String attributeName)(Code)



removeHiddenCriteriaFields
public static void removeHiddenCriteriaFields(Class businessObjectClass, Map fieldValues)(Code)
Removes fields idenfied 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 -



setBusinessObjectDictionaryService
public void setBusinessObjectDictionaryService(BusinessObjectDictionaryService businessObjectDictionaryService)(Code)



setBusinessObjectMetaDataService
public void setBusinessObjectMetaDataService(BusinessObjectMetaDataService businessObjectMetaDataService)(Code)
Sets the businessObjectMetaDataService attribute value.
Parameters:
  businessObjectMetaDataService - The businessObjectMetaDataService to set.



setDataDictionaryService
public void setDataDictionaryService(DataDictionaryService ddService)(Code)



setFieldQuickfinder
public static Field setFieldQuickfinder(BusinessObject businessObject, String attributeName, Field field, List displayedFieldNames)(Code)



setFieldQuickfinder
public static Field setFieldQuickfinder(BusinessObject businessObject, String attributeName, Field field, List displayedFieldNames, SelectiveReferenceRefresher srr)(Code)



setFieldQuickfinder
public static Field setFieldQuickfinder(BusinessObject businessObject, String collectionName, boolean addLine, int index, String attributeName, Field field, List displayedFieldNames, SelectiveReferenceRefresher srr)(Code)
Sets a fields quickfinder class and field conversions for an attribute.



setFieldQuickfinder
public static Field setFieldQuickfinder(BusinessObject businessObject, String collectionName, boolean addLine, int index, String attributeName, Field field, List displayedFieldNames)(Code)
Sets a fields quickfinder class and field conversions for an attribute.



setPersistenceStructureService
public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)(Code)



translateFieldConversions
public static Map translateFieldConversions(String fieldConversionsString)(Code)
This translates a , delimited list of pairs separated by a : into a Map of target --> lookup field conversions.
Parameters:
  conversionFields - the Map representation of the fieldConversions String provided.



translateReadOnlyFieldsToList
public static List<String> translateReadOnlyFieldsToList(String readOnlyFieldsString)(Code)
This makes a , delimited String list of fields separated by a , into a List of target --> lookup readOnlyFieldsList.
Parameters:
  readOnlyFields - the List representation of the readOnlyFields String provided.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.