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

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

public class DisbursementVoucherPaymentReasonServiceImpl
extends Object
implements DisbursementVoucherPaymentReasonService

implementing the service methods defined in DisbursementVoucherPaymentReasonService

See Also:
DisbursementVoucherPaymentReasonService

Field Summary
 org.kuali.rice.kns.service.ParameterService parameterService
           
 
Constructor Summary
DisbursementVoucherPaymentReasonServiceImpl()
           
 
Method Summary
protected  String convertListToString(List<String> list)
           
protected  String getDescriptivePayeeTypesAsString(List<String> payeeTypeCodes)
           
 List<String> getPayeeTypesByPaymentReason(String paymentReasonCode)
          get the payee type codes valid for the given payment reason
 PaymentReasonCode getPaymentReasonByPrimaryId(String paymentReasonCode)
          get the payment reason with its primary key: the given payment reason code
 String getReserchNonVendorPayLimit()
          get the payment limit to research non-vendor employee for research payment reason
 List<String> getVendorOwnershipTypesByPaymentReason(String paymentReasonCode)
          get the vendor owership type codes for the given payment reason code
 boolean isDecedentCompensationPaymentReason(String paymentReasonCode)
          determine whether the given payment reason is a decedent compensation payment reason
 boolean isMovingPaymentReason(String paymentReasonCode)
          determine whether the given payment reason is a moving payment reason
 boolean isNonEmployeeTravelPaymentReason(String paymentReasonCode)
          determine whether the given payment reason is a non-employee travel payment reason
 boolean isPayeeQualifiedForPayment(DisbursementPayee payee, String paymentReasonCode)
          determine whether the given payee is qualified for the payment with the given reason code
 boolean isPayeeQualifiedForPayment(DisbursementPayee payee, String paymentReasonCode, List<String> payeeTypeCodes)
          determine whether the given payee is qualified for the payment with the given reason code and the payee type must be in the given payee type code list.
 boolean isPaymentReasonOfType(String typeParameterName, String paymentReasonCode)
          determine whether the given payment reason is of type that is specified by the given type parameter name.
 boolean isPrepaidTravelPaymentReason(String paymentReasonCode)
          determine whether the given payment reason is a prepaid travel payment reason
 boolean isResearchPaymentReason(String paymentReasonCode)
          determine whether the given payment reason is a research payment reason
 boolean isRevolvingFundPaymentReason(String paymentReasonCode)
          determine whether the given payment reason is a revolving fund payment reason
 boolean isTaxReviewRequired(String paymentReasonCode)
          determine whether the given payment reason is required for tax review
 void postPaymentReasonCodeUsage(String paymentReasonCode, org.kuali.rice.kns.util.MessageList messageList)
          post the usage of the given payment reason code into error map
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 void setDisbursementVoucherPayeeService(DisbursementVoucherPayeeService disbursementVoucherPayeeService)
          Sets the disbursementVoucherPayeeService attribute value.
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
          Sets the parameterService attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parameterService

public org.kuali.rice.kns.service.ParameterService parameterService
Constructor Detail

DisbursementVoucherPaymentReasonServiceImpl

public DisbursementVoucherPaymentReasonServiceImpl()
Method Detail

isPayeeQualifiedForPayment

public boolean isPayeeQualifiedForPayment(DisbursementPayee payee,
                                          String paymentReasonCode)
Description copied from interface: DisbursementVoucherPaymentReasonService
determine whether the given payee is qualified for the payment with the given reason code

Specified by:
isPayeeQualifiedForPayment in interface DisbursementVoucherPaymentReasonService
Parameters:
payee - the given payee
paymentReasonCode - the givne payment reason code
Returns:
true if the given payee is qualified for the payment with the given reason code; otherwise, return false
See Also:
DisbursementVoucherPaymentReasonService.isPayeeQualifiedForPayment(org.kuali.kfs.fp.businessobject.DisbursementPayee, java.lang.String)

isPayeeQualifiedForPayment

public boolean isPayeeQualifiedForPayment(DisbursementPayee payee,
                                          String paymentReasonCode,
                                          List<String> payeeTypeCodes)
Description copied from interface: DisbursementVoucherPaymentReasonService
determine whether the given payee is qualified for the payment with the given reason code and the payee type must be in the given payee type code list.

Specified by:
isPayeeQualifiedForPayment in interface DisbursementVoucherPaymentReasonService
Parameters:
payee - the given payee
paymentReasonCode - the givne payment reason code
payeeTypeCodes - the given payee type codes
Returns:
true if the given payee is qualified for the payment with the given reason code; otherwise, return false
See Also:
DisbursementVoucherPaymentReasonService.isPayeeQualifiedForPayment(org.kuali.kfs.fp.businessobject.DisbursementPayee, java.lang.String, java.util.List)

isMovingPaymentReason

public boolean isMovingPaymentReason(String paymentReasonCode)
Description copied from interface: DisbursementVoucherPaymentReasonService
determine whether the given payment reason is a moving payment reason

Specified by:
isMovingPaymentReason in interface DisbursementVoucherPaymentReasonService
Parameters:
paymentReasonCode - the givne payment reason code
Returns:
true if the given payment reason is a moving payment reason; otherwise, return false
See Also:
DisbursementVoucherPaymentReasonService.isMovingPaymentReason(java.lang.String)

isPrepaidTravelPaymentReason

public boolean isPrepaidTravelPaymentReason(String paymentReasonCode)
Description copied from interface: DisbursementVoucherPaymentReasonService
determine whether the given payment reason is a prepaid travel payment reason

Specified by:
isPrepaidTravelPaymentReason in interface DisbursementVoucherPaymentReasonService
Parameters:
paymentReasonCode - the givne payment reason code
Returns:
true if the given payment reason is a prepaid travel payment reason; otherwise, return false
See Also:
DisbursementVoucherPaymentReasonService.isPrepaidTravelPaymentReason(java.lang.String)

isNonEmployeeTravelPaymentReason

public boolean isNonEmployeeTravelPaymentReason(String paymentReasonCode)
Description copied from interface: DisbursementVoucherPaymentReasonService
determine whether the given payment reason is a non-employee travel payment reason

Specified by:
isNonEmployeeTravelPaymentReason in interface DisbursementVoucherPaymentReasonService
Parameters:
paymentReasonCode - the givne payment reason code
Returns:
true if the given payment reason is a moving payment reason; otherwise, return false
See Also:
DisbursementVoucherPaymentReasonService.isNonEmployeeTravelPaymentReason(java.lang.String)

isResearchPaymentReason

public boolean isResearchPaymentReason(String paymentReasonCode)
Description copied from interface: DisbursementVoucherPaymentReasonService
determine whether the given payment reason is a research payment reason

Specified by:
isResearchPaymentReason in interface DisbursementVoucherPaymentReasonService
Parameters:
paymentReasonCode - the givne payment reason code
Returns:
true if the given payment reason is a research payment reason; otherwise, return false
See Also:
DisbursementVoucherPaymentReasonService.isResearchPaymentReason(java.lang.String)

isRevolvingFundPaymentReason

public boolean isRevolvingFundPaymentReason(String paymentReasonCode)
Description copied from interface: DisbursementVoucherPaymentReasonService
determine whether the given payment reason is a revolving fund payment reason

Specified by:
isRevolvingFundPaymentReason in interface DisbursementVoucherPaymentReasonService
Parameters:
paymentReasonCode - the givne payment reason code
Returns:
true if the given payment reason is a revolving fund payment reason; otherwise, return false
See Also:
DisbursementVoucherPaymentReasonService.isRevolvingFundPaymentReason(java.lang.String)

isDecedentCompensationPaymentReason

public boolean isDecedentCompensationPaymentReason(String paymentReasonCode)
Description copied from interface: DisbursementVoucherPaymentReasonService
determine whether the given payment reason is a decedent compensation payment reason

Specified by:
isDecedentCompensationPaymentReason in interface DisbursementVoucherPaymentReasonService
Parameters:
paymentReasonCode - the givne payment reason code
Returns:
true if the given payment reason is a decedent compensation payment reason; otherwise, return false
See Also:
DisbursementVoucherPaymentReasonService.isDecedentCompensationPaymentReason(java.lang.String)

isPaymentReasonOfType

public boolean isPaymentReasonOfType(String typeParameterName,
                                     String paymentReasonCode)
Description copied from interface: DisbursementVoucherPaymentReasonService
determine whether the given payment reason is of type that is specified by the given type parameter name. The type parameter must be defined as an application parameter(@see org.kuali.rice.kns.bo.Parameter)

Specified by:
isPaymentReasonOfType in interface DisbursementVoucherPaymentReasonService
Parameters:
typeParameterName - the given type parameter name
paymentReasonCode - the given reason code
Returns:
true if the given payment reason is of type that is specified by typeParameterName; otherwise, false
See Also:
DisbursementVoucherPaymentReasonService.isPaymentReasonOfType(java.lang.String, java.lang.String)

getReserchNonVendorPayLimit

public String getReserchNonVendorPayLimit()
Description copied from interface: DisbursementVoucherPaymentReasonService
get the payment limit to research non-vendor employee for research payment reason

Specified by:
getReserchNonVendorPayLimit in interface DisbursementVoucherPaymentReasonService
Returns:
the payment limit to research non-vendor employee for research payment reason.
See Also:
DisbursementVoucherPaymentReasonService.getReserchNonVendorPayLimit()

getPayeeTypesByPaymentReason

public List<String> getPayeeTypesByPaymentReason(String paymentReasonCode)
Description copied from interface: DisbursementVoucherPaymentReasonService
get the payee type codes valid for the given payment reason

Specified by:
getPayeeTypesByPaymentReason in interface DisbursementVoucherPaymentReasonService
Parameters:
paymentReasonCode - the given payment reason
Returns:
the payee type codes valid for the given payment reason
See Also:
DisbursementVoucherPaymentReasonService.getPayeeTypesByPaymentReason(java.lang.String)

getVendorOwnershipTypesByPaymentReason

public List<String> getVendorOwnershipTypesByPaymentReason(String paymentReasonCode)
Description copied from interface: DisbursementVoucherPaymentReasonService
get the vendor owership type codes for the given payment reason code

Specified by:
getVendorOwnershipTypesByPaymentReason in interface DisbursementVoucherPaymentReasonService
Parameters:
paymentReasonCode - the given payment reason code
Returns:
the vendor owership type codes for the given payment reason code if any; otherwise, null
See Also:
DisbursementVoucherPaymentReasonService.getVendorOwnershipTypesByPaymentReason(java.lang.String)

getPaymentReasonByPrimaryId

public PaymentReasonCode getPaymentReasonByPrimaryId(String paymentReasonCode)
Description copied from interface: DisbursementVoucherPaymentReasonService
get the payment reason with its primary key: the given payment reason code

Specified by:
getPaymentReasonByPrimaryId in interface DisbursementVoucherPaymentReasonService
Parameters:
paymentReasonCode - the given payment reason
Returns:
the payment reason with its primary key: the given payment reason code
See Also:
DisbursementVoucherPaymentReasonService.getPaymentReasonByPrimaryId(java.lang.String)

isTaxReviewRequired

public boolean isTaxReviewRequired(String paymentReasonCode)
Description copied from interface: DisbursementVoucherPaymentReasonService
determine whether the given payment reason is required for tax review

Specified by:
isTaxReviewRequired in interface DisbursementVoucherPaymentReasonService
Parameters:
paymentReasonCode - the given payment reason
Returns:
true if the given payment reason is required for tax review; otherwise, false
See Also:
DisbursementVoucherPaymentReasonService.isTaxReviewRequired(java.lang.String)

postPaymentReasonCodeUsage

public void postPaymentReasonCodeUsage(String paymentReasonCode,
                                       org.kuali.rice.kns.util.MessageList messageList)
Description copied from interface: DisbursementVoucherPaymentReasonService
post the usage of the given payment reason code into error map

Specified by:
postPaymentReasonCodeUsage in interface DisbursementVoucherPaymentReasonService
Parameters:
paymentReasonCode - the given payment reason code
messageList - the message list that will hold the usage of the given payment reason
See Also:
DisbursementVoucherPaymentReasonService.postPaymentReasonCodeUsage(java.lang.String, org.kuali.rice.kns.util.MessageList)

getDescriptivePayeeTypesAsString

protected String getDescriptivePayeeTypesAsString(List<String> payeeTypeCodes)

convertListToString

protected String convertListToString(List<String> list)

setParameterService

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

Parameters:
parameterService - The parameterService to set.

setBusinessObjectService

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

Parameters:
businessObjectService - The businessObjectService to set.

setDisbursementVoucherPayeeService

public void setDisbursementVoucherPayeeService(DisbursementVoucherPayeeService disbursementVoucherPayeeService)
Sets the disbursementVoucherPayeeService attribute value.

Parameters:
disbursementVoucherPayeeService - The disbursementVoucherPayeeService to set.


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