public class LookupForm extends UifFormBase
LookupView
.actionFlags, actionParameters, addedCollectionItems, ajaxRequest, ajaxReturnType, applyDefaultValues, attachmentFile, canEditView, clientStateForSyncing, controllerMapping, csrfToken, dialogExplanations, dialogResponses, dirtyForm, editModes, evaluateFlagsAndModes, extensionData, flowKey, focusId, formKey, formPostUrl, growlScript, historyFlow, historyManager, jumpToId, jumpToName, methodToCall, newCollectionLines, pageId, readOnlyFieldsList, renderedInDialog, renderedInIframe, request, requestedFormKey, requestRedirected, returnDialogId, returnDialogResponse, returnFormKey, returnLocation, selectedCollectionLines, selectedLookupResultsCache, sessionId, sessionTimeoutInterval, showDialogId, state, triggerActionId, updateComponentId, view, viewId, viewName, viewPostMetadata, viewRequestParameters, viewTypeName
Constructor and Description |
---|
LookupForm() |
Modifier and Type | Method and Description |
---|---|
String |
getDataObjectClassName()
Class name for the data object the lookup should be performed against.
|
Map<String,String> |
getFieldConversions()
Map of conversions that should occur on the lookup return between properties on the lookup data object
and properties on the calling view.
|
Lookupable |
getLookupable()
Returns an
Lookupable instance associated with the lookup view. |
String |
getLookupCollectionId() |
String |
getLookupCollectionName()
For the case of multi-value lookup, indicates the collection that should be populated with
the return results.
|
Map<String,String> |
getLookupCriteria()
Map containing the criteria to be used for performing the search.
|
Collection<?> |
getLookupResults()
Holds the results of a search action.
|
List<String> |
getMultiValueReturnFields()
Holds the column names for the multi-value lookup selected values
Note: as of KULRICE-12125 secure field names will not be stored in this parameter
|
String |
getQuickfinderId()
Id for the quickfinder that triggered the lookup action (if any).
|
String |
getReferencesToRefresh()
String containing references that should be refreshed when the lookup returns, passed back on the
return URL.
|
String |
getReturnTarget()
Name of the window the lookup should return to.
|
boolean |
isDisplayResults() |
boolean |
isMultipleValuesSelect()
Indicates whether multiple values select should be enabled for the lookup.
|
boolean |
isRedirectedLookup()
Indicates whether the requested was redirected from the lookup framework due to an external object
request.
|
boolean |
isReturnByScript()
Indicates whether the return value from the lookup should occur through script or a server side
post (default is false, server side post).
|
void |
postBind(javax.servlet.http.HttpServletRequest request)
Picks out data object name from the request to retrieve a lookupable and for the initial get request
populates the
getFieldConversions() property. |
void |
setDataObjectClassName(String dataObjectClassName)
Setter for
getDataObjectClassName() |
void |
setDisplayResults(boolean displayResults) |
void |
setFieldConversions(Map<String,String> fieldConversions) |
void |
setLookupCollectionId(String lookupCollectionId) |
void |
setLookupCollectionName(String lookupCollectionName) |
void |
setLookupCriteria(Map<String,String> lookupCriteria) |
void |
setLookupResults(Collection<?> lookupResults) |
void |
setMultipleValuesSelect(boolean multipleValuesSelect) |
void |
setMultiValueReturnFields(List<String> multiValueReturnFields) |
void |
setQuickfinderId(String quickfinderId) |
void |
setRedirectedLookup(boolean redirectedLookup) |
void |
setReferencesToRefresh(String referencesToRefresh) |
void |
setReturnByScript(boolean returnByScript) |
void |
setReturnTarget(String returnTarget)
org.kuali.rice.krad.lookup.LookupForm#getReturnTarget()
|
generateFormKey, getActionEvent, getActionFlags, getActionParamaterValue, getActionParameters, getActionParametersAsProperties, getAddedCollectionItems, getAjaxReturnType, getAttachmentFile, getClientStateForSyncing, getControllerMapping, getCsrfToken, getDialogDataObject, getDialogExplanations, getDialogResponse, getDialogResponses, getEditModes, getExtensionData, getFlowKey, getFocusId, getFormKey, getFormPostUrl, getGrowlScript, getHistoryFlow, getHistoryManager, getInitialRequestParameters, getJumpToId, getJumpToName, getMethodToCall, getNewCollectionLines, getPageId, getReadOnlyFieldsList, getRequest, getRequestedFormKey, getRequestJsonTemplate, getRequestUrl, getReturnDialogId, getReturnDialogResponse, getReturnFormKey, getReturnLocation, getSelectedCollectionLines, getSelectedLookupResultsCache, getSessionId, getSessionTimeoutInterval, getShowDialogId, getState, getTriggerActionId, getUpdateComponent, getUpdateComponentId, getView, getViewHelperService, getViewId, getViewName, getViewPostMetadata, getViewRequestParameters, getViewService, getViewTypeName, isAddedCollectionItem, isAjaxRequest, isApplyDefaultValues, isCanEditView, isCollectionPagingRequest, isDirtyForm, isEvaluateFlagsAndModes, isJsonRequest, isRenderedInDialog, isRenderedInIframe, isRequestRedirected, isUpdateComponentRequest, isUpdateDialogRequest, isUpdateNoneRequest, isUpdatePageRequest, preBind, preRender, setActionFlags, setActionParameters, setAddedCollectionItems, setAjaxRequest, setAjaxReturnType, setApplyDefaultValues, setAttachmentFile, setCanEditView, setClientStateForSyncing, setCollectionPagingRequest, setCsrfToken, setDialogDataObject, setDialogExplanations, setDialogResponses, setDirtyForm, setDirtyForm, setEditModes, setEvaluateFlagsAndModes, setExtensionData, setFlowKey, setFocusId, setFormKey, setFormPostUrl, setGrowlScript, setHistoryFlow, setHistoryManager, setInitialRequestParameters, setJumpToId, setJumpToName, setMethodToCall, setNewCollectionLines, setPageId, setReadOnlyFieldsList, setRenderedInDialog, setRenderedInIframe, setRequest, setRequestedFormKey, setRequestJsonTemplate, setRequestRedirected, setRequestUrl, setReturnDialogId, setReturnDialogResponse, setReturnFormKey, setReturnLocation, setSelectedCollectionLines, setSelectedLookupResultsCache, setShowDialogId, setState, setTriggerActionId, setUpdateComponent, setUpdateComponentId, setView, setViewId, setViewName, setViewPostMetadata, setViewRequestParameters, setViewTypeName, toString
public LookupForm()
public void postBind(javax.servlet.http.HttpServletRequest request)
getFieldConversions()
property.
Called after Spring binds the request to the form and before the controller method is invokedpostBind
in interface ViewModel
postBind
in class UifFormBase
request
- request object containing the query parameterspublic Lookupable getLookupable()
Lookupable
instance associated with the lookup view.public String getDataObjectClassName()
The object class name is used to pick up a dictionary entry which will feed the attribute field
definitions and other configuration. In addition it is to configure the
Lookupable
which will carry out the search action
public void setDataObjectClassName(String dataObjectClassName)
getDataObjectClassName()
dataObjectClassName
- property valuepublic boolean isMultipleValuesSelect()
When set to true, the select field is enabled for the lookup results group that allows the user to select one or more rows for returning
public void setMultipleValuesSelect(boolean multipleValuesSelect)
isMultipleValuesSelect()
public boolean isRedirectedLookup()
This prevents the framework from performing another redirect check
public void setRedirectedLookup(boolean redirectedLookup)
isRedirectedLookup()
public boolean isReturnByScript()
public void setReturnByScript(boolean returnByScript)
isReturnByScript()
public String getReturnTarget()
The lookup can be invoked from several different contexts: new tab, lightbox within top window, lightbox within portal window. When the request is made, this parameter can be sent to specify the target for the return links.
public void setReturnTarget(String returnTarget)
public String getLookupCollectionName()
public void setLookupCollectionName(String lookupCollectionName)
getLookupCollectionName()
public String getLookupCollectionId()
public void setLookupCollectionId(String lookupCollectionId)
public String getReferencesToRefresh()
public void setReferencesToRefresh(String referencesToRefresh)
getReferencesToRefresh()
public String getQuickfinderId()
When the lookup is triggered from a quickfinder, the return URLs will be present on the lookup results. In addition, the quickfinder id is passed back on the return URL so the caller can perform logic based on which quickfinder was invoked.
public void setQuickfinderId(String quickfinderId)
getQuickfinderId()
public Map<String,String> getFieldConversions()
When a lookup is invoked from a calling view, the purpose is to return one or more values that will populate fields on the calling view. To accomplish this, values for properties on the selected record are passed back on the URL as values for properties on the calling view. This map specifies which properties on the lookup data object should be pulled, and for each one what is the property on the caller to send the value back as.
For example, suppose the map contained the entries id:document.bookId and title:document.bookTitle. When the return URL is selected for a record, the value for the id property will be retrieved and added to the return URL query string as 'document.bookId={idValue}'. Likewise the value for the title property will be pulled and added to the return URL query string as 'document.bookTitle={titleValue}'. So the query string will contain something like 'document.bookId=3&document.bookTitle=Animals'
public void setFieldConversions(Map<String,String> fieldConversions)
getFieldConversions()
public List<String> getMultiValueReturnFields()
public void setMultiValueReturnFields(List<String> multiValueReturnFields)
getMultiValueReturnFields()
public Map<String,String> getLookupCriteria()
Fields that are defined in the LookupView.getCriteriaGroup()
bind
to this map. The key of the map is the property path specified for the field, and the value of the map
is the search value (if any) entered by the user. This map is then passed into the Lookupable
to
carry out the search.
public void setLookupCriteria(Map<String,String> lookupCriteria)
getLookupCriteria()
public Collection<?> getLookupResults()
After the search action is invoked, the results of the search will be held by this property. The
LookupView.getResultsGroup()
binds to this property for displaying
the results.
public void setLookupResults(Collection<?> lookupResults)
getLookupResults()
public boolean isDisplayResults()
public void setDisplayResults(boolean displayResults)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.