org.kuali.kfs.fp.document.service.impl
Class DisbursementVoucherPayeeServiceImpl

java.lang.Object
  extended by org.kuali.kfs.fp.document.service.impl.DisbursementVoucherPayeeServiceImpl
All Implemented Interfaces:
DisbursementVoucherPayeeService

public class DisbursementVoucherPayeeServiceImpl
extends Object
implements DisbursementVoucherPayeeService

implementing the service methods defined in DisbursementVoucherPayeeService

See Also:
DisbursementVoucherPayeeService

Constructor Summary
DisbursementVoucherPayeeServiceImpl()
           
 
Method Summary
protected  String buildAddressValueDifferenceText(String valueName, String oldValue, String newValue)
          This method...
protected  org.kuali.rice.kns.bo.AdHocRoutePerson buildFyiRecipient(String userId)
          This method...
protected  String buildPayeeChangedNoteText(DisbursementVoucherPayeeDetail newPayeeDetail, DisbursementVoucherPayeeDetail oldPayeeDetail)
          Creates text for a note which records changes to the payee
 void checkPayeeAddressForChanges(DisbursementVoucherDocument dvDoc)
           
protected  FinancialSystemTransactionalDocumentAuthorizerBase getDocumentAuthorizer(DisbursementVoucherDocument dvDoc)
          Constructs a document authorizer for this class
 String getPayeeTypeDescription(String payeeTypeCode)
          find the payee type description corresponding to the given payee type code
 String getVendorOwnershipTypeCode(DisbursementPayee payee)
          get the ownership type code if the given payee is a vendor
protected  String getVendorTypeDescription(String vendorTypeCode)
           
 boolean isEmployee(DisbursementPayee payee)
          determine whether the given payee is an employee
 boolean isEmployee(DisbursementVoucherPayeeDetail dvPayeeDetail)
          determine whether the given payee is an employee
 boolean isPayeeIndividualVendor(DisbursementPayee payee)
          determine whether the given payee is an individual vendor
 boolean isPayeeIndividualVendor(DisbursementVoucherPayeeDetail dvPayeeDetail)
          determine whether the given payee is an individual vendor
protected  boolean isPayeeIndividualVendor(String payeeIdNumber)
           
 boolean isVendor(DisbursementPayee payee)
          determine whether the given payee is a vendor
 boolean isVendor(DisbursementVoucherPayeeDetail dvPayeeDetail)
          determine whether the given payee is a vendor
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
          Sets the dataDictionaryService attribute value.
 void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
          Sets the documentService attribute value.
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
          Sets the parameterService attribute value.
protected  void setupFYIs(DisbursementVoucherDocument dvDoc, Set<org.kuali.rice.kim.bo.Person> priorApprovers, String initiatorUserId)
          Creates FYI requests to previous approvers
 void setVendorService(VendorService vendorService)
          Sets the vendorService attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisbursementVoucherPayeeServiceImpl

public DisbursementVoucherPayeeServiceImpl()
Method Detail

getPayeeTypeDescription

public String getPayeeTypeDescription(String payeeTypeCode)
Description copied from interface: DisbursementVoucherPayeeService
find the payee type description corresponding to the given payee type code

Specified by:
getPayeeTypeDescription in interface DisbursementVoucherPayeeService
Parameters:
payeeTypeCode - the given payee type code
Returns:
the payee type description corresponding to the given payee type code
See Also:
DisbursementVoucherPayeeService.getPayeeTypeDescription(java.lang.String)

isEmployee

public boolean isEmployee(DisbursementVoucherPayeeDetail dvPayeeDetail)
Description copied from interface: DisbursementVoucherPayeeService
determine whether the given payee is an employee

Specified by:
isEmployee in interface DisbursementVoucherPayeeService
Parameters:
dvPayeeDetail - the given payee
Returns:
true if the given payee is an employee; otherwise, false
See Also:
DisbursementVoucherPayeeService.isEmployee(org.kuali.kfs.fp.businessobject.DisbursementVoucherPayeeDetail)

isEmployee

public boolean isEmployee(DisbursementPayee payee)
Description copied from interface: DisbursementVoucherPayeeService
determine whether the given payee is an employee

Specified by:
isEmployee in interface DisbursementVoucherPayeeService
Parameters:
payee - the given payee
Returns:
true if the given payee is an employee; otherwise, false
See Also:
DisbursementVoucherPayeeService.isEmployee(org.kuali.kfs.fp.businessobject.DisbursementPayee)

isVendor

public boolean isVendor(DisbursementVoucherPayeeDetail dvPayeeDetail)
Description copied from interface: DisbursementVoucherPayeeService
determine whether the given payee is a vendor

Specified by:
isVendor in interface DisbursementVoucherPayeeService
Parameters:
dvPayeeDetail - the given payee
Returns:
true if the given payee is a vendor; otherwise, false
See Also:
DisbursementVoucherPayeeService.isVendor(org.kuali.kfs.fp.businessobject.DisbursementVoucherPayeeDetail)

isVendor

public boolean isVendor(DisbursementPayee payee)
Description copied from interface: DisbursementVoucherPayeeService
determine whether the given payee is a vendor

Specified by:
isVendor in interface DisbursementVoucherPayeeService
Parameters:
payee - the given payee
Returns:
true if the given payee is a vendor; otherwise, false
See Also:
DisbursementVoucherPayeeService.isVendor(org.kuali.kfs.fp.businessobject.DisbursementPayee)

isPayeeIndividualVendor

public boolean isPayeeIndividualVendor(DisbursementVoucherPayeeDetail dvPayeeDetail)
Description copied from interface: DisbursementVoucherPayeeService
determine whether the given payee is an individual vendor

Specified by:
isPayeeIndividualVendor in interface DisbursementVoucherPayeeService
Parameters:
dvPayeeDetail - the given payee
Returns:
true if the given payee is an individual vendor; otherwise, false
See Also:
DisbursementVoucherPayeeService.isPayeeIndividualVendor(org.kuali.kfs.fp.businessobject.DisbursementVoucherPayeeDetail)

isPayeeIndividualVendor

public boolean isPayeeIndividualVendor(DisbursementPayee payee)
Description copied from interface: DisbursementVoucherPayeeService
determine whether the given payee is an individual vendor

Specified by:
isPayeeIndividualVendor in interface DisbursementVoucherPayeeService
Parameters:
payee - the given payee
Returns:
true if the given payee is an individual vendor; otherwise, false
See Also:
DisbursementVoucherPayeeService.isPayeeIndividualVendor(org.kuali.kfs.fp.businessobject.DisbursementPayee)

getVendorOwnershipTypeCode

public String getVendorOwnershipTypeCode(DisbursementPayee payee)
Description copied from interface: DisbursementVoucherPayeeService
get the ownership type code if the given payee is a vendor

Specified by:
getVendorOwnershipTypeCode in interface DisbursementVoucherPayeeService
Parameters:
payee - the given payee
Returns:
the ownership type code if the given payee is a vendor; otherwise, return null
See Also:
DisbursementVoucherPayeeService.getVendorOwnershipTypeCode(org.kuali.kfs.fp.businessobject.DisbursementPayee)

checkPayeeAddressForChanges

public void checkPayeeAddressForChanges(DisbursementVoucherDocument dvDoc)
Specified by:
checkPayeeAddressForChanges in interface DisbursementVoucherPayeeService
See Also:
DisbursementVoucherPayeeService.checkPayeeAddressForChanges(org.kuali.kfs.fp.document.DisbursementVoucherDocument)

buildPayeeChangedNoteText

protected String buildPayeeChangedNoteText(DisbursementVoucherPayeeDetail newPayeeDetail,
                                           DisbursementVoucherPayeeDetail oldPayeeDetail)
Creates text for a note which records changes to the payee

Parameters:
newPayeeDetail - the changed payee detail
oldPayeeDetail - the original payee detail
Returns:
the string for a note

buildAddressValueDifferenceText

protected String buildAddressValueDifferenceText(String valueName,
                                                 String oldValue,
                                                 String newValue)
This method...

Parameters:
valueName -
oldValue -
newValue -
Returns:

setupFYIs

protected void setupFYIs(DisbursementVoucherDocument dvDoc,
                         Set<org.kuali.rice.kim.bo.Person> priorApprovers,
                         String initiatorUserId)
Creates FYI requests to previous approvers

Parameters:
dvDoc - the document where the payee address has changed
priorApprovers - the previous approvers
initiatorUserId - the id of the initiator

getDocumentAuthorizer

protected FinancialSystemTransactionalDocumentAuthorizerBase getDocumentAuthorizer(DisbursementVoucherDocument dvDoc)
Constructs a document authorizer for this class

Returns:
the document authorizer for this class

buildFyiRecipient

protected org.kuali.rice.kns.bo.AdHocRoutePerson buildFyiRecipient(String userId)
This method...

Parameters:
userId -
Returns:

getVendorTypeDescription

protected String getVendorTypeDescription(String vendorTypeCode)

isPayeeIndividualVendor

protected boolean isPayeeIndividualVendor(String payeeIdNumber)

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.

Parameters:
businessObjectService - The businessObjectService to set.

setDocumentService

public void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
Sets the documentService attribute value.

Parameters:
documentService - The documentService to set.

setDataDictionaryService

public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute value.

Parameters:
dataDictionaryService - The dataDictionaryService to set.

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService attribute value.

Parameters:
parameterService - The parameterService to set.

setVendorService

public void setVendorService(VendorService vendorService)
Sets the vendorService attribute value.

Parameters:
vendorService - The vendorService to set.


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