|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kns.bo.BusinessObjectBase
org.kuali.rice.kns.bo.PersistableBusinessObjectBase
org.kuali.rice.kns.document.DocumentBase
org.kuali.rice.kns.document.TransactionalDocumentBase
org.kuali.kfs.sys.document.FinancialSystemTransactionalDocumentBase
org.kuali.kfs.sys.document.LedgerPostingDocumentBase
org.kuali.kfs.sys.document.GeneralLedgerPostingDocumentBase
public class GeneralLedgerPostingDocumentBase
Base implementation for a general ledger posting document.
| Field Summary | |
|---|---|
protected List<GeneralLedgerPendingEntry> |
generalLedgerPendingEntries
|
protected static org.apache.log4j.Logger |
LOG
|
| Fields inherited from class org.kuali.kfs.sys.document.LedgerPostingDocumentBase |
|---|
accountingPeriod, accountingPeriodService, checkPostingYearForCopy, dataDictionaryService, dateTimeService, postingPeriodCode, postingYear |
| Fields inherited from class org.kuali.kfs.sys.document.FinancialSystemTransactionalDocumentBase |
|---|
documentHeader |
| Fields inherited from class org.kuali.rice.kns.document.DocumentBase |
|---|
documentBusinessObject, documentNumber |
| Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase |
|---|
extension, versionNumber |
| Constructor Summary | |
|---|---|
GeneralLedgerPostingDocumentBase()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addPendingEntry(GeneralLedgerPendingEntry pendingEntry)
Adds a GeneralLedgerPendingEntry to this document's list of pending entries |
protected void |
changeGeneralLedgerPendingEntriesApprovedStatusCode()
This method iterates over all of the GLPEs for a document and sets their approved status code to APPROVED "A". |
List<SufficientFundsItem> |
checkSufficientFunds()
This method will check sufficient funds for the document |
void |
clearAnyGeneralLedgerPendingEntries()
This resets this document's list of general ledger pending etnries, though it does not delete those entries (however, the GeneralLedgerPendingEntryService will in most cases when this method is called). |
boolean |
documentPerformsSufficientFundsCheck()
This method checks to see if SF checking should be done for this document. |
void |
doRouteStatusChange(org.kuali.rice.kew.dto.DocumentRouteStatusChangeDTO statusChangeEvent)
Override to call super and then iterate over all GLPEs and update the approved code appropriately. |
List<GeneralLedgerPendingEntry> |
getGeneralLedgerPendingEntries()
This method retrieves the list of GLPEs for the document. |
GeneralLedgerPendingEntry |
getGeneralLedgerPendingEntry(int index)
This method retrieves a particular pending entry instance, automatically instantiating any missing intervening instances. |
List<GeneralLedgerPendingEntry> |
getPendingLedgerEntriesForSufficientFundsChecking()
This method will return only PLEs that should be checked for SF. |
void |
prepareForSave(org.kuali.rice.kns.rule.event.KualiDocumentEvent event)
|
protected void |
removeGeneralLedgerPendingEntries()
This method calls the service to remove all of the GLPE's associated with this document |
void |
setGeneralLedgerPendingEntries(List<GeneralLedgerPendingEntry> generalLedgerPendingEntries)
This method sets the list of pending entries for this document. |
void |
toCopy()
If we've copied, we need to update the posting period and year |
void |
toErrorCorrection()
|
| Methods inherited from class org.kuali.kfs.sys.document.LedgerPostingDocumentBase |
|---|
createInitialAccountingPeriod, getAccountingPeriod, getAccountingPeriodService, getDataDictionaryService, getDateTimeService, getFinancialDocumentTypeCode, getPostingPeriodCode, getPostingYear, retrieveCurrentAccountingPeriod, setAccountingPeriod, setPostingPeriodCode, setPostingYear |
| Methods inherited from class org.kuali.kfs.sys.document.FinancialSystemTransactionalDocumentBase |
|---|
answerSplitNodeQuestion, getDocumentHeader, prepareForSave, processAfterRetrieve, setDocumentHeader |
| Methods inherited from class org.kuali.rice.kns.document.TransactionalDocumentBase |
|---|
getAllowsCopy, isSessionDocument |
| Methods inherited from class org.kuali.rice.kns.document.DocumentBase |
|---|
addCopyErrorDocumentNote, addPessimisticLock, afterLookup, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, createPropertySerializabilityEvaluator, doActionTaken, doRouteLevelChange, generateSaveEvents, getAdHocRoutePersons, getAdHocRouteWorkgroups, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentBusinessObject, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getNonLockingActionTakenCodes, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, logErrors, populateDocumentForRouting, postProcessSave, refresh, refreshIfEmpty, refreshPessimisticLocks, refreshReferenceObject, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentNumber, setNewDocumentHeader, setPessimisticLocks, toString, toStringBuilder, toStringMapper, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerialization |
| Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase |
|---|
addNote, afterDelete, afterInsert, afterUpdate, beforeDelete, beforeInsert, beforeInsert, beforeUpdate, beforeUpdate, buildListOfDeletionAwareLists, deleteNote, getAttachmentService, getBoNote, getBoNotes, getExtension, getNoteService, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isAutoIncrementSet, isBoNotesSupport, isNewCollectionRecord, linkEditableUserFields, refreshNonUpdateableReferences, setAutoIncrementSet, setBoNotes, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber, supportsBoNotes |
| Methods inherited from class org.kuali.rice.kns.bo.BusinessObjectBase |
|---|
prepareForWorkflow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.kuali.kfs.sys.document.LedgerPostingDocument |
|---|
getAccountingPeriod, getPostingPeriodCode, getPostingYear, setAccountingPeriod, setPostingPeriodCode, setPostingYear |
| Methods inherited from interface org.kuali.kfs.sys.document.FinancialSystemTransactionalDocument |
|---|
answerSplitNodeQuestion, getDocumentHeader |
| Methods inherited from interface org.kuali.rice.kns.document.Document |
|---|
addPessimisticLock, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, doActionTaken, doRouteLevelChange, generateSaveEvents, getAdHocRoutePersons, getAdHocRouteWorkgroups, getAllowsCopy, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentBusinessObject, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, populateDocumentForRouting, postProcessSave, prepareForSave, processAfterRetrieve, refreshPessimisticLocks, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentHeader, setDocumentNumber, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerialization |
| Methods inherited from interface org.kuali.rice.kns.bo.PersistableBusinessObject |
|---|
addNote, buildListOfDeletionAwareLists, deleteNote, getBoNote, getBoNotes, getExtension, getObjectId, getVersionNumber, isBoNotesSupport, isNewCollectionRecord, linkEditableUserFields, refreshNonUpdateableReferences, refreshReferenceObject, setAutoIncrementSet, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber |
| Methods inherited from interface org.kuali.rice.kns.bo.BusinessObject |
|---|
prepareForWorkflow, refresh |
| Methods inherited from interface org.apache.ojb.broker.PersistenceBrokerAware |
|---|
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate |
| Field Detail |
|---|
protected static org.apache.log4j.Logger LOG
protected List<GeneralLedgerPendingEntry> generalLedgerPendingEntries
| Constructor Detail |
|---|
public GeneralLedgerPostingDocumentBase()
| Method Detail |
|---|
public List<GeneralLedgerPendingEntry> getGeneralLedgerPendingEntries()
GeneralLedgerPostingDocument
getGeneralLedgerPendingEntries in interface GeneralLedgerPostingDocumentGeneralLedgerPostingDocument.getGeneralLedgerPendingEntries()public GeneralLedgerPendingEntry getGeneralLedgerPendingEntry(int index)
GeneralLedgerPostingDocument
getGeneralLedgerPendingEntry in interface GeneralLedgerPostingDocumentGeneralLedgerPostingDocument.getGeneralLedgerPendingEntry(int)public void setGeneralLedgerPendingEntries(List<GeneralLedgerPendingEntry> generalLedgerPendingEntries)
GeneralLedgerPostingDocument
setGeneralLedgerPendingEntries in interface GeneralLedgerPostingDocumentGeneralLedgerPostingDocument.setGeneralLedgerPendingEntries(java.util.List)public List<SufficientFundsItem> checkSufficientFunds()
GeneralLedgerPostingDocument
checkSufficientFunds in interface GeneralLedgerPostingDocumentGeneralLedgerPostingDocument.checkSufficientFunds()public boolean documentPerformsSufficientFundsCheck()
public List<GeneralLedgerPendingEntry> getPendingLedgerEntriesForSufficientFundsChecking()
GeneralLedgerPostingDocument
getPendingLedgerEntriesForSufficientFundsChecking in interface GeneralLedgerPostingDocumentGeneralLedgerPostingDocument.getPendingLedgerEntriesForSufficientFundsChecking()public void doRouteStatusChange(org.kuali.rice.kew.dto.DocumentRouteStatusChangeDTO statusChangeEvent)
doRouteStatusChange in interface org.kuali.rice.kns.document.DocumentdoRouteStatusChange in class FinancialSystemTransactionalDocumentBaseDocument#doRouteStatusChange()protected void changeGeneralLedgerPendingEntriesApprovedStatusCode()
protected void removeGeneralLedgerPendingEntries()
public void toCopy()
throws org.kuali.rice.kew.exception.WorkflowException
LedgerPostingDocumentBase
toCopy in class LedgerPostingDocumentBaseorg.kuali.rice.kew.exception.WorkflowExceptionDocumentBase.toCopy()
public void toErrorCorrection()
throws org.kuali.rice.kew.exception.WorkflowException
toErrorCorrection in class FinancialSystemTransactionalDocumentBaseorg.kuali.rice.kew.exception.WorkflowExceptionorg.kuali.rice.kns.document.TransactionalDocumentBase#toErrorCorrection()public void prepareForSave(org.kuali.rice.kns.rule.event.KualiDocumentEvent event)
prepareForSave in interface org.kuali.rice.kns.document.DocumentprepareForSave in class org.kuali.rice.kns.document.DocumentBasepublic void addPendingEntry(GeneralLedgerPendingEntry pendingEntry)
pendingEntry - a pending entry to addpublic void clearAnyGeneralLedgerPendingEntries()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||