org.kuali.kfs.fp.businessobject.lookup
Class DisbursementPayeeLookupableHelperServiceImpl

java.lang.Object
  extended by org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl
      extended by org.kuali.rice.kns.lookup.KualiLookupableHelperServiceImpl
          extended by org.kuali.kfs.fp.businessobject.lookup.DisbursementPayeeLookupableHelperServiceImpl
All Implemented Interfaces:
Serializable, org.kuali.rice.kns.lookup.LookupableHelperService
Direct Known Subclasses:
ACHPayeeLookupableHelperServiceImpl

public class DisbursementPayeeLookupableHelperServiceImpl
extends org.kuali.rice.kns.lookup.KualiLookupableHelperServiceImpl

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.kns.lookup.KualiLookupableHelperServiceImpl
searchUsingOnlyPrimaryKeyValues
 
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, lookupResultsService, lookupService, maintenanceDocumentDictionaryService, noLookupResultFieldInquiryCache, parameters, parameterService, persistenceStructureService, readOnlyFieldsList, referencesToRefresh, resultColumns, RESULTS_DEFAULT_MAX_COLUMN_LENGTH, rows, sequenceAccessorService, TITLE_ACTION_URL_PREPENDTEXT_PROPERTY, TITLE_RETURN_URL_PREPENDTEXT_PROPERTY
 
Constructor Summary
DisbursementPayeeLookupableHelperServiceImpl()
           
 
Method Summary
protected  boolean containsLookupWildcard(String s)
          Determines if the given String contains a lookup wildcard
protected  boolean filledEnough(String s)
          Determines if a String is "filled enough" - ie, is not null, has a length greater than zero and if a wildcard is present, has a length greater than 4 (3 characters, plus a wildcard)
protected  void filterReturnUrl(List<org.kuali.rice.kns.web.ui.ResultRow> resultRowList, List<DisbursementPayee> payeeList, String paymentReasonCode)
           
protected  String getAttributeLabel(String attributeName)
           
protected  int getNameLengthWithWildcardRequirement()
           
protected  DisbursementPayee getPayeeFromPerson(org.kuali.rice.kim.bo.Person personDetail, Map<String,String> fieldValues)
           
protected  DisbursementPayee getPayeeFromVendor(VendorDetail vendorDetail, Map<String,String> fieldValues)
           
protected  List<DisbursementPayee> getPersonAsPayees(Map<String,String> fieldValues)
           
 List<? extends org.kuali.rice.kns.bo.BusinessObject> getSearchResults(Map<String,String> fieldValues)
           
protected  List<DisbursementPayee> getVendorsAsPayees(Map<String,String> fieldValues)
           
 Collection performLookup(org.kuali.rice.kns.web.struts.form.LookupForm lookupForm, Collection resultTable, boolean bounded)
           
 void setDisbursementVoucherPaymentReasonService(DisbursementVoucherPaymentReasonService disbursementVoucherPaymentReasonService)
          Sets the disbursementVoucherPaymentReasonService attribute value.
 void setVendorLookupable(org.kuali.rice.kns.lookup.Lookupable vendorLookupable)
          Sets the vendorLookupable attribute value.
 void validateSearchParameters(Map fieldValues)
           
 
Methods inherited from class org.kuali.rice.kns.lookup.KualiLookupableHelperServiceImpl
getExternalBusinessObjectProperty, getExternalizableBusinessObjectClass, getExternalizableBusinessObjectFieldValues, getExternalizableBusinessObjectProperties, getPrimaryKeyFieldLabels, getSearchResultsHelper, getSearchResultsUnbounded, hasExternalBusinessObjectProperty, isExternalBusinessObjectProperty, isSearchUsingOnlyPrimaryKeyValues, removeExternalizableBusinessObjectFieldValues
 
Methods inherited from class org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl
addToReturnHref, allowsMaintenanceDeleteAction, allowsMaintenanceEditAction, allowsMaintenanceNewOrCopyAction, allowsNewOrCopyAction, applyConditionalLogicForFieldDisplay, applyFieldAuthorizationsFromNestedLookups, checkForAdditionalFields, getActionUrlHref, getActionUrls, getActionUrlTitleText, getBackLocation, getBusinessObjectAuthorizationService, getBusinessObjectClass, getBusinessObjectDictionaryService, getBusinessObjectMetaDataService, getBusinessObjectService, getColumnMaxLength, getColumns, getConditionallyHiddenPropertyNames, getConditionallyReadOnlyPropertyNames, getConditionallyRequiredPropertyNames, getCurrentSearchFieldValue, getCustomActionUrls, getDataDictionaryService, getDefaultSortColumns, getDocFormKey, getDocNum, getEmptyActionUrls, getEmptyAnchorHtmlData, getEncryptionService, getExtraField, getInquiryUrl, getKualiConfigurationService, getKualiInquirable, getLookupResultsService, getLookupService, getMaintenanceDocumentDictionaryService, getMaintenanceDocumentTypeName, getMaintenanceUrl, getParameters, getParameters, getParameterService, getParametersFromPrimaryKey, getPersistenceStructureService, getPropertyClass, getReadOnlyFieldsList, getReferencesToRefresh, getReturnAnchorHtmlData, getReturnHref, getReturnHref, getReturnInputHtmlData, getReturnKeys, getReturnLocation, getReturnUrl, getReturnUrl, getRows, getSequenceAccessorService, getSupplementalMenuBar, getTitle, getUrlData, getUrlData, isResultReturnable, maskValueIfNecessary, performClear, performCustomAction, preprocessDateFields, setBackLocation, setBusinessObjectClass, setBusinessObjectDictionaryService, setBusinessObjectMetaDataService, setBusinessObjectService, setDataDictionaryService, setDocFormKey, setDocNum, setEncryptionService, setFieldConversions, setKualiInquirable, setLookupResultsService, setLookupService, setMaintenanceDocumentDictionaryService, setParameters, setParameterService, 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

DisbursementPayeeLookupableHelperServiceImpl

public DisbursementPayeeLookupableHelperServiceImpl()
Method Detail

performLookup

public Collection performLookup(org.kuali.rice.kns.web.struts.form.LookupForm lookupForm,
                                Collection resultTable,
                                boolean bounded)
Specified by:
performLookup in interface org.kuali.rice.kns.lookup.LookupableHelperService
Overrides:
performLookup in class org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl
See Also:
AbstractLookupableHelperServiceImpl.performLookup(org.kuali.rice.kns.web.struts.form.LookupForm, java.util.Collection, boolean)

getSearchResults

public List<? extends org.kuali.rice.kns.bo.BusinessObject> getSearchResults(Map<String,String> fieldValues)
Specified by:
getSearchResults in interface org.kuali.rice.kns.lookup.LookupableHelperService
Overrides:
getSearchResults in class org.kuali.rice.kns.lookup.KualiLookupableHelperServiceImpl
See Also:
KualiLookupableHelperServiceImpl.getSearchResults(java.util.Map)

validateSearchParameters

public void validateSearchParameters(Map fieldValues)
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)

filledEnough

protected boolean filledEnough(String s)
Determines if a String is "filled enough" - ie, is not null, has a length greater than zero and if a wildcard is present, has a length greater than 4 (3 characters, plus a wildcard)

Parameters:
s - the String to test
Returns:
true if the given String is "filled" by the definition above, false otherwise

getNameLengthWithWildcardRequirement

protected int getNameLengthWithWildcardRequirement()
Returns:
the number of characters a name field must be filled in for the search to be valid

containsLookupWildcard

protected boolean containsLookupWildcard(String s)
Determines if the given String contains a lookup wildcard

Parameters:
s - the String to test
Returns:
true if a lookup wildcard is in the String, false otherwise

getAttributeLabel

protected String getAttributeLabel(String attributeName)

getVendorsAsPayees

protected List<DisbursementPayee> getVendorsAsPayees(Map<String,String> fieldValues)

getPayeeFromVendor

protected DisbursementPayee getPayeeFromVendor(VendorDetail vendorDetail,
                                               Map<String,String> fieldValues)

getPersonAsPayees

protected List<DisbursementPayee> getPersonAsPayees(Map<String,String> fieldValues)

getPayeeFromPerson

protected DisbursementPayee getPayeeFromPerson(org.kuali.rice.kim.bo.Person personDetail,
                                               Map<String,String> fieldValues)

filterReturnUrl

protected void filterReturnUrl(List<org.kuali.rice.kns.web.ui.ResultRow> resultRowList,
                               List<DisbursementPayee> payeeList,
                               String paymentReasonCode)

setVendorLookupable

public void setVendorLookupable(org.kuali.rice.kns.lookup.Lookupable vendorLookupable)
Sets the vendorLookupable attribute value.

Parameters:
vendorLookupable - The vendorLookupable to set.

setDisbursementVoucherPaymentReasonService

public void setDisbursementVoucherPaymentReasonService(DisbursementVoucherPaymentReasonService disbursementVoucherPaymentReasonService)
Sets the disbursementVoucherPaymentReasonService attribute value.

Parameters:
disbursementVoucherPaymentReasonService - The disbursementVoucherPaymentReasonService to set.


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