|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.sys.document.service.impl.DebitDeterminerServiceImpl
public class DebitDeterminerServiceImpl
Default implementation of the DebitDeterminerService.
| Field Summary | |
|---|---|
protected static String |
isDebitCalculationIllegalStateExceptionMessage
|
protected static String |
isErrorCorrectionIllegalStateExceptionMessage
|
protected static String |
isInvalidLineTypeIllegalArgumentExceptionMessage
|
| Constructor Summary | |
|---|---|
DebitDeterminerServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
disallowErrorCorrectionDocumentCheck(GeneralLedgerPendingEntrySource poster)
throws an IllegalStateException if the document is an error correction. |
String |
getDebitCalculationIllegalStateExceptionMessage()
Gets the isDebitCalculationIllegalStateExceptionMessage attribute. |
String |
getErrorCorrectionIllegalStateExceptionMessage()
Gets the isErrorCorrectionIllegalStateExceptionMessage attribute. |
String |
getInvalidLineTypeIllegalArgumentExceptionMessage()
Gets the isInvalidLineTypeIllegalArgumentExceptionMessage attribute. |
boolean |
isAsset(GeneralLedgerPendingEntrySourceDetail postable)
Determines whether an accounting line is an asset line. |
boolean |
isAssetTypeCode(String objectTypeCode)
Determines whether the objectTypeCode is an asset. |
boolean |
isDebitCode(String debitCreditCode)
|
boolean |
isDebitConsideringNothingPositiveOnly(GeneralLedgerPendingEntrySource poster,
GeneralLedgerPendingEntrySourceDetail postable)
object type is not included in determining if a line is debit or credit. |
boolean |
isDebitConsideringSection(AccountingDocument accountingDocument,
AccountingLine accountingLine)
accounting line section (source/target) type is included in determining if a line is debit or credit. |
boolean |
isDebitConsideringSectionAndTypePositiveOnly(AccountingDocument accountingDocument,
AccountingLine accountingLine)
accounting line section (source/target) and object type is included in determining if a line is debit or credit. |
boolean |
isDebitConsideringType(GeneralLedgerPendingEntrySource poster,
GeneralLedgerPendingEntrySourceDetail postable)
object type is included in determining if a line is debit or credit. |
boolean |
isErrorCorrection(GeneralLedgerPendingEntrySource poster)
Convience method for determine if a document is an error correction document. |
boolean |
isExpense(GeneralLedgerPendingEntrySourceDetail postable)
Check object code type to determine whether the accounting line is expense. |
boolean |
isExpenseOrAsset(GeneralLedgerPendingEntrySourceDetail postable)
Determines whether an accounting line is an expense or asset. |
boolean |
isIncome(GeneralLedgerPendingEntrySourceDetail postable)
Determines whether an accounting line is an income line or not. |
boolean |
isIncomeOrLiability(GeneralLedgerPendingEntrySourceDetail postable)
Determines whether an accounting line is an income or liability line. |
boolean |
isLiability(GeneralLedgerPendingEntrySourceDetail postable)
Determines whether an accounting line is a liability line. |
boolean |
isLiabilityTypeCode(String objectTypeCode)
Determines whether the objectTypeCode is a liability. |
boolean |
isRevenue(GeneralLedgerPendingEntrySourceDetail postable)
Check object code type to determine whether the accounting line is revenue. |
void |
setAccountingDocumentRuleUtils(AccountingDocumentRuleHelperService accountingDocumentRuleUtil)
Sets the accountingDocumentRuleUtils attribute value. |
void |
setOptionsService(OptionsService optionsService)
Sets the optionsService attribute value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String isDebitCalculationIllegalStateExceptionMessage
protected static final String isErrorCorrectionIllegalStateExceptionMessage
protected static final String isInvalidLineTypeIllegalArgumentExceptionMessage
| Constructor Detail |
|---|
public DebitDeterminerServiceImpl()
| Method Detail |
|---|
public void disallowErrorCorrectionDocumentCheck(GeneralLedgerPendingEntrySource poster)
DebitDeterminerServiceIllegalStateException if the document is an error correction. otherwise does nothing
disallowErrorCorrectionDocumentCheck in interface DebitDeterminerServiceDebitDeterminerService.disallowErrorCorrectionDocumentCheck(org.kuali.kfs.sys.document.GeneralLedgerPendingEntrySource)public boolean isAsset(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isAsset in interface DebitDeterminerServiceDebitDeterminerService.isAsset(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)public boolean isAssetTypeCode(String objectTypeCode)
DebitDeterminerServiceobjectTypeCode is an asset.
isAssetTypeCode in interface DebitDeterminerServiceDebitDeterminerService.isAssetTypeCode(java.lang.String)public boolean isDebitCode(String debitCreditCode)
isDebitCode in interface DebitDeterminerServiceDebitDeterminerService.isDebitCode(java.lang.String)
public boolean isDebitConsideringNothingPositiveOnly(GeneralLedgerPendingEntrySource poster,
GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerServiceIllegalStateException)
isDebitConsideringNothingPositiveOnly in interface DebitDeterminerServiceDebitDeterminerService.isDebitConsideringNothingPositiveOnly(org.kuali.kfs.sys.document.GeneralLedgerPendingEntrySource, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean isDebitConsideringSection(AccountingDocument accountingDocument,
AccountingLine accountingLine)
DebitDeterminerServiceIllegalStateException)
isDebitConsideringSection in interface DebitDeterminerServiceDebitDeterminerService.isDebitConsideringSection(org.kuali.kfs.sys.document.AccountingDocument, org.kuali.kfs.sys.businessobject.AccountingLine)
public boolean isDebitConsideringSectionAndTypePositiveOnly(AccountingDocument accountingDocument,
AccountingLine accountingLine)
DebitDeterminerServiceIllegalStateException)
isDebitConsideringSectionAndTypePositiveOnly in interface DebitDeterminerServiceDebitDeterminerService.isDebitConsideringSectionAndTypePositiveOnly(org.kuali.kfs.sys.document.AccountingDocument, org.kuali.kfs.sys.businessobject.AccountingLine)
public boolean isDebitConsideringType(GeneralLedgerPendingEntrySource poster,
GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerServiceIllegalStateException)
isDebitConsideringType in interface DebitDeterminerServiceDebitDeterminerService.isDebitConsideringType(org.kuali.kfs.sys.document.GeneralLedgerPendingEntrySource, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)public boolean isErrorCorrection(GeneralLedgerPendingEntrySource poster)
DebitDeterminerService
isErrorCorrection in interface DebitDeterminerServiceDebitDeterminerService.isErrorCorrection(org.kuali.kfs.sys.document.GeneralLedgerPendingEntrySource)public boolean isExpense(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isExpense in interface DebitDeterminerServiceDebitDeterminerService.isExpense(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)public boolean isExpenseOrAsset(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isExpenseOrAsset in interface DebitDeterminerServiceDebitDeterminerService.isExpenseOrAsset(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)public boolean isIncome(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isIncome in interface DebitDeterminerServiceDebitDeterminerService.isIncome(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)public boolean isIncomeOrLiability(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isIncomeOrLiability in interface DebitDeterminerServiceDebitDeterminerService.isIncomeOrLiability(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)public boolean isLiability(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isLiability in interface DebitDeterminerServiceDebitDeterminerService.isLiability(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)public boolean isLiabilityTypeCode(String objectTypeCode)
DebitDeterminerServiceobjectTypeCode is a liability.
isLiabilityTypeCode in interface DebitDeterminerServiceDebitDeterminerService.isLiabilityTypeCode(java.lang.String)public boolean isRevenue(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isRevenue in interface DebitDeterminerServiceDebitDeterminerService.isRevenue(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)public void setAccountingDocumentRuleUtils(AccountingDocumentRuleHelperService accountingDocumentRuleUtil)
accountingDocumentRuleUtils - The accountingDocumentRuleUtils to set.public void setOptionsService(OptionsService optionsService)
optionsService - The optionsService to set.public String getDebitCalculationIllegalStateExceptionMessage()
getDebitCalculationIllegalStateExceptionMessage in interface DebitDeterminerServicepublic String getErrorCorrectionIllegalStateExceptionMessage()
getErrorCorrectionIllegalStateExceptionMessage in interface DebitDeterminerServicepublic String getInvalidLineTypeIllegalArgumentExceptionMessage()
getInvalidLineTypeIllegalArgumentExceptionMessage in interface DebitDeterminerService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||