|
||||||||||
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 Lookupable
boClass
- Class for the lookup business objectpublic void setParameters(java.util.Map parameters)
setParameters
in interface Lookupable
parameters
- public java.util.Map getParameters()
getParameters
in interface Lookupable
public java.util.List getColumns()
getColumns
in interface Lookupable
public void validateSearchParameters(java.util.Map fieldValues)
validateSearchParameters
in interface Lookupable
fieldValues
- - 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 Lookupable
fieldValues
- - 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 Lookupable
fieldValues
- - 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 Lookupable
bo
- - 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 Lookupable
Lookupable.getCreateNewUrl()
public java.lang.String getHtmlMenuBar()
getHtmlMenuBar
in interface Lookupable
Lookupable.getHtmlMenuBar()
public java.lang.String getSupplementalMenuBar()
getSupplementalMenuBar
in interface Lookupable
Lookupable.getSupplementalMenuBar()
public java.util.List getRows()
getRows
in interface Lookupable
Lookupable.getRows()
public java.lang.String getTitle()
getTitle
in interface Lookupable
Lookupable.getTitle()
public java.lang.String getReturnLocation()
getReturnLocation
in interface Lookupable
Lookupable.getReturnLocation()
public java.lang.Class getBusinessObjectClass()
getBusinessObjectClass
in interface Lookupable
public java.util.List getReturnKeys()
public java.lang.String getExtraButtonSource()
getExtraButtonSource
in interface Lookupable
Lookupable.getExtraButtonSource()
public java.lang.String getExtraButtonParams()
getExtraButtonParams
in interface Lookupable
Lookupable.getExtraButtonParams()
public java.util.List getDefaultSortColumns()
Lookupable
getDefaultSortColumns
in interface Lookupable
public boolean checkForAdditionalFields(java.util.Map fieldValues)
Lookupable
checkForAdditionalFields
in interface Lookupable
fieldValues
- - 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 Lookupable
Lookupable.setFieldConversions(java.util.Map)
protected DataDictionaryService getDataDictionaryService()
public void setReadOnlyFieldsList(java.util.List<java.lang.String> readOnlyFieldsList)
setReadOnlyFieldsList
in interface Lookupable
readOnlyFieldsList
- The readOnlyFieldsList to set.public LookupableHelperService getLookupableHelperService()
Lookupable
getLookupableHelperService
in interface Lookupable
public void setLookupableHelperService(LookupableHelperService lookupableHelperService)
setLookupableHelperService
in interface Lookupable
lookupableHelperService
- The lookupableHelperService to set.public java.util.Collection performLookup(LookupForm lookupForm, java.util.List<ResultRow> resultTable, boolean bounded)
performLookup
in interface Lookupable
Lookupable.performLookup(org.kuali.rice.kns.web.struts.form.LookupForm, java.util.List, boolean)
public boolean isSearchUsingOnlyPrimaryKeyValues()
Lookupable
isSearchUsingOnlyPrimaryKeyValues
in interface Lookupable
public java.lang.String getPrimaryKeyFieldLabels()
Lookupable
getPrimaryKeyFieldLabels
in interface Lookupable
public void performClear(LookupForm lookupForm)
performClear
in interface Lookupable
org.kuali.rice.kns.lookup.Lookupable#performClear()
public boolean shouldDisplayHeaderNonMaintActions()
shouldDisplayHeaderNonMaintActions
in interface Lookupable
Lookupable.shouldDisplayHeaderNonMaintActions()
public boolean shouldDisplayLookupCriteria()
shouldDisplayLookupCriteria
in interface Lookupable
Lookupable.shouldDisplayLookupCriteria()
protected java.lang.String getCreateNewUrl(java.lang.String url)
public boolean performCustomAction(boolean ignoreErrors)
Lookupable
performCustomAction
in interface Lookupable
Lookupable.performCustomAction(boolean)
public Field getExtraField()
getExtraField
in interface Lookupable
Lookupable.getExtraField()
public void applyFieldAuthorizationsFromNestedLookups(Field field)
applyFieldAuthorizationsFromNestedLookups
in interface Lookupable
Lookupable.applyFieldAuthorizationsFromNestedLookups(org.kuali.rice.kns.web.ui.Field)
public java.lang.String getExtraOnLoad()
getExtraOnLoad
in interface Lookupable
Lookupable.getExtraOnLoad()
public void setExtraOnLoad(java.lang.String extraOnLoad)
setExtraOnLoad
in interface Lookupable
extraOnLoad
- the extraOnLoad to setpublic void applyConditionalLogicForFieldDisplay()
Lookupable
applyConditionalLogicForFieldDisplay
in interface Lookupable
Lookupable.applyConditionalLogicForFieldDisplay()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |