public class DebitDeterminerServiceImpl extends Object implements DebitDeterminerService
| Modifier and Type | Field and Description |
|---|---|
protected static String |
isDebitCalculationIllegalStateExceptionMessage |
protected static String |
isErrorCorrectionIllegalStateExceptionMessage |
protected static String |
isInvalidLineTypeIllegalArgumentExceptionMessage |
| Constructor and Description |
|---|
DebitDeterminerServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
disallowErrorCorrectionDocumentCheck(GeneralLedgerPendingEntrySource poster)
throws an
IllegalStateException if the document is an error correction. |
String |
getConvertedAmount(String objectType,
String debitCreditCode,
String amount)
This method is to convert amount to positive or negative based on the object type and Debit CreditCode combination.
|
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.
|
protected static final String isDebitCalculationIllegalStateExceptionMessage
protected static final String isErrorCorrectionIllegalStateExceptionMessage
protected static final String isInvalidLineTypeIllegalArgumentExceptionMessage
public DebitDeterminerServiceImpl()
public void disallowErrorCorrectionDocumentCheck(GeneralLedgerPendingEntrySource poster)
DebitDeterminerServiceIllegalStateException if the document is an error correction. otherwise does nothingpublic boolean isAsset(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerServiceisAsset in interface DebitDeterminerServiceDebitDeterminerService.isAsset(org.kuali.ole.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.ole.sys.document.GeneralLedgerPendingEntrySource, org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)public boolean isDebitConsideringSection(AccountingDocument accountingDocument, AccountingLine accountingLine)
DebitDeterminerServiceIllegalStateException)
isDebitConsideringSection in interface DebitDeterminerServiceDebitDeterminerService.isDebitConsideringSection(org.kuali.ole.sys.document.AccountingDocument, org.kuali.ole.sys.businessobject.AccountingLine)public boolean isDebitConsideringSectionAndTypePositiveOnly(AccountingDocument accountingDocument, AccountingLine accountingLine)
DebitDeterminerServiceIllegalStateException)
public boolean isDebitConsideringType(GeneralLedgerPendingEntrySource poster, GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerServiceIllegalStateException)
public boolean isErrorCorrection(GeneralLedgerPendingEntrySource poster)
DebitDeterminerServiceisErrorCorrection in interface DebitDeterminerServiceDebitDeterminerService.isErrorCorrection(org.kuali.ole.sys.document.GeneralLedgerPendingEntrySource)public boolean isExpense(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerServiceisExpense in interface DebitDeterminerServiceDebitDeterminerService.isExpense(org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)public boolean isExpenseOrAsset(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerServiceisExpenseOrAsset in interface DebitDeterminerServiceDebitDeterminerService.isExpenseOrAsset(org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)public boolean isIncome(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerServiceisIncome in interface DebitDeterminerServiceDebitDeterminerService.isIncome(org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)public boolean isIncomeOrLiability(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerServiceisIncomeOrLiability in interface DebitDeterminerServiceDebitDeterminerService.isIncomeOrLiability(org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)public boolean isLiability(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerServiceisLiability in interface DebitDeterminerServiceDebitDeterminerService.isLiability(org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)public boolean isLiabilityTypeCode(String objectTypeCode)
DebitDeterminerServiceobjectTypeCode is a liability.isLiabilityTypeCode in interface DebitDeterminerServiceDebitDeterminerService.isLiabilityTypeCode(java.lang.String)public String getConvertedAmount(String objectType, String debitCreditCode, String amount)
DebitDeterminerServicegetConvertedAmount in interface DebitDeterminerServicepublic boolean isRevenue(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerServiceisRevenue in interface DebitDeterminerServiceDebitDeterminerService.isRevenue(org.kuali.ole.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 DebitDeterminerServiceCopyright © 2004–2015 The Kuali Foundation. All rights reserved.