|
||||||||||
| 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
public class LedgerPostingDocumentBase
Base implementation for a ledger posting document.
| Field Summary | |
|---|---|
protected AccountingPeriod |
accountingPeriod
|
protected static AccountingPeriodService |
accountingPeriodService
|
protected boolean |
checkPostingYearForCopy
|
protected static org.kuali.rice.kns.service.DataDictionaryService |
dataDictionaryService
|
protected static org.kuali.rice.kns.service.DateTimeService |
dateTimeService
|
protected String |
postingPeriodCode
|
protected Integer |
postingYear
|
| Fields inherited from class org.kuali.kfs.sys.document.FinancialSystemTransactionalDocumentBase |
|---|
documentHeader, LOG |
| 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 | |
|---|---|
LedgerPostingDocumentBase()
Constructs a LedgerPostingDocumentBase.java. |
|
| Method Summary | |
|---|---|
void |
createInitialAccountingPeriod()
Used during initialization to provide a base . |
AccountingPeriod |
getAccountingPeriod()
This method retrieves the accounting period associated with this document. |
static AccountingPeriodService |
getAccountingPeriodService()
|
static org.kuali.rice.kns.service.DataDictionaryService |
getDataDictionaryService()
|
static org.kuali.rice.kns.service.DateTimeService |
getDateTimeService()
|
String |
getFinancialDocumentTypeCode()
Returns the financial document type code for the given document, using the DataDictionaryService |
String |
getPostingPeriodCode()
Gets the postingPeriodCode attribute. |
Integer |
getPostingYear()
|
AccountingPeriod |
retrieveCurrentAccountingPeriod()
Finds the accounting period for the current date |
void |
setAccountingPeriod(AccountingPeriod accountingPeriod)
This method sets the accounting period associated with this document. |
void |
setPostingPeriodCode(String postingPeriodCode)
Sets the postingPeriodCode attribute value. |
void |
setPostingYear(Integer postingYear)
Sets the posting year for this document |
void |
toCopy()
If we've copied, we need to update the posting period and year |
| Methods inherited from class org.kuali.kfs.sys.document.FinancialSystemTransactionalDocumentBase |
|---|
answerSplitNodeQuestion, doRouteStatusChange, getDocumentHeader, prepareForSave, processAfterRetrieve, setDocumentHeader, toErrorCorrection |
| 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, prepareForSave, 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.FinancialSystemTransactionalDocument |
|---|
answerSplitNodeQuestion, getDocumentHeader |
| Methods inherited from interface org.kuali.rice.kns.document.Document |
|---|
addPessimisticLock, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, doActionTaken, doRouteLevelChange, doRouteStatusChange, generateSaveEvents, getAdHocRoutePersons, getAdHocRouteWorkgroups, getAllowsCopy, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentBusinessObject, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, populateDocumentForRouting, postProcessSave, prepareForSave, 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 transient org.kuali.rice.kns.service.DateTimeService dateTimeService
protected static transient AccountingPeriodService accountingPeriodService
protected static transient org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService
protected AccountingPeriod accountingPeriod
protected Integer postingYear
protected String postingPeriodCode
protected boolean checkPostingYearForCopy
| Constructor Detail |
|---|
public LedgerPostingDocumentBase()
| Method Detail |
|---|
public void createInitialAccountingPeriod()
AccountingPeriod.
This is a hack right now because its intended to be set by the
AccountingPeriodService
public AccountingPeriod retrieveCurrentAccountingPeriod()
public Integer getPostingYear()
getPostingYear in interface LedgerPostingDocumentLedgerPostingDocument.getPostingYear()public void setPostingYear(Integer postingYear)
LedgerPostingDocument
setPostingYear in interface LedgerPostingDocumentLedgerPostingDocument.setPostingYear(java.lang.Integer)public String getPostingPeriodCode()
LedgerPostingDocumentAccountingPeriod Primary Key.
getPostingPeriodCode in interface LedgerPostingDocumentLedgerPostingDocument.getPostingPeriodCode()public void setPostingPeriodCode(String postingPeriodCode)
LedgerPostingDocumentAccountingPeriod Primary Key.
setPostingPeriodCode in interface LedgerPostingDocumentpostingPeriodCode - The postingPeriodCode to set.LedgerPostingDocument.setPostingPeriodCode(java.lang.String)public AccountingPeriod getAccountingPeriod()
LedgerPostingDocument
getAccountingPeriod in interface LedgerPostingDocumentLedgerPostingDocument.getAccountingPeriod()public void setAccountingPeriod(AccountingPeriod accountingPeriod)
LedgerPostingDocument
setAccountingPeriod in interface LedgerPostingDocumentLedgerPostingDocument.setAccountingPeriod(AccountingPeriod)
public void toCopy()
throws org.kuali.rice.kew.exception.WorkflowException,
IllegalStateException
toCopy in class org.kuali.rice.kns.document.DocumentBaseorg.kuali.rice.kew.exception.WorkflowException
IllegalStateExceptionDocumentBase.toCopy()public String getFinancialDocumentTypeCode()
public static org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
public static org.kuali.rice.kns.service.DateTimeService getDateTimeService()
public static AccountingPeriodService getAccountingPeriodService()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||