|
||||||||||
| 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 java.lang.Class |
businessObjectClass
|
protected java.lang.String |
extraOnLoad
|
protected static java.lang.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(java.util.Map fieldValues)
Determines if there should be more search fields rendered based on already entered search criteria. |
java.lang.String |
getBackLocation()
|
java.lang.Class |
getBusinessObjectClass()
|
protected BusinessObjectDictionaryService |
getBusinessObjectDictionaryService()
|
java.util.List |
getColumns()
Constructs the list of columns for the search results. |
java.lang.String |
getCreateNewUrl()
Builds the Url for a maintenance new document for the lookup business object class |
protected java.lang.String |
getCreateNewUrl(java.lang.String url)
|
protected DataDictionaryService |
getDataDictionaryService()
|
java.util.List |
getDefaultSortColumns()
This method returns a list of the default columns used to sort the result set. |
java.lang.String |
getDocFormKey()
|
java.lang.String |
getExtraButtonParams()
|
java.lang.String |
getExtraButtonSource()
|
Field |
getExtraField()
This overridden method ... |
java.lang.String |
getExtraOnLoad()
This overridden method returns the extraOnLoad variable. |
java.lang.String |
getHtmlMenuBar()
|
LookupableHelperService |
getLookupableHelperService()
Returns the LookupableHelperService designated to help this lookup |
java.util.Map |
getParameters()
|
java.lang.String |
getPrimaryKeyFieldLabels()
Returns a comma delimited list of primary key field labels, as defined in the DD |
java.util.List |
getReturnKeys()
|
java.lang.String |
getReturnLocation()
|
HtmlData |
getReturnUrl(org.kuali.rice.kns.bo.BusinessObject bo,
java.util.Map fieldConversions,
java.lang.String lookupImpl,
BusinessObjectRestrictions businessObjectRestrictions)
Builds the return value url. |
java.util.List |
getRows()
|
java.util.List<org.kuali.rice.kns.bo.BusinessObject> |
getSearchResults(java.util.Map<java.lang.String,java.lang.String> fieldValues)
Uses Lookup Service to provide a basic search. |
java.util.List<org.kuali.rice.kns.bo.BusinessObject> |
getSearchResultsUnbounded(java.util.Map<java.lang.String,java.lang.String> fieldValues)
Uses Lookup Service to provide a basic unbounded search. |
java.lang.String |
getSupplementalMenuBar()
|
java.lang.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 |
java.util.Collection |
performLookup(LookupForm lookupForm,
java.util.List<ResultRow> resultTable,
boolean bounded)
Performs a lookup that can only return one row. |
void |
setBackLocation(java.lang.String backLocation)
|
void |
setBusinessObjectClass(java.lang.Class boClass)
Sets the business object class for the lookup instance, then rows can be set for search render. |
void |
setDocFormKey(java.lang.String docFormKey)
// this method is public because unit tests depend upon it |
void |
setExtraOnLoad(java.lang.String extraOnLoad)
|
void |
setFieldConversions(java.util.Map fieldConversions)
Sets the requested fields conversions in the lookupable |
void |
setLookupableHelperService(LookupableHelperService lookupableHelperService)
Sets the lookupableHelperService attribute value. |
void |
setParameters(java.util.Map parameters)
Initializes the lookup with the given Map of parameters. |
void |
setReadOnlyFieldsList(java.util.List<java.lang.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(java.util.Map 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 java.lang.String[] IGNORE_LIST
protected java.lang.Class businessObjectClass
protected LookupableHelperService lookupableHelperService
protected java.lang.String extraOnLoad
| Constructor Detail |
|---|
public KualiLookupableImpl()
| Method Detail |
|---|
public void setBusinessObjectClass(java.lang.Class boClass)
setBusinessObjectClass in interface LookupableboClass - Class for the lookup business objectpublic void setParameters(java.util.Map parameters)
setParameters in interface Lookupableparameters - public java.util.Map getParameters()
getParameters in interface Lookupablepublic java.util.List getColumns()
getColumns in interface Lookupablepublic void validateSearchParameters(java.util.Map fieldValues)
validateSearchParameters in interface LookupablefieldValues - - Map of property/value pairsLookupable.validateSearchParameters(java.util.Map)public java.util.List<org.kuali.rice.kns.bo.BusinessObject> getSearchResultsUnbounded(java.util.Map<java.lang.String,java.lang.String> fieldValues)
getSearchResultsUnbounded in interface LookupablefieldValues - - Map containing prop name keys and search values
public java.util.List<org.kuali.rice.kns.bo.BusinessObject> getSearchResults(java.util.Map<java.lang.String,java.lang.String> fieldValues)
getSearchResults in interface LookupablefieldValues - - Map containing prop name keys and search values
public HtmlData getReturnUrl(org.kuali.rice.kns.bo.BusinessObject bo,
java.util.Map fieldConversions,
java.lang.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 java.lang.String getCreateNewUrl()
Lookupable
getCreateNewUrl in interface LookupableLookupable.getCreateNewUrl()public java.lang.String getHtmlMenuBar()
getHtmlMenuBar in interface LookupableLookupable.getHtmlMenuBar()public java.lang.String getSupplementalMenuBar()
getSupplementalMenuBar in interface LookupableLookupable.getSupplementalMenuBar()public java.util.List getRows()
getRows in interface LookupableLookupable.getRows()public java.lang.String getTitle()
getTitle in interface LookupableLookupable.getTitle()public java.lang.String getReturnLocation()
getReturnLocation in interface LookupableLookupable.getReturnLocation()public java.lang.Class getBusinessObjectClass()
getBusinessObjectClass in interface Lookupablepublic java.util.List getReturnKeys()
public java.lang.String getExtraButtonSource()
getExtraButtonSource in interface LookupableLookupable.getExtraButtonSource()public java.lang.String getExtraButtonParams()
getExtraButtonParams in interface LookupableLookupable.getExtraButtonParams()public java.util.List getDefaultSortColumns()
Lookupable
getDefaultSortColumns in interface Lookupablepublic boolean checkForAdditionalFields(java.util.Map fieldValues)
Lookupable
checkForAdditionalFields in interface LookupablefieldValues - - Map of property/value pairs
Lookupable.checkForAdditionalFields(java.util.Map)public java.lang.String getBackLocation()
public void setBackLocation(java.lang.String backLocation)
backLocation - The backLocation to set.public java.lang.String getDocFormKey()
public void setDocFormKey(java.lang.String docFormKey)
docFormKey - The docFormKey to set.protected BusinessObjectDictionaryService getBusinessObjectDictionaryService()
public void setFieldConversions(java.util.Map fieldConversions)
Lookupable
setFieldConversions in interface LookupableLookupable.setFieldConversions(java.util.Map)protected DataDictionaryService getDataDictionaryService()
public void setReadOnlyFieldsList(java.util.List<java.lang.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 java.util.Collection performLookup(LookupForm lookupForm,
java.util.List<ResultRow> resultTable,
boolean bounded)
performLookup in interface LookupableLookupable.performLookup(org.kuali.rice.kns.web.struts.form.LookupForm, java.util.List, boolean)public boolean isSearchUsingOnlyPrimaryKeyValues()
Lookupable
isSearchUsingOnlyPrimaryKeyValues in interface Lookupablepublic java.lang.String getPrimaryKeyFieldLabels()
Lookupable
getPrimaryKeyFieldLabels in interface Lookupablepublic void performClear(LookupForm lookupForm)
performClear in interface Lookupableorg.kuali.rice.kns.lookup.Lookupable#performClear()public boolean shouldDisplayHeaderNonMaintActions()
shouldDisplayHeaderNonMaintActions in interface LookupableLookupable.shouldDisplayHeaderNonMaintActions()public boolean shouldDisplayLookupCriteria()
shouldDisplayLookupCriteria in interface LookupableLookupable.shouldDisplayLookupCriteria()protected java.lang.String getCreateNewUrl(java.lang.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.kns.web.ui.Field)public java.lang.String getExtraOnLoad()
getExtraOnLoad in interface LookupableLookupable.getExtraOnLoad()public void setExtraOnLoad(java.lang.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 | |||||||||