| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LookupableHelperService
| Method Summary | |
|---|---|
 boolean | 
allowsMaintenanceNewOrCopyAction()
Determines if underlying lookup bo has associated maintenance document that allows new or copy maintenance actions.  | 
 boolean | 
allowsNewOrCopyAction(String documentTypeName)
Determines if underlying lookup bo has associated document that allows new or copy maintenance actions.  | 
 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)
 | 
 boolean | 
checkForAdditionalFields(Map<String,String> fieldValues)
Determines if there should be more search fields rendered based on already entered search criteria.  | 
 String | 
getActionUrls(BusinessObject businessObject,
                           List pkNames,
                           BusinessObjectRestrictions businessObjectRestrictions)
Builds string of action urls that can take place for a result row  | 
 String | 
getBackLocation()
 | 
 Class | 
getBusinessObjectClass()
 | 
 BusinessObjectDictionaryService | 
getBusinessObjectDictionaryService()
This method returns the BusinessObjectDictionaryService used to initialize this helper service and is used by Lookupable implementations to retrieve the proper service.  | 
 List<Column> | 
getColumns()
 | 
 List<HtmlData> | 
getCustomActionUrls(BusinessObject businessObject,
                                       List pkNames)
This method is a template method that allows child classes to return their own custom action html data.  | 
 DataDictionaryService | 
getDataDictionaryService()
This method returns the DataDictionaryService used to initialize this helper service and is used by Lookupable implementations to retrieve the proper service.  | 
 List<String> | 
getDefaultSortColumns()
This method returns a list of the default columns used to sort the result set.  | 
 String | 
getDocFormKey()
 | 
 String | 
getDocNum()
 | 
 Field | 
getExtraField()
get an extra field  | 
 HtmlData | 
getInquiryUrl(BusinessObject businessObject,
                           String propertyName)
Builds string an inquiry url for drill down on a result field  | 
 String | 
getMaintenanceUrl(BusinessObject businessObject,
                                   HtmlData htmlData,
                                   List pkNames,
                                   BusinessObjectRestrictions businessObjectRestrictions)
This method builds a maintenance url.  | 
 Map<String,String[]> | 
getParameters()
 | 
 String | 
getPrimaryKeyFieldLabels()
Returns a comma delimited list of primary key field labels, to be used on the UI to tell the user which fields were used to search  | 
 List<String> | 
getReadOnlyFieldsList()
Gets the readOnlyFieldsList attribute.  | 
 List<String> | 
getReturnKeys()
This method is public because some unit tests depend on it.  | 
 String | 
getReturnLocation()
 | 
 HtmlData | 
getReturnUrl(BusinessObject businessObject,
                         LookupForm lookupForm,
                         List returnKeys,
                         BusinessObjectRestrictions businessObjectRestrictions)
This method builds the return url  | 
 HtmlData | 
getReturnUrl(BusinessObject businessObject,
                         Map fieldConversions,
                         String lookupImpl,
                         List returnKeys,
                         BusinessObjectRestrictions businessObjectRestrictions)
Builds the return value url.  | 
 List<Row> | 
getRows()
Returns a list of Row objects to be used to generate the search query screen Generally, setDataObjectClass needs to be called with a non-null value for proper operation  | 
 List<? extends BusinessObject> | 
getSearchResults(Map<String,String> fieldValues)
Performs a search and returns result list.  | 
 List<? extends BusinessObject> | 
getSearchResultsUnbounded(Map<String,String> fieldValues)
Similar to getSearchResults, but the number of returned rows is not bounded  | 
 String | 
getSupplementalMenuBar()
This method gets the supplemental lookup menu if any  | 
 String | 
getTitle()
 | 
 boolean | 
isResultReturnable(BusinessObject object)
Determines whether a given BusinessObject that's returned as one of the lookup's results is considered returnable, which means that for single-value lookups, a "return value" link may be rendered, and for multiple value lookups, a checkbox is rendered.  | 
 boolean | 
isSearchUsingOnlyPrimaryKeyValues()
This method returns whether the previously executed getSearchResults used the primary key values to search, ignoring all non key values  | 
 void | 
performClear(LookupForm lookupForm)
This method allows for overriding the clear behavior  | 
 boolean | 
performCustomAction(boolean ignoreErrors)
performs custom actions.  | 
 Collection<? extends BusinessObject> | 
performLookup(LookupForm lookupForm,
                           Collection<ResultRow> resultTable,
                           boolean bounded)
This method performs the lookup and returns a collection of BO items  | 
 void | 
setBackLocation(String backLocation)
 | 
 void | 
setBusinessObjectClass(Class businessObjectClass)
Initializes the lookup with a business object class.  | 
 void | 
setDocFormKey(String docFormKey)
 | 
 void | 
setDocNum(String docNum)
 | 
 void | 
setFieldConversions(Map fieldConversions)
Sets the requested fields conversions in the lookupable  | 
 void | 
setParameters(Map<String,String[]> parameters)
Initializes the lookup with the given Map of parameters.  | 
 void | 
setReadOnlyFieldsList(List<String> readOnlyFieldsList)
Sets the requested read only fields list in the lookupable  | 
 boolean | 
shouldDisplayHeaderNonMaintActions()
 | 
 boolean | 
shouldDisplayLookupCriteria()
 | 
 void | 
validateSearchParameters(Map<String,String> fieldValues)
Validates the values filled in as search criteria, also checks for required field values.  | 
| Method Detail | 
|---|
void setBusinessObjectClass(Class businessObjectClass)
businessObjectClass - Class getBusinessObjectClass()
void setParameters(Map<String,String[]> parameters)
parameters - Map<String,String[]> getParameters()
String getReturnLocation()
List<Column> getColumns()
void validateSearchParameters(Map<String,String> fieldValues)
fieldValues - - Map of property/value pairsList<? extends BusinessObject> getSearchResults(Map<String,String> fieldValues)
fieldValues - - Map of property/value pairs
ExceptionList<? extends BusinessObject> getSearchResultsUnbounded(Map<String,String> fieldValues)
fieldValues - 
boolean checkForAdditionalFields(Map<String,String> fieldValues)
fieldValues - - Map of property/value pairs
HtmlData getReturnUrl(BusinessObject businessObject,
                      Map fieldConversions,
                      String lookupImpl,
                      List returnKeys,
                      BusinessObjectRestrictions businessObjectRestrictions)
businessObject - - Instance of a business object containing the return valuesfieldConversions - - Map of conversions mapping bo names to caller field names.lookupImpl - - Current lookup impl namereturnKeys - - Keys to return
HtmlData getReturnUrl(BusinessObject businessObject,
                      LookupForm lookupForm,
                      List returnKeys,
                      BusinessObjectRestrictions businessObjectRestrictions)
businessObject - lookupForm - returnKeys - 
String getActionUrls(BusinessObject businessObject,
                     List pkNames,
                     BusinessObjectRestrictions businessObjectRestrictions)
businessObject - - Instance of a business object containing the return valuespkNames - - List of primary key names
List<HtmlData> getCustomActionUrls(BusinessObject businessObject,
                                   List pkNames)
businessObject - pkNames - 
HtmlData getInquiryUrl(BusinessObject businessObject,
                       String propertyName)
businessObject - - Instance of a business object containing the return valuespropertyName - - Name of the property in the business object
void setFieldConversions(Map fieldConversions)
fieldConversions - List<String> getReadOnlyFieldsList()
void setReadOnlyFieldsList(List<String> readOnlyFieldsList)
readOnlyFieldsList - List<String> getReturnKeys()
String getDocFormKey()
void setDocFormKey(String docFormKey)
String getDocNum()
void setDocNum(String docNum)
String getMaintenanceUrl(BusinessObject businessObject,
                         HtmlData htmlData,
                         List pkNames,
                         BusinessObjectRestrictions businessObjectRestrictions)
businessObject - htmlData - pkNames - 
boolean allowsMaintenanceNewOrCopyAction()
boolean allowsNewOrCopyAction(String documentTypeName)
List<Row> getRows()
DataDictionaryService getDataDictionaryService()
BusinessObjectDictionaryService getBusinessObjectDictionaryService()
void setBackLocation(String backLocation)
String getBackLocation()
Collection<? extends BusinessObject> performLookup(LookupForm lookupForm,
                                                   Collection<ResultRow> resultTable,
                                                   boolean bounded)
lookupForm - resultTable - bounded - 
List<String> getDefaultSortColumns()
boolean isSearchUsingOnlyPrimaryKeyValues()
getPrimaryKeyFieldLabels()String getPrimaryKeyFieldLabels()
isSearchUsingOnlyPrimaryKeyValues()boolean isResultReturnable(BusinessObject object)
object - an object from the search result set
void performClear(LookupForm lookupForm)
boolean shouldDisplayHeaderNonMaintActions()
boolean shouldDisplayLookupCriteria()
String getSupplementalMenuBar()
String getTitle()
boolean performCustomAction(boolean ignoreErrors)
ignoreErrors - 
Field getExtraField()
void applyFieldAuthorizationsFromNestedLookups(Field field)
void applyConditionalLogicForFieldDisplay()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||