public class AccountingDocumentRuleHelperServiceImpl extends Object implements AccountingDocumentRuleHelperService
Constructor and Description |
---|
AccountingDocumentRuleHelperServiceImpl() |
Modifier and Type | Method and Description |
---|---|
String |
formatProperty(String propertyName,
Object... arguments)
Gets the named property from ConfigurationService (i.e., from ApplicationResources.properties) and formats it with the
given arguments (if any).
|
protected String |
getLabelFromDataDictionary(Class entryClass,
String attributeName)
Looks up a label from the data dictionary
|
String |
getObjectCodeTypeCodeWithoutSideEffects(GeneralLedgerPendingEntrySourceDetail postable)
Makes sure that the objectCode attribute is fully populated b/c we are using proxying in our persistence layer.
|
boolean |
isExpense(GeneralLedgerPendingEntrySourceDetail postable)
Check object code type to determine whether the accounting line is expense.
|
boolean |
isIncome(GeneralLedgerPendingEntrySourceDetail postable)
Determines whether an accounting line is an income line or not.
|
boolean |
isValidBalanceType(BalanceType balanceType,
Class entryClass,
String attributeName,
String errorPropertyName)
This method checks for the existence of the provided balance type, in the system and also checks to see if it is active.
|
boolean |
isValidBalanceType(BalanceType balanceType,
String errorPropertyName)
This method checks for the existence of the provided balance type, in the system and also checks to see if it is active.
|
boolean |
isValidOpenAccountingPeriod(AccountingPeriod accountingPeriod,
Class entryClass,
String attribueName,
String errorPropertyName)
This method checks for the existence of the accounting period in the system and also makes sure that the accounting period is
open for posting.
|
boolean |
isValidReversalDate(Date reversalDate,
String errorPropertyName)
Some documents have reversal dates.
|
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService ddService)
Sets the dataDictionaryService attribute value.
|
void |
setObjectTypeService(ObjectTypeService objectTypeService)
Sets the objectTypeService attribute value.
|
public AccountingDocumentRuleHelperServiceImpl()
public boolean isExpense(GeneralLedgerPendingEntrySourceDetail postable)
AccountingDocumentRuleHelperService
isExpense
in interface AccountingDocumentRuleHelperService
AccountingDocumentRuleHelperService.isExpense(org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean isIncome(GeneralLedgerPendingEntrySourceDetail postable)
AccountingDocumentRuleHelperService
isIncome
in interface AccountingDocumentRuleHelperService
AccountingDocumentRuleHelperService.isIncome(org.kuali.ole.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public String getObjectCodeTypeCodeWithoutSideEffects(GeneralLedgerPendingEntrySourceDetail postable)
getObjectCodeTypeCodeWithoutSideEffects
in interface AccountingDocumentRuleHelperService
accountingLine
- public boolean isValidBalanceType(BalanceType balanceType, String errorPropertyName)
AccountingDocumentRuleHelperService
isValidBalanceType
in interface AccountingDocumentRuleHelperService
errorPropertyName
- also used as the BalanceTyp DD attribute nameorg.kuali.ole.sys.document.service.AccountingDocumentRuleHelperService#isValidBalanceType(org.kuali.ole.coa.businessobject.BalanceTyp,
java.lang.String)
protected String getLabelFromDataDictionary(Class entryClass, String attributeName)
entryClass
- the class of the attribute to lookup the label forattributeName
- the attribute to look up the label forpublic boolean isValidBalanceType(BalanceType balanceType, Class entryClass, String attributeName, String errorPropertyName)
AccountingDocumentRuleHelperService
isValidBalanceType
in interface AccountingDocumentRuleHelperService
entryClass
- the Class of the DataDictionary entry containing the attribute with the label for the error messageattributeName
- the name of the attribute in the DataDictionary entryorg.kuali.ole.sys.document.service.AccountingDocumentRuleHelperService#isValidBalanceType(org.kuali.ole.coa.businessobject.BalanceTyp,
java.lang.Class, java.lang.String, java.lang.String)
public boolean isValidOpenAccountingPeriod(AccountingPeriod accountingPeriod, Class entryClass, String attribueName, String errorPropertyName)
AccountingDocumentRuleHelperService
isValidOpenAccountingPeriod
in interface AccountingDocumentRuleHelperService
AccountingDocumentRuleHelperService.isValidOpenAccountingPeriod(org.kuali.ole.coa.businessobject.AccountingPeriod,
java.lang.Class, java.lang.String, java.lang.String)
public boolean isValidReversalDate(Date reversalDate, String errorPropertyName)
AccountingDocumentRuleHelperService
isValidReversalDate
in interface AccountingDocumentRuleHelperService
AccountingDocumentRuleHelperService.isValidReversalDate(java.sql.Date,
java.lang.String)
public String formatProperty(String propertyName, Object... arguments)
formatProperty
in interface AccountingDocumentRuleHelperService
propertyName
- arguments
- {0}
replaced with the first argument, {1}
with the
second argument, etc.public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService ddService)
ddService
- The ddService to set.public void setObjectTypeService(ObjectTypeService objectTypeService)
objectTypeService
- The objectTypeService to set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.