org.kuali.kfs.vnd.businessobject.lookup
Class VendorLookupableHelperServiceImpl

java.lang.Object
  extended by org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl
      extended by org.kuali.kfs.vnd.businessobject.lookup.VendorLookupableHelperServiceImpl
All Implemented Interfaces:
Serializable, org.kuali.rice.kns.lookup.LookupableHelperService

public class VendorLookupableHelperServiceImpl
extends org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl
ACTION_URLS_CHILDREN_END, ACTION_URLS_CHILDREN_SEPARATOR, ACTION_URLS_CHILDREN_STARTER, ACTION_URLS_EMPTY, ACTION_URLS_SEPARATOR, backLocation, businessObjectAuthorizationService, businessObjectClass, businessObjectDictionaryService, businessObjectMetaDataService, businessObjectService, configurationService, dataDictionaryService, docFormKey, docNum, encryptionService, fieldConversions, forceLookupResultFieldInquiryCache, inquirableClassCache, kualiInquirable, LOG, lookupResultsService, lookupService, maintenanceDocumentDictionaryService, noLookupResultFieldInquiryCache, parameters, persistenceStructureService, readOnlyFieldsList, referencesToRefresh, resultColumns, RESULTS_DEFAULT_MAX_COLUMN_LENGTH, rows, sequenceAccessorService, TITLE_ACTION_URL_PREPENDTEXT_PROPERTY, TITLE_RETURN_URL_PREPENDTEXT_PROPERTY
 
Constructor Summary
VendorLookupableHelperServiceImpl()
           
 
Method Summary
protected  String getActionUrlHref(org.kuali.rice.kns.bo.BusinessObject businessObject, String methodToCall, List pkNames)
          Used by getActionUrls to print the url on the Vendor Lookup page for the links to edit a Vendor or to create a new division.
 List<org.kuali.rice.kns.lookup.HtmlData> getCustomActionUrls(org.kuali.rice.kns.bo.BusinessObject businessObject, List pkNames)
          Add custom links to the vendor search results.
 List<org.kuali.rice.kns.bo.BusinessObject> getSearchResults(Map<String,String> fieldValues)
          Overrides the getSearchResults in the super class so that we can do some customization in our vendor lookup.
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
           
 void setVendorService(VendorService vendorService)
           
 void validateSearchParameters(Map fieldValues)
          Overrides a method of the superclass and is now called instead of that one by the Search method of KualiLookupAction when the Lookupable is of this class.
 
Methods inherited from class org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl
addToReturnHref, allowsMaintenanceDeleteAction, allowsMaintenanceEditAction, allowsMaintenanceNewOrCopyAction, allowsNewOrCopyAction, applyConditionalLogicForFieldDisplay, applyFieldAuthorizationsFromNestedLookups, checkForAdditionalFields, getActionUrls, getActionUrlTitleText, getBackLocation, getBusinessObjectAuthorizationService, getBusinessObjectClass, getBusinessObjectDictionaryService, getBusinessObjectMetaDataService, getBusinessObjectService, getColumnMaxLength, getColumns, getConditionallyHiddenPropertyNames, getConditionallyReadOnlyPropertyNames, getConditionallyRequiredPropertyNames, getCurrentSearchFieldValue, getDataDictionaryService, getDefaultSortColumns, getDocFormKey, getDocNum, getEmptyActionUrls, getEmptyAnchorHtmlData, getEncryptionService, getExtraField, getInquiryUrl, getKualiConfigurationService, getKualiInquirable, getLookupResultsService, getLookupService, getMaintenanceDocumentDictionaryService, getMaintenanceDocumentTypeName, getMaintenanceUrl, getParameters, getParameters, getParameterService, getParametersFromPrimaryKey, getPersistenceStructureService, getPrimaryKeyFieldLabels, getPropertyClass, getReadOnlyFieldsList, getReferencesToRefresh, getReturnAnchorHtmlData, getReturnHref, getReturnHref, getReturnInputHtmlData, getReturnKeys, getReturnLocation, getReturnUrl, getReturnUrl, getRows, getSearchResultsUnbounded, getSequenceAccessorService, getSupplementalMenuBar, getTitle, getUrlData, getUrlData, isResultReturnable, isSearchUsingOnlyPrimaryKeyValues, maskValueIfNecessary, performClear, performCustomAction, performLookup, preprocessDateFields, setBackLocation, setBusinessObjectClass, setBusinessObjectDictionaryService, setBusinessObjectMetaDataService, setBusinessObjectService, setDataDictionaryService, setDocFormKey, setDocNum, setEncryptionService, setFieldConversions, setKualiInquirable, setLookupResultsService, setLookupService, setMaintenanceDocumentDictionaryService, setParameters, setParameterService, setPersistenceStructureService, setReadOnlyFieldsList, setReferencesToRefresh, setRows, setSequenceAccessorService, shouldDisplayHeaderNonMaintActions, shouldDisplayLookupCriteria, validateSearchParameterWildcardAndOperators
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VendorLookupableHelperServiceImpl

public VendorLookupableHelperServiceImpl()
Method Detail

getCustomActionUrls

public List<org.kuali.rice.kns.lookup.HtmlData> getCustomActionUrls(org.kuali.rice.kns.bo.BusinessObject businessObject,
                                                                    List pkNames)
Add custom links to the vendor search results. One to Allow only active parent vendors to create new divisions. Another to create a link for B2B shopping if PURAP service has been setup to allow for that.

Specified by:
getCustomActionUrls in interface org.kuali.rice.kns.lookup.LookupableHelperService
Overrides:
getCustomActionUrls in class org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl
See Also:
org.kuali.rice.kns.lookup.LookupableHelperService#getCustomActionUrls(org.kuali.rice.kns.bo.BusinessObject, java.util.List, java.util.List pkNames)

getActionUrlHref

protected String getActionUrlHref(org.kuali.rice.kns.bo.BusinessObject businessObject,
                                  String methodToCall,
                                  List pkNames)
Used by getActionUrls to print the url on the Vendor Lookup page for the links to edit a Vendor or to create a new division. We won't provide a link to copy a vendor because we decided it wouldn't make sense to copy a vendor. We should display the link to create a new division only if the vendor is a parent vendor, and also remove the vendor detail assigned id from the query string in the link to create a new division. We'll add the vendor detail assigned id in the query string if the vendor is not a parent, or if the vendor is a parent and the link is not the create new division link (i.e. if the link is "edit"). We'll always add the vendor header id in the query string in all links.

Overrides:
getActionUrlHref in class org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl
See Also:
AbstractLookupableHelperServiceImpl.getActionUrlHref(org.kuali.rice.kns.bo.BusinessObject, java.lang.String, java.util.List)

getSearchResults

public List<org.kuali.rice.kns.bo.BusinessObject> getSearchResults(Map<String,String> fieldValues)
Overrides the getSearchResults in the super class so that we can do some customization in our vendor lookup. For example, for vendor name as the search criteria, we want to search both the vendor detail table and the vendor alias table for the vendor name. Display the vendor's default address state in the search results.

Specified by:
getSearchResults in interface org.kuali.rice.kns.lookup.LookupableHelperService
Specified by:
getSearchResults in class org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl
See Also:
Lookupable.getSearchResults(java.util.Map)

validateSearchParameters

public void validateSearchParameters(Map fieldValues)
Overrides a method of the superclass and is now called instead of that one by the Search method of KualiLookupAction when the Lookupable is of this class. This method first calls the method from the superclass, which should do all the required field checking, and then goes through all the specific validations which aren't done in at the JSP level. Both the superclass method and the various validation methods side-effect the adding of errors to the global error map when the input is found to have an issue.

Specified by:
validateSearchParameters in interface org.kuali.rice.kns.lookup.LookupableHelperService
Overrides:
validateSearchParameters in class org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl
See Also:
AbstractLookupableHelperServiceImpl.validateSearchParameters(java.util.Map)

setVendorService

public void setVendorService(VendorService vendorService)

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Overrides:
setParameterService in class org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.