|
||||||||||
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)
DebitDeterminerService
IllegalStateException
if the document is an error correction. otherwise does nothing
disallowErrorCorrectionDocumentCheck
in interface DebitDeterminerService
DebitDeterminerService.disallowErrorCorrectionDocumentCheck(org.kuali.kfs.sys.document.GeneralLedgerPendingEntrySource)
public boolean isAsset(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isAsset
in interface DebitDeterminerService
DebitDeterminerService.isAsset(org.kuali.kfs.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.kfs.sys.document.GeneralLedgerPendingEntrySource, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean isDebitConsideringSection(AccountingDocument accountingDocument, AccountingLine accountingLine)
DebitDeterminerService
IllegalStateException
)
isDebitConsideringSection
in interface DebitDeterminerService
DebitDeterminerService.isDebitConsideringSection(org.kuali.kfs.sys.document.AccountingDocument, org.kuali.kfs.sys.businessobject.AccountingLine)
public boolean isDebitConsideringSectionAndTypePositiveOnly(AccountingDocument accountingDocument, AccountingLine accountingLine)
DebitDeterminerService
IllegalStateException
)
isDebitConsideringSectionAndTypePositiveOnly
in interface DebitDeterminerService
DebitDeterminerService.isDebitConsideringSectionAndTypePositiveOnly(org.kuali.kfs.sys.document.AccountingDocument, org.kuali.kfs.sys.businessobject.AccountingLine)
public boolean isDebitConsideringType(GeneralLedgerPendingEntrySource poster, GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
IllegalStateException
)
isDebitConsideringType
in interface DebitDeterminerService
DebitDeterminerService.isDebitConsideringType(org.kuali.kfs.sys.document.GeneralLedgerPendingEntrySource, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean isErrorCorrection(GeneralLedgerPendingEntrySource poster)
DebitDeterminerService
isErrorCorrection
in interface DebitDeterminerService
DebitDeterminerService.isErrorCorrection(org.kuali.kfs.sys.document.GeneralLedgerPendingEntrySource)
public boolean isExpense(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isExpense
in interface DebitDeterminerService
DebitDeterminerService.isExpense(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean isExpenseOrAsset(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isExpenseOrAsset
in interface DebitDeterminerService
DebitDeterminerService.isExpenseOrAsset(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean isIncome(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isIncome
in interface DebitDeterminerService
DebitDeterminerService.isIncome(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean isIncomeOrLiability(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isIncomeOrLiability
in interface DebitDeterminerService
DebitDeterminerService.isIncomeOrLiability(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean isLiability(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isLiability
in interface DebitDeterminerService
DebitDeterminerService.isLiability(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean isLiabilityTypeCode(String objectTypeCode)
DebitDeterminerService
objectTypeCode
is a liability.
isLiabilityTypeCode
in interface DebitDeterminerService
DebitDeterminerService.isLiabilityTypeCode(java.lang.String)
public boolean isRevenue(GeneralLedgerPendingEntrySourceDetail postable)
DebitDeterminerService
isRevenue
in interface DebitDeterminerService
DebitDeterminerService.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 DebitDeterminerService
public String getErrorCorrectionIllegalStateExceptionMessage()
getErrorCorrectionIllegalStateExceptionMessage
in interface DebitDeterminerService
public String getInvalidLineTypeIllegalArgumentExceptionMessage()
getInvalidLineTypeIllegalArgumentExceptionMessage
in interface DebitDeterminerService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |