org.kuali.kfs.module.purap.service.impl
Class PurapAccountRevisionServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.purap.service.impl.PurapAccountRevisionServiceImpl
All Implemented Interfaces:
PurapAccountRevisionService

public class PurapAccountRevisionServiceImpl
extends Object
implements PurapAccountRevisionService


Constructor Summary
PurapAccountRevisionServiceImpl()
           
 
Method Summary
protected  Map<PurapAccountRevisionGroup,PurapAccountRevisionGroup> buildAccountHistoryGroups(AccountsPayableItemBase item, Integer postingYear, String postingPeriodCode, Class<? extends PurApAccountingLineBase> clazz)
          Builds account history group based on existing account history lines
protected  Map<PurapAccountRevisionGroup,PurapAccountRevisionGroup> buildAccountLineGroups(AccountsPayableItemBase item, Integer postingYear, String postingPeriodCode)
          Builds account history grouping data based on given list of purap account lines
 void cancelCreditMemoAccountRevisions(List<CreditMemoItem> creditMemoItems, Integer postingYear, String postingPeriodCode)
          This method will negate all existing credit memo account revision lines
 void cancelPaymentRequestAccountRevisions(List<PaymentRequestItem> paymentRequestItems, Integer postingYear, String postingPeriodCode)
          This method will negate all existing payment request account line revisions
 org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
          Gets the businessObjectService attribute.
 org.kuali.rice.kns.service.DateTimeService getDateTimeService()
          Gets the dateTimeService attribute.
 void saveCreditMemoAccountRevisions(List<CreditMemoItem> creditMemoItems, Integer postingYear, String postingPeriodCode)
          This method will identify the changes happened to existing credit memo accounting lines and update the account change history table.
 void savePaymentRequestAccountRevisions(List<PaymentRequestItem> paymentRequestItems, Integer postingYear, String postingPeriodCode)
          This method will identify the changes happened to existing payment request accounting lines and update the account change history table.
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
          Sets the dateTimeService attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PurapAccountRevisionServiceImpl

public PurapAccountRevisionServiceImpl()
Method Detail

savePaymentRequestAccountRevisions

public void savePaymentRequestAccountRevisions(List<PaymentRequestItem> paymentRequestItems,
                                               Integer postingYear,
                                               String postingPeriodCode)
Description copied from interface: PurapAccountRevisionService
This method will identify the changes happened to existing payment request accounting lines and update the account change history table. If new lines are added, then new account history lines are added too.

Specified by:
savePaymentRequestAccountRevisions in interface PurapAccountRevisionService
Parameters:
paymentRequestItems - Items from payment request document
postingYear - Posting year
postingPeriodCode - Posting period code
See Also:
org.kuali.kfs.module.purap.service.PurapAccountHistoryService#savePaymentRequestAccountHistories(java.util.List, java.lang.Integer, java.lang.String)

cancelPaymentRequestAccountRevisions

public void cancelPaymentRequestAccountRevisions(List<PaymentRequestItem> paymentRequestItems,
                                                 Integer postingYear,
                                                 String postingPeriodCode)
Description copied from interface: PurapAccountRevisionService
This method will negate all existing payment request account line revisions

Specified by:
cancelPaymentRequestAccountRevisions in interface PurapAccountRevisionService
Parameters:
paymentRequestItems - Items from payment request document
postingYear - Posting year
postingPeriodCode - Posting period code

saveCreditMemoAccountRevisions

public void saveCreditMemoAccountRevisions(List<CreditMemoItem> creditMemoItems,
                                           Integer postingYear,
                                           String postingPeriodCode)
Description copied from interface: PurapAccountRevisionService
This method will identify the changes happened to existing credit memo accounting lines and update the account change history table. If new lines are added, then new account history lines are added too.

Specified by:
saveCreditMemoAccountRevisions in interface PurapAccountRevisionService
postingYear - Posting year
postingPeriodCode - Posting period code
See Also:
org.kuali.kfs.module.purap.service.PurapAccountHistoryService#saveCreditMemoAccountHistories(java.util.List, java.lang.Integer, java.lang.String)

cancelCreditMemoAccountRevisions

public void cancelCreditMemoAccountRevisions(List<CreditMemoItem> creditMemoItems,
                                             Integer postingYear,
                                             String postingPeriodCode)
Description copied from interface: PurapAccountRevisionService
This method will negate all existing credit memo account revision lines

Specified by:
cancelCreditMemoAccountRevisions in interface PurapAccountRevisionService
postingYear - Posting year
postingPeriodCode - Posting period code

buildAccountLineGroups

protected Map<PurapAccountRevisionGroup,PurapAccountRevisionGroup> buildAccountLineGroups(AccountsPayableItemBase item,
                                                                                          Integer postingYear,
                                                                                          String postingPeriodCode)
Builds account history grouping data based on given list of purap account lines

Parameters:
item - PurAp Item
postingYear - Posting year
postingPeriodCode - Posting period
Returns:

buildAccountHistoryGroups

protected Map<PurapAccountRevisionGroup,PurapAccountRevisionGroup> buildAccountHistoryGroups(AccountsPayableItemBase item,
                                                                                             Integer postingYear,
                                                                                             String postingPeriodCode,
                                                                                             Class<? extends PurApAccountingLineBase> clazz)
Builds account history group based on existing account history lines

Parameters:
item - PurAp item
postingYear - Posting year
postingPeriodCode - Posting period code
clazz - History class
Returns:
Map of account history groups

getBusinessObjectService

public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
Gets the businessObjectService attribute.

Returns:
Returns the businessObjectService.

setBusinessObjectService

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

Parameters:
businessObjectService - The businessObjectService to set.

getDateTimeService

public org.kuali.rice.kns.service.DateTimeService getDateTimeService()
Gets the dateTimeService attribute.

Returns:
Returns the dateTimeService.

setDateTimeService

public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
Sets the dateTimeService attribute value.

Parameters:
dateTimeService - The dateTimeService to set.


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