@Transactional public class PostEncumbrance extends Object implements PostTransaction, EncumbranceCalculator
Constructor and Description |
---|
PostEncumbrance()
Constructs a PostEncumbrance instance
|
Modifier and Type | Method and Description |
---|---|
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.core.api.datetime.DateTimeService dateTimeService) |
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService) |
void |
setPersistenceStructureService(org.kuali.rice.krad.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.
|
public PostEncumbrance()
public String post(Transaction t, int mode, Date postDate, ReportWriterService posterReportWriterService)
post
in interface PostTransaction
t
- the transaction which is being postedmode
- the mode the poster is currently running inpostDate
- the date this transaction should post toposterReportWriterService
- the writer service where the poster is writing its reportpublic Encumbrance findEncumbrance(Collection encumbranceList, Transaction t)
findEncumbrance
in interface EncumbranceCalculator
encumbranceList
- a Collection of encumbrancest
- the transaction to find the appropriate encumbrance forEncumbranceCalculator.findEncumbrance(java.util.Collection, org.kuali.ole.gl.businessobject.Transaction)
public void updateEncumbrance(Transaction t, Encumbrance enc)
EncumbranceCalculator
updateEncumbrance
in interface EncumbranceCalculator
t
- enc
- public String getDestinationName()
PostTransaction
getDestinationName
in interface PostTransaction
PostTransaction.getDestinationName()
public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
public void setAccountingCycleCachingService(AccountingCycleCachingService accountingCycleCachingService)
public void setPersistenceStructureService(org.kuali.rice.krad.service.PersistenceStructureService persistenceStructureService)
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.