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)
DebitDeterminerService
IllegalStateException
if the document is an error correction. otherwise does nothingpublic boolean isAsset(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isAsset
in interface DebitDeterminerService
DebitDeterminerService.isAsset(org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean isAssetTypeCode(String objectTypeCode)
DebitDeterminerService
objectTypeCode
is an asset.isAssetTypeCode
in interface DebitDeterminerService
DebitDeterminerService.isAssetTypeCode(java.lang.String)
public boolean isDebitCode(String debitCreditCode)
isDebitCode
in interface DebitDeterminerService
DebitDeterminerService.isDebitCode(java.lang.String)
public boolean isDebitConsideringNothingPositiveOnly(GeneralLedgerPendingEntrySource poster, GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
IllegalStateException
)
isDebitConsideringNothingPositiveOnly
in interface DebitDeterminerService
DebitDeterminerService.isDebitConsideringNothingPositiveOnly(org.kuali.ole.sys.document.GeneralLedgerPendingEntrySource, org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean isDebitConsideringSection(AccountingDocument accountingDocument, AccountingLine accountingLine)
DebitDeterminerService
IllegalStateException
)
isDebitConsideringSection
in interface DebitDeterminerService
DebitDeterminerService.isDebitConsideringSection(org.kuali.ole.sys.document.AccountingDocument, org.kuali.ole.sys.businessobject.AccountingLine)
public boolean isDebitConsideringSectionAndTypePositiveOnly(AccountingDocument accountingDocument, AccountingLine accountingLine)
DebitDeterminerService
IllegalStateException
)
public boolean isDebitConsideringType(GeneralLedgerPendingEntrySource poster, GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
IllegalStateException
)
public boolean isErrorCorrection(GeneralLedgerPendingEntrySource poster)
DebitDeterminerService
isErrorCorrection
in interface DebitDeterminerService
DebitDeterminerService.isErrorCorrection(org.kuali.ole.sys.document.GeneralLedgerPendingEntrySource)
public boolean isExpense(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isExpense
in interface DebitDeterminerService
DebitDeterminerService.isExpense(org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean isExpenseOrAsset(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isExpenseOrAsset
in interface DebitDeterminerService
DebitDeterminerService.isExpenseOrAsset(org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean isIncome(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isIncome
in interface DebitDeterminerService
DebitDeterminerService.isIncome(org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean isIncomeOrLiability(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isIncomeOrLiability
in interface DebitDeterminerService
DebitDeterminerService.isIncomeOrLiability(org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean isLiability(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isLiability
in interface DebitDeterminerService
DebitDeterminerService.isLiability(org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean isLiabilityTypeCode(String objectTypeCode)
DebitDeterminerService
objectTypeCode
is a liability.isLiabilityTypeCode
in interface DebitDeterminerService
DebitDeterminerService.isLiabilityTypeCode(java.lang.String)
public String getConvertedAmount(String objectType, String debitCreditCode, String amount)
DebitDeterminerService
getConvertedAmount
in interface DebitDeterminerService
public boolean isRevenue(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isRevenue
in interface DebitDeterminerService
DebitDeterminerService.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 DebitDeterminerService
public String getErrorCorrectionIllegalStateExceptionMessage()
getErrorCorrectionIllegalStateExceptionMessage
in interface DebitDeterminerService
public String getInvalidLineTypeIllegalArgumentExceptionMessage()
getInvalidLineTypeIllegalArgumentExceptionMessage
in interface DebitDeterminerService
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.