|
||||||||||
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.AccountingDocumentRuleHelperServiceImpl
public class AccountingDocumentRuleHelperServiceImpl
The default implementation of the AccountingDocumentRuleHelperService
Constructor Summary | |
---|---|
AccountingDocumentRuleHelperServiceImpl()
|
Method Summary | |
---|---|
String |
formatProperty(String propertyName,
Object... arguments)
Gets the named property from KualiConfigurationService (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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccountingDocumentRuleHelperServiceImpl()
Method Detail |
---|
public boolean isExpense(GeneralLedgerPendingEntrySourceDetail postable)
AccountingDocumentRuleHelperService
isExpense
in interface AccountingDocumentRuleHelperService
AccountingDocumentRuleHelperService.isExpense(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail)
public boolean isIncome(GeneralLedgerPendingEntrySourceDetail postable)
AccountingDocumentRuleHelperService
isIncome
in interface AccountingDocumentRuleHelperService
AccountingDocumentRuleHelperService.isIncome(org.kuali.kfs.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 name
org.kuali.kfs.sys.document.service.AccountingDocumentRuleHelperService#isValidBalanceType(org.kuali.kfs.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 for
public 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 entry
org.kuali.kfs.sys.document.service.AccountingDocumentRuleHelperService#isValidBalanceType(org.kuali.kfs.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.kfs.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |