|
||||||||||
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.AccountingLineRuleHelperServiceImpl
public class AccountingLineRuleHelperServiceImpl
Constructor Summary | |
---|---|
AccountingLineRuleHelperServiceImpl()
|
Method Summary | |
---|---|
protected boolean |
checkExistence(Object toCheck,
org.kuali.rice.kns.datadictionary.BusinessObjectEntry accountingLineEntry,
String attributeName,
String propertyName)
Checks for the existence of the given Object. |
String |
getAccountLabel()
|
String |
getChartLabel()
|
org.kuali.rice.kns.service.DataDictionaryService |
getDataDictionaryService()
|
FinancialSystemDocumentTypeService |
getFinancialSystemDocumentTypeService()
Gets the financialSystemDocumentTypeService attribute. |
String |
getFundGroupCodeLabel()
|
String |
getObjectCodeLabel()
|
String |
getObjectSubTypeCodeLabel()
|
String |
getObjectTypeCodeLabel()
|
String |
getOrganizationCodeLabel()
|
String |
getProjectCodeLabel()
|
String |
getSubAccountLabel()
|
String |
getSubFundGroupCodeLabel()
|
String |
getSubObjectCodeLabel()
|
protected Account |
getUnexpiredContinuationAccountOrNull(Account account)
|
boolean |
hasAccountRequiredOverrides(AccountingLine line,
String overrideCode)
|
boolean |
hasObjectBudgetRequiredOverrides(AccountingLine line,
String overrideCode)
|
boolean |
hasRequiredOverrides(AccountingLine line,
String overrideCode)
Checks that the given overrideCode is sufficient for the given BO, adding errors to the global map if not. |
boolean |
isValidAccount(Account account,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary)
This method validates that the account is active for use in the system. |
boolean |
isValidAccount(Account account,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary,
String errorPropertyName)
This method validates that the account is active for use in the system. |
boolean |
isValidChart(Chart chart,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary)
This method validates that the chart is active for use in the system. |
boolean |
isValidChart(Chart chart,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary,
String errorPropertyName)
This method validates that the chart is active for use in the system. |
boolean |
isValidObjectCode(ObjectCode objectCode,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary)
This method validates that an object code is active. |
boolean |
isValidObjectCode(ObjectCode objectCode,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary,
String errorPropertyName)
This method validates that an object code is active. |
boolean |
isValidObjectTypeCode(ObjectType objectTypeCode,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary)
For the most part, object type codes aren't required on an accounting line; however, in some situations (e.g. |
boolean |
isValidObjectTypeCode(ObjectType objectTypeCode,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary,
String errorPropertyName)
For the most part, object type codes aren't required on an accounting line; however, in some situations (e.g. |
boolean |
isValidProjectCode(ProjectCode projectCode,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary)
This method validates that a project code is active. |
boolean |
isValidProjectCode(ProjectCode projectCode,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary,
String errorPropertyName)
This method validates that a project code is active. |
protected boolean |
isValidReferenceOriginCode(OriginationCode referenceOriginCode,
org.kuali.rice.kns.datadictionary.BusinessObjectEntry accountingLineEntry)
This method will check the reference origin code for existence in the system and whether it can actively be used. |
protected boolean |
isValidReferenceTypeCode(String documentTypeCode,
org.kuali.rice.kew.doctype.bo.DocumentTypeEBO referenceType,
org.kuali.rice.kns.datadictionary.BusinessObjectEntry accountingLineEntry)
This method will check the reference type code for existence in the system and whether it can actively be used. |
boolean |
isValidSubAccount(SubAccount subAccount,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary)
This method validates that a sub account is active. |
boolean |
isValidSubAccount(SubAccount subAccount,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary,
String errorPropertyName)
This method validates that a sub account is active. |
boolean |
isValidSubObjectCode(SubObjectCode subObjectCode,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary)
This method validates that a sub object code is active. |
boolean |
isValidSubObjectCode(SubObjectCode subObjectCode,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary,
String errorPropertyName)
This method validates that a sub object code is active. |
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute value. |
void |
setFinancialSystemDocumentTypeService(FinancialSystemDocumentTypeService financialSystemDocumentTypeService)
Sets the financialSystemDocumentTypeService attribute value. |
boolean |
validateAccountingLine(AccountingLine accountingLine)
This method validates that an accounting line object contains values that actually exist in the DB. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccountingLineRuleHelperServiceImpl()
Method Detail |
---|
public String getAccountLabel()
getAccountLabel
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.getAccountLabel()
public String getChartLabel()
getChartLabel
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.getChartLabel()
public String getFundGroupCodeLabel()
getFundGroupCodeLabel
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.getFundGroupCodeLabel()
public String getObjectCodeLabel()
getObjectCodeLabel
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.getObjectCodeLabel()
public String getObjectSubTypeCodeLabel()
getObjectSubTypeCodeLabel
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.getObjectSubTypeCodeLabel()
public String getObjectTypeCodeLabel()
getObjectTypeCodeLabel
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.getObjectTypeCodeLabel()
public String getOrganizationCodeLabel()
getOrganizationCodeLabel
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.getOrganizationCodeLabel()
public String getProjectCodeLabel()
getProjectCodeLabel
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.getProjectCodeLabel()
public String getSubAccountLabel()
getSubAccountLabel
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.getSubAccountLabel()
public String getSubFundGroupCodeLabel()
getSubFundGroupCodeLabel
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.getSubFundGroupCodeLabel()
public String getSubObjectCodeLabel()
getSubObjectCodeLabel
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.getSubObjectCodeLabel()
public boolean hasRequiredOverrides(AccountingLine line, String overrideCode)
AccountingLineRuleHelperService
hasRequiredOverrides
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.hasRequiredOverrides(org.kuali.kfs.sys.businessobject.AccountingLine, java.lang.String)
public boolean hasAccountRequiredOverrides(AccountingLine line, String overrideCode)
public boolean hasObjectBudgetRequiredOverrides(AccountingLine line, String overrideCode)
protected Account getUnexpiredContinuationAccountOrNull(Account account)
account
-
public boolean isValidAccount(Account account, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary)
AccountingLineRuleHelperService
isValidAccount
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.isValidAccount(org.kuali.kfs.coa.businessobject.Account, org.kuali.rice.kns.datadictionary.DataDictionary)
public boolean isValidAccount(Account account, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary, String errorPropertyName)
AccountingLineRuleHelperService
isValidAccount
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.isValidAccount(org.kuali.kfs.coa.businessobject.Account, org.kuali.rice.kns.datadictionary.DataDictionary, java.lang.String)
public boolean isValidChart(Chart chart, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary)
AccountingLineRuleHelperService
isValidChart
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.isValidChart(org.kuali.kfs.coa.businessobject.Chart, org.kuali.rice.kns.datadictionary.DataDictionary)
public boolean isValidChart(Chart chart, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary, String errorPropertyName)
AccountingLineRuleHelperService
isValidChart
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.isValidChart(org.kuali.kfs.coa.businessobject.Chart, org.kuali.rice.kns.datadictionary.DataDictionary, java.lang.String)
public boolean isValidObjectCode(ObjectCode objectCode, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary)
AccountingLineRuleHelperService
isValidObjectCode
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.isValidObjectCode(org.kuali.kfs.coa.businessobject.ObjectCode, org.kuali.rice.kns.datadictionary.DataDictionary)
public boolean isValidObjectCode(ObjectCode objectCode, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary, String errorPropertyName)
AccountingLineRuleHelperService
isValidObjectCode
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.isValidObjectCode(org.kuali.kfs.coa.businessobject.ObjectCode, org.kuali.rice.kns.datadictionary.DataDictionary, java.lang.String)
public boolean isValidObjectTypeCode(ObjectType objectTypeCode, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary)
AccountingLineRuleHelperService
isValidObjectTypeCode
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.isValidObjectTypeCode(org.kuali.kfs.coa.businessobject.ObjectType, org.kuali.rice.kns.datadictionary.DataDictionary)
public boolean isValidObjectTypeCode(ObjectType objectTypeCode, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary, String errorPropertyName)
AccountingLineRuleHelperService
isValidObjectTypeCode
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.isValidObjectTypeCode(org.kuali.kfs.coa.businessobject.ObjectType, org.kuali.rice.kns.datadictionary.DataDictionary, java.lang.String)
public boolean isValidProjectCode(ProjectCode projectCode, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary)
AccountingLineRuleHelperService
isValidProjectCode
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.isValidProjectCode(org.kuali.kfs.coa.businessobject.ProjectCode, org.kuali.rice.kns.datadictionary.DataDictionary)
public boolean isValidProjectCode(ProjectCode projectCode, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary, String errorPropertyName)
AccountingLineRuleHelperService
isValidProjectCode
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.isValidProjectCode(org.kuali.kfs.coa.businessobject.ProjectCode, org.kuali.rice.kns.datadictionary.DataDictionary, java.lang.String)
public boolean isValidSubAccount(SubAccount subAccount, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary)
AccountingLineRuleHelperService
isValidSubAccount
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.isValidSubAccount(org.kuali.kfs.coa.businessobject.SubAccount, org.kuali.rice.kns.datadictionary.DataDictionary)
public boolean isValidSubAccount(SubAccount subAccount, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary, String errorPropertyName)
AccountingLineRuleHelperService
isValidSubAccount
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.isValidSubAccount(org.kuali.kfs.coa.businessobject.SubAccount, org.kuali.rice.kns.datadictionary.DataDictionary, java.lang.String)
public boolean isValidSubObjectCode(SubObjectCode subObjectCode, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary)
AccountingLineRuleHelperService
isValidSubObjectCode
in interface AccountingLineRuleHelperService
org.kuali.kfs.sys.document.service.AccountingLineRuleHelperService#isValidSubObjectCode(org.kuali.kfs.coa.businessobject.SubObjCd, org.kuali.rice.kns.datadictionary.DataDictionary)
public boolean isValidSubObjectCode(SubObjectCode subObjectCode, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary, String errorPropertyName)
AccountingLineRuleHelperService
isValidSubObjectCode
in interface AccountingLineRuleHelperService
org.kuali.kfs.sys.document.service.AccountingLineRuleHelperService#isValidSubObjectCode(org.kuali.kfs.coa.businessobject.SubObjCd, org.kuali.rice.kns.datadictionary.DataDictionary, java.lang.String)
public boolean validateAccountingLine(AccountingLine accountingLine)
AccountingLineRuleHelperService
validateAccountingLine
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.validateAccountingLine(org.kuali.kfs.sys.businessobject.AccountingLine)
protected boolean isValidReferenceOriginCode(OriginationCode referenceOriginCode, org.kuali.rice.kns.datadictionary.BusinessObjectEntry accountingLineEntry)
referenceOriginCode
- accountingLineEntry
-
protected boolean isValidReferenceTypeCode(String documentTypeCode, org.kuali.rice.kew.doctype.bo.DocumentTypeEBO referenceType, org.kuali.rice.kns.datadictionary.BusinessObjectEntry accountingLineEntry)
documentTypeCode
- the document type name of the reference document typereferenceType
- accountingLineEntry
-
protected boolean checkExistence(Object toCheck, org.kuali.rice.kns.datadictionary.BusinessObjectEntry accountingLineEntry, String attributeName, String propertyName)
toCheck
- the Object to check for existenceaccountingLineEntry
- to get the property's label for the error message parameter.attributeName
- the name of the SourceAccountingLine attribute in the DataDictionary accountingLineEntrypropertyName
- the name of the property within the global error path.
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
dataDictionaryService
- The dataDictionaryService to set.public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
public FinancialSystemDocumentTypeService getFinancialSystemDocumentTypeService()
public void setFinancialSystemDocumentTypeService(FinancialSystemDocumentTypeService financialSystemDocumentTypeService)
financialSystemDocumentTypeService
- The financialSystemDocumentTypeService to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |