org.kuali.kfs.pdp.service.impl
Class PaymentMaintenanceServiceImpl

java.lang.Object
  extended by org.kuali.kfs.pdp.service.impl.PaymentMaintenanceServiceImpl
All Implemented Interfaces:
PaymentMaintenanceService

@Transactional
public class PaymentMaintenanceServiceImpl
extends Object
implements PaymentMaintenanceService

See Also:
PaymentMaintenanceService

Constructor Summary
PaymentMaintenanceServiceImpl()
           
 
Method Summary
 boolean cancelDisbursement(Integer paymentGroupId, Integer paymentDetailId, String note, org.kuali.rice.kim.bo.Person user)
          This method cancels all disbursements with the same disbursment number as that of the given payment id if the following rules apply.
 boolean cancelPendingPayment(Integer paymentGroupId, Integer paymentDetailId, String note, org.kuali.rice.kim.bo.Person user)
          This method cancels the pending payment of the given payment id if the following rules apply.
 boolean cancelReissueDisbursement(Integer paymentGroupId, String note, org.kuali.rice.kim.bo.Person user)
          This method cancels and re-opens all disbursements with the same disbursment number as that of the given payment id if the following rules apply.
 void changeImmediateFlag(Integer paymentGroupId, String note, org.kuali.rice.kim.bo.Person user)
          This method changes the immediate flag
protected  void changeStatus(PaymentGroup paymentGroup, String newPaymentStatus, String changeStatus, String note, org.kuali.rice.kim.bo.Person user)
          This method changes status for a payment group.
protected  void changeStatus(PaymentGroup paymentGroup, String newPaymentStatus, String changeStatus, String note, org.kuali.rice.kim.bo.Person user, PaymentGroupHistory paymentGroupHistory)
          This method changes the state of a paymentGroup.
 boolean holdPendingPayment(Integer paymentGroupId, String note, org.kuali.rice.kim.bo.Person user)
          This method holds pending payment of the given payment id if the following rules apply.
 boolean removeHoldPendingPayment(Integer paymentGroupId, String note, org.kuali.rice.kim.bo.Person user)
          This method removes holds on pending payments of the given payment id if the following rules apply.
 void setBankService(BankService bankService)
          Sets the bankService attribute value.
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the business object service
 void setEmailService(PdpEmailService emailService)
           
 void setEnvironmentService(EnvironmentService environmentService)
          inject
 void setGlPendingTransactionService(PendingTransactionService service)
          inject
 void setMailService(org.kuali.rice.kns.service.MailService mailService)
          inject
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
           
 void setPaymentDetailDao(PaymentDetailDao dao)
          inject
 void setPaymentGroupDao(PaymentGroupDao dao)
          inject
 void setPaymentGroupService(PaymentGroupService paymentGroupService)
          Sets the payment group service
 void setPdpAuthorizationService(PdpAuthorizationService pdpAuthorizationService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaymentMaintenanceServiceImpl

public PaymentMaintenanceServiceImpl()
Method Detail

changeStatus

protected void changeStatus(PaymentGroup paymentGroup,
                            String newPaymentStatus,
                            String changeStatus,
                            String note,
                            org.kuali.rice.kim.bo.Person user)
This method changes status for a payment group.

Parameters:
paymentGroup - the payment group
newPaymentStatus - the new payment status
changeStatus - the changed payment status
note - a note for payment status change
user - the user that changed the status

changeStatus

protected void changeStatus(PaymentGroup paymentGroup,
                            String newPaymentStatus,
                            String changeStatus,
                            String note,
                            org.kuali.rice.kim.bo.Person user,
                            PaymentGroupHistory paymentGroupHistory)
This method changes the state of a paymentGroup.

Parameters:
paymentGroup - the payment group to change the state for
newPaymentStatus - the new payment status
changeStatus - the status that is changed
note - the note entered by the user
user - the user that changed the
paymentGroupHistory -

cancelPendingPayment

public boolean cancelPendingPayment(Integer paymentGroupId,
                                    Integer paymentDetailId,
                                    String note,
                                    org.kuali.rice.kim.bo.Person user)
Description copied from interface: PaymentMaintenanceService
This method cancels the pending payment of the given payment id if the following rules apply. - Payment status must be: "open", "held", or "pending/ACH".

Specified by:
cancelPendingPayment in interface PaymentMaintenanceService
Parameters:
paymentGroupId - Primary key of the PaymentGroup that the Payment Detail to be canceled belongs to.
paymentDetailId - Primary key of the PaymentDetail that was actually canceled.
note - Change note text entered by user.
user - The user that cancels the payment
Returns:
true if cancel payment succesful, false otherwise
See Also:
org.kuali.kfs.pdp.document.service.PaymentMaintenanceService#cancelPendingPayment(java.lang.Integer, java.lang.Integer, java.lang.String, org.kuali.rice.kim.bo.Person)

holdPendingPayment

public boolean holdPendingPayment(Integer paymentGroupId,
                                  String note,
                                  org.kuali.rice.kim.bo.Person user)
Description copied from interface: PaymentMaintenanceService
This method holds pending payment of the given payment id if the following rules apply. - Payment status must be: "open".

Specified by:
holdPendingPayment in interface PaymentMaintenanceService
Parameters:
paymentGroupId - Primary key of the PaymentGroup that the Payment Detail to be held belongs to.
note - Change note text entered by user.
user - The user that holds the payment
See Also:
org.kuali.kfs.pdp.document.service.PaymentMaintenanceService#holdPendingPayment(java.lang.Integer, java.lang.String, org.kuali.rice.kim.bo.Person)

removeHoldPendingPayment

public boolean removeHoldPendingPayment(Integer paymentGroupId,
                                        String note,
                                        org.kuali.rice.kim.bo.Person user)
Description copied from interface: PaymentMaintenanceService
This method removes holds on pending payments of the given payment id if the following rules apply. - Payment status must be: "held".

Specified by:
removeHoldPendingPayment in interface PaymentMaintenanceService
Parameters:
paymentGroupId - Primary key of the PaymentGroup that the Payment Detail to be un-held belongs to
note - Change note text entered by user.
user - the user that removes hold on payment
See Also:
org.kuali.kfs.pdp.document.service.PaymentMaintenanceService#removeHoldPendingPayment(java.lang.Integer, java.lang.String, org.kuali.rice.kim.bo.Person)

changeImmediateFlag

public void changeImmediateFlag(Integer paymentGroupId,
                                String note,
                                org.kuali.rice.kim.bo.Person user)
Description copied from interface: PaymentMaintenanceService
This method changes the immediate flag

Specified by:
changeImmediateFlag in interface PaymentMaintenanceService
Parameters:
paymentGroupId - the payment group id
note - the change text
user - the user that changes the immediate flag
See Also:
org.kuali.kfs.pdp.document.service.PaymentMaintenanceService#changeImmediateFlag(java.lang.Integer, java.lang.String, org.kuali.rice.kim.bo.Person)

cancelDisbursement

public boolean cancelDisbursement(Integer paymentGroupId,
                                  Integer paymentDetailId,
                                  String note,
                                  org.kuali.rice.kim.bo.Person user)
Description copied from interface: PaymentMaintenanceService
This method cancels all disbursements with the same disbursment number as that of the given payment id if the following rules apply. - Payment status must be: "extr".

Specified by:
cancelDisbursement in interface PaymentMaintenanceService
Parameters:
paymentGroupId - Primary key of the PaymentGroup that the Payment Detail to be cancelled belongs to.
paymentDetailId - Primary key of the PaymentDetail that was actually cancelled.
note - Change note text entered by user.
user - The user that cancels the disbursement
See Also:
org.kuali.kfs.pdp.document.service.PaymentMaintenanceService#cancelDisbursement(java.lang.Integer, java.lang.Integer, java.lang.String, org.kuali.rice.kim.bo.Person)

cancelReissueDisbursement

public boolean cancelReissueDisbursement(Integer paymentGroupId,
                                         String note,
                                         org.kuali.rice.kim.bo.Person user)
Description copied from interface: PaymentMaintenanceService
This method cancels and re-opens all disbursements with the same disbursment number as that of the given payment id if the following rules apply. - Payment status must be: "extr".

Specified by:
cancelReissueDisbursement in interface PaymentMaintenanceService
Parameters:
paymentGroupId - Primary key of the PaymentGroup that the Payment Detail to be canceled/reissued belongs to.
note - Change note text entered by user.
user - The user that cancels/reissues disbursement
See Also:
org.kuali.kfs.pdp.document.service.PaymentMaintenanceService#cancelReissueDisbursement(java.lang.Integer, java.lang.String, org.kuali.rice.kim.bo.Person)

setPaymentGroupDao

public void setPaymentGroupDao(PaymentGroupDao dao)
inject

Parameters:
dao -

setPaymentDetailDao

public void setPaymentDetailDao(PaymentDetailDao dao)
inject

Parameters:
dao -

setGlPendingTransactionService

public void setGlPendingTransactionService(PendingTransactionService service)
inject

Parameters:
service -

setEnvironmentService

public void setEnvironmentService(EnvironmentService environmentService)
inject

Parameters:
service -

setMailService

public void setMailService(org.kuali.rice.kns.service.MailService mailService)
inject

Parameters:
service -

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)

setBankService

public void setBankService(BankService bankService)
Sets the bankService attribute value.

Parameters:
bankService - The bankService to set.

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the business object service

Parameters:
businessObjectService -

setPaymentGroupService

public void setPaymentGroupService(PaymentGroupService paymentGroupService)
Sets the payment group service

Parameters:
paymentGroupService -

setEmailService

public void setEmailService(PdpEmailService emailService)

setPdpAuthorizationService

public void setPdpAuthorizationService(PdpAuthorizationService pdpAuthorizationService)


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