| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kns.lookup.KualiLookupableImpl
@Transactional public class KualiLookupableImpl
Kuali lookup implementation. Implements methods necessary to render the lookup and provides search and return methods.
| Field Summary | |
|---|---|
| protected  Class | businessObjectClass | 
| protected  String | extraOnLoad | 
| protected static String[] | IGNORE_LIST | 
| protected  LookupableHelperService | lookupableHelperService | 
| Constructor Summary | |
|---|---|
| KualiLookupableImpl()Default constructor initializes services from spring | |
| Method Summary | |
|---|---|
|  void | applyConditionalLogicForFieldDisplay()Performs conditional logic (based on current search values or other parameters) to override field hidden, read-only, and required attributes previously set. | 
|  void | applyFieldAuthorizationsFromNestedLookups(Field field)This overridden method ... | 
|  boolean | checkForAdditionalFields(Map<String,String> fieldValues)Determines if there should be more search fields rendered based on already entered search criteria. | 
|  String | getBackLocation() | 
|  Class | getBusinessObjectClass() | 
| protected  BusinessObjectDictionaryService | getBusinessObjectDictionaryService() | 
|  List<Column> | getColumns()Constructs the list of columns for the search results. | 
|  String | getCreateNewUrl()Builds the Url for a maintenance new document for the lookup business object class | 
| protected  String | getCreateNewUrl(String url) | 
| protected  DataDictionaryService | getDataDictionaryService() | 
|  List<String> | getDefaultSortColumns()This method returns a list of the default columns used to sort the result set. | 
|  String | getDocFormKey() | 
|  String | getExtraButtonParams() | 
|  String | getExtraButtonSource() | 
|  Field | getExtraField()This overridden method ... | 
|  String | getExtraOnLoad()This overridden method returns the extraOnLoad variable. | 
|  String | getHtmlMenuBar() | 
|  LookupableHelperService | getLookupableHelperService()Returns the LookupableHelperService designated to help this lookup | 
|  Map<String,String[]> | getParameters() | 
|  String | getPrimaryKeyFieldLabels()Returns a comma delimited list of primary key field labels, as defined in the DD | 
|  List<String> | getReturnKeys() | 
|  String | getReturnLocation() | 
|  HtmlData | getReturnUrl(BusinessObject bo,
                         Map fieldConversions,
                         String lookupImpl,
                         BusinessObjectRestrictions businessObjectRestrictions)Builds the return value url. | 
|  List<Row> | getRows() | 
|  List<? extends BusinessObject> | getSearchResults(Map<String,String> fieldValues)Uses Lookup Service to provide a basic search. | 
|  List<? extends BusinessObject> | getSearchResultsUnbounded(Map<String,String> fieldValues)Uses Lookup Service to provide a basic unbounded search. | 
|  String | getSupplementalMenuBar() | 
|  String | getTitle() | 
|  boolean | isSearchUsingOnlyPrimaryKeyValues()Returns whether this search was performed using the values of the primary keys only | 
|  void | performClear(LookupForm lookupForm)calls the lookup helper service to do "clear" behaviors | 
|  boolean | performCustomAction(boolean ignoreErrors)This method is called from a custom action button or script | 
|  Collection<? extends BusinessObject> | performLookup(LookupForm lookupForm,
                           List<ResultRow> resultTable,
                           boolean bounded)Performs a lookup that can only return one row. | 
|  void | setBackLocation(String backLocation) | 
|  void | setBusinessObjectClass(Class boClass)Sets the business object class for the lookup instance, then rows can be set for search render. | 
|  void | setDocFormKey(String docFormKey)// this method is public because unit tests depend upon it | 
|  void | setExtraOnLoad(String extraOnLoad) | 
|  void | setFieldConversions(Map fieldConversions)Sets the requested fields conversions in the lookupable | 
|  void | setLookupableHelperService(LookupableHelperService lookupableHelperService)Sets the lookupableHelperService attribute value. | 
|  void | setParameters(Map<String,String[]> parameters)Initializes the lookup with the given Map of parameters. | 
|  void | setReadOnlyFieldsList(List<String> readOnlyFieldsList)Sets the readOnlyFieldsList attribute value. | 
|  boolean | shouldDisplayHeaderNonMaintActions()calls the lookup helper service to check if non maintenance actions should be displayed | 
|  boolean | shouldDisplayLookupCriteria()calls the lookup helper service to check if criteria should be displayed | 
|  void | validateSearchParameters(Map<String,String> fieldValues)Checks that any required search fields have value. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static final String[] IGNORE_LIST
protected Class businessObjectClass
protected LookupableHelperService lookupableHelperService
protected String extraOnLoad
| Constructor Detail | 
|---|
public KualiLookupableImpl()
| Method Detail | 
|---|
public void setBusinessObjectClass(Class boClass)
setBusinessObjectClass in interface LookupableboClass - Class for the lookup business objectpublic void setParameters(Map<String,String[]> parameters)
setParameters in interface Lookupableparameters - public Map<String,String[]> getParameters()
getParameters in interface Lookupablepublic List<Column> getColumns()
getColumns in interface Lookupablepublic void validateSearchParameters(Map<String,String> fieldValues)
validateSearchParameters in interface LookupablefieldValues - - Map of property/value pairsLookupable.validateSearchParameters(java.util.Map)public List<? extends BusinessObject> getSearchResultsUnbounded(Map<String,String> fieldValues)
getSearchResultsUnbounded in interface LookupablefieldValues - - Map containing prop name keys and search values
public List<? extends BusinessObject> getSearchResults(Map<String,String> fieldValues)
getSearchResults in interface LookupablefieldValues - - Map containing prop name keys and search values
public HtmlData getReturnUrl(BusinessObject bo,
                             Map fieldConversions,
                             String lookupImpl,
                             BusinessObjectRestrictions businessObjectRestrictions)
Lookupable
getReturnUrl in interface Lookupablebo - - Instance of a business object containing the return valuesfieldConversions - - Map of conversions mapping bo names to caller field names.lookupImpl - - Current lookup impl name
public String getCreateNewUrl()
Lookupable
getCreateNewUrl in interface LookupableLookupable.getCreateNewUrl()public String getHtmlMenuBar()
getHtmlMenuBar in interface LookupableLookupable.getHtmlMenuBar()public String getSupplementalMenuBar()
getSupplementalMenuBar in interface LookupableLookupable.getSupplementalMenuBar()public List<Row> getRows()
getRows in interface LookupableLookupable.getRows()public String getTitle()
getTitle in interface LookupableLookupable.getTitle()public String getReturnLocation()
getReturnLocation in interface LookupableLookupable.getReturnLocation()public Class getBusinessObjectClass()
getBusinessObjectClass in interface Lookupablepublic List<String> getReturnKeys()
public String getExtraButtonSource()
getExtraButtonSource in interface LookupableLookupable.getExtraButtonSource()public String getExtraButtonParams()
getExtraButtonParams in interface LookupableLookupable.getExtraButtonParams()public List<String> getDefaultSortColumns()
Lookupable
getDefaultSortColumns in interface Lookupablepublic boolean checkForAdditionalFields(Map<String,String> fieldValues)
Lookupable
checkForAdditionalFields in interface LookupablefieldValues - - Map of property/value pairs
Lookupable.checkForAdditionalFields(java.util.Map)public String getBackLocation()
public void setBackLocation(String backLocation)
backLocation - The backLocation to set.public String getDocFormKey()
public void setDocFormKey(String docFormKey)
docFormKey - The docFormKey to set.protected BusinessObjectDictionaryService getBusinessObjectDictionaryService()
public void setFieldConversions(Map fieldConversions)
Lookupable
setFieldConversions in interface LookupableLookupable.setFieldConversions(java.util.Map)protected DataDictionaryService getDataDictionaryService()
public void setReadOnlyFieldsList(List<String> readOnlyFieldsList)
setReadOnlyFieldsList in interface LookupablereadOnlyFieldsList - The readOnlyFieldsList to set.public LookupableHelperService getLookupableHelperService()
Lookupable
getLookupableHelperService in interface Lookupablepublic void setLookupableHelperService(LookupableHelperService lookupableHelperService)
setLookupableHelperService in interface LookupablelookupableHelperService - The lookupableHelperService to set.
public Collection<? extends BusinessObject> performLookup(LookupForm lookupForm,
                                                          List<ResultRow> resultTable,
                                                          boolean bounded)
performLookup in interface LookupableLookupable#performLookup(org.kuali.rice.krad.web.struts.form.LookupForm, java.util.List, boolean)public boolean isSearchUsingOnlyPrimaryKeyValues()
Lookupable
isSearchUsingOnlyPrimaryKeyValues in interface Lookupablepublic String getPrimaryKeyFieldLabels()
Lookupable
getPrimaryKeyFieldLabels in interface Lookupablepublic void performClear(LookupForm lookupForm)
performClear in interface LookupableLookupable#performClear()public boolean shouldDisplayHeaderNonMaintActions()
shouldDisplayHeaderNonMaintActions in interface LookupableLookupable.shouldDisplayHeaderNonMaintActions()public boolean shouldDisplayLookupCriteria()
shouldDisplayLookupCriteria in interface LookupableLookupable.shouldDisplayLookupCriteria()protected String getCreateNewUrl(String url)
public boolean performCustomAction(boolean ignoreErrors)
Lookupable
performCustomAction in interface LookupableLookupable.performCustomAction(boolean)public Field getExtraField()
getExtraField in interface LookupableLookupable.getExtraField()public void applyFieldAuthorizationsFromNestedLookups(Field field)
applyFieldAuthorizationsFromNestedLookups in interface LookupableLookupable#applyFieldAuthorizationsFromNestedLookups(org.kuali.rice.krad.web.ui.Field)public String getExtraOnLoad()
getExtraOnLoad in interface LookupableLookupable.getExtraOnLoad()public void setExtraOnLoad(String extraOnLoad)
setExtraOnLoad in interface LookupableextraOnLoad - the extraOnLoad to setpublic void applyConditionalLogicForFieldDisplay()
Lookupable
applyConditionalLogicForFieldDisplay in interface LookupableLookupable.applyConditionalLogicForFieldDisplay()| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||