org.kuali.kfs.gl.batch.service.impl
Class PostEncumbrance

java.lang.Object
  extended by org.kuali.kfs.gl.batch.service.impl.PostEncumbrance
All Implemented Interfaces:
EncumbranceCalculator, PostTransaction

@Transactional
public class PostEncumbrance
extends Object
implements PostTransaction, EncumbranceCalculator

This implementation of PostTransaction posts a transaction that could be an encumbrance


Constructor Summary
PostEncumbrance()
          Constructs a PostEncumbrance instance
 
Method Summary
 Encumbrance findEncumbrance(Collection encumbranceList, Transaction t)
          Given a Collection of encumbrances, returns the encumbrance that would affected by the given transaction
 String getDestinationName()
          The name of the destination for the post (ie, the database table name where resultant records will be posted)
 String post(Transaction t, int mode, Date postDate, ReportWriterService posterReportWriterService)
          Called by the poster to post a transaction.
 void setAccountingCycleCachingService(AccountingCycleCachingService accountingCycleCachingService)
           
 void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
           
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
           
 void setPersistenceStructureService(org.kuali.rice.kns.service.PersistenceStructureService persistenceStructureService)
           
 void updateEncumbrance(Transaction t, Encumbrance enc)
          This will update the amounts in an Encumbrance records based on the data in the transaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostEncumbrance

public PostEncumbrance()
Constructs a PostEncumbrance instance

Method Detail

post

public String post(Transaction t,
                   int mode,
                   Date postDate,
                   ReportWriterService posterReportWriterService)
Called by the poster to post a transaction. The transaction might or might not be an encumbrance transaction.

Specified by:
post in interface PostTransaction
Parameters:
t - the transaction which is being posted
mode - the mode the poster is currently running in
postDate - the date this transaction should post to
posterReportWriterService - the writer service where the poster is writing its report
Returns:
the accomplished post type

findEncumbrance

public Encumbrance findEncumbrance(Collection encumbranceList,
                                   Transaction t)
Given a Collection of encumbrances, returns the encumbrance that would affected by the given transaction

Specified by:
findEncumbrance in interface EncumbranceCalculator
Parameters:
encumbranceList - a Collection of encumbrances
t - the transaction to find the appropriate encumbrance for
Returns:
the encumbrance found from the list, or, if not found, a newly created encumbrance
See Also:
EncumbranceCalculator.findEncumbrance(java.util.Collection, org.kuali.kfs.gl.businessobject.Transaction)

updateEncumbrance

public void updateEncumbrance(Transaction t,
                              Encumbrance enc)
Description copied from interface: EncumbranceCalculator
This will update the amounts in an Encumbrance records based on the data in the transaction.

Specified by:
updateEncumbrance in interface EncumbranceCalculator
Parameters:
t -
enc -

getDestinationName

public String getDestinationName()
Description copied from interface: PostTransaction
The name of the destination for the post (ie, the database table name where resultant records will be posted)

Specified by:
getDestinationName in interface PostTransaction
Returns:
name
See Also:
PostTransaction.getDestinationName()

setDateTimeService

public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)

setAccountingCycleCachingService

public void setAccountingCycleCachingService(AccountingCycleCachingService accountingCycleCachingService)

setPersistenceStructureService

public void setPersistenceStructureService(org.kuali.rice.kns.service.PersistenceStructureService persistenceStructureService)

setParameterService

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


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