public class AccountingLineRuleHelperServiceImpl extends Object implements AccountingLineRuleHelperService
| Constructor and Description |
|---|
AccountingLineRuleHelperServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkExistence(Object toCheck,
org.kuali.rice.krad.datadictionary.BusinessObjectEntry accountingLineEntry,
String attributeName,
String propertyName,
String errorPropertyIdentifyingName)
Checks for the existence of the given Object.
|
protected String |
getAccountIdentifyingPropertyName(AccountingLine accountingLine) |
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.krad.datadictionary.DataDictionary dataDictionary,
String errorPropertyName,
String accountIdentifyingPropertyName)
This method validates that the account is active for use in the system.
|
boolean |
isValidAccount(String accountIdentifyingPropertyName,
Account account,
org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary)
This method validates that the account is active for use in the system.
|
boolean |
isValidChart(Chart chart,
org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary,
String errorPropertyName,
String accountIdentifyingPropertyName)
This method validates that the chart is active for use in the system.
|
boolean |
isValidChart(String accountIdentifyingPropertyName,
Chart chart,
org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary)
This method validates that the chart is active for use in the system.
|
boolean |
isValidObjectCode(ObjectCode objectCode,
org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary,
String errorPropertyName,
String accountIdentifyingPropertyName)
This method validates that an object code is active.
|
boolean |
isValidObjectCode(String accountIdentifyingPropertyName,
ObjectCode objectCode,
org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary)
This method validates that an object code is active.
|
boolean |
isValidObjectTypeCode(ObjectType objectTypeCode,
org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary,
String errorPropertyName,
String accountIdentifyingPropertyName)
For the most part, object type codes aren't required on an accounting line; however, in some situations (e.g.
|
boolean |
isValidObjectTypeCode(String accountIdentifyingPropertyName,
ObjectType objectTypeCode,
org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary)
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.krad.datadictionary.DataDictionary dataDictionary,
String errorPropertyName,
String accountIdentifyingPropertyName)
This method validates that a project code is active.
|
boolean |
isValidProjectCode(String accountIdentifyingPropertyName,
ProjectCode projectCode,
org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary)
This method validates that a project code is active.
|
protected boolean |
isValidReferenceOriginCode(String accountIdentifyingPropertyName,
OriginationCode referenceOriginCode,
org.kuali.rice.krad.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.krad.datadictionary.BusinessObjectEntry accountingLineEntry,
String errorPropertyIdentifyingName)
This method will check the reference type code for existence in the system and whether it can actively be used.
|
boolean |
isValidSubAccount(String accountIdentifyingPropertyName,
SubAccount subAccount,
org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary)
This method validates that a sub account is active.
|
boolean |
isValidSubAccount(SubAccount subAccount,
org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary,
String errorPropertyName,
String accountIdentifyingPropertyName)
This method validates that a sub account is active.
|
boolean |
isValidSubObjectCode(String accountIdentifyingPropertyName,
SubObjectCode subObjectCode,
org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary)
This method validates that a sub object code is active.
|
boolean |
isValidSubObjectCode(SubObjectCode subObjectCode,
org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary,
String errorPropertyName,
String accountIdentifyingPropertyName)
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.
|
public AccountingLineRuleHelperServiceImpl()
public String getAccountLabel()
getAccountLabel in interface AccountingLineRuleHelperServiceAccountingLineRuleHelperService.getAccountLabel()public String getChartLabel()
getChartLabel in interface AccountingLineRuleHelperServiceAccountingLineRuleHelperService.getChartLabel()public String getFundGroupCodeLabel()
getFundGroupCodeLabel in interface AccountingLineRuleHelperServiceAccountingLineRuleHelperService.getFundGroupCodeLabel()public String getObjectCodeLabel()
getObjectCodeLabel in interface AccountingLineRuleHelperServiceAccountingLineRuleHelperService.getObjectCodeLabel()public String getObjectSubTypeCodeLabel()
getObjectSubTypeCodeLabel in interface AccountingLineRuleHelperServiceAccountingLineRuleHelperService.getObjectSubTypeCodeLabel()public String getObjectTypeCodeLabel()
getObjectTypeCodeLabel in interface AccountingLineRuleHelperServiceAccountingLineRuleHelperService.getObjectTypeCodeLabel()public String getOrganizationCodeLabel()
getOrganizationCodeLabel in interface AccountingLineRuleHelperServiceAccountingLineRuleHelperService.getOrganizationCodeLabel()public String getProjectCodeLabel()
getProjectCodeLabel in interface AccountingLineRuleHelperServiceAccountingLineRuleHelperService.getProjectCodeLabel()public String getSubAccountLabel()
getSubAccountLabel in interface AccountingLineRuleHelperServiceAccountingLineRuleHelperService.getSubAccountLabel()public String getSubFundGroupCodeLabel()
getSubFundGroupCodeLabel in interface AccountingLineRuleHelperServiceAccountingLineRuleHelperService.getSubFundGroupCodeLabel()public String getSubObjectCodeLabel()
getSubObjectCodeLabel in interface AccountingLineRuleHelperServiceAccountingLineRuleHelperService.getSubObjectCodeLabel()public boolean hasRequiredOverrides(AccountingLine line, String overrideCode)
AccountingLineRuleHelperServicehasRequiredOverrides in interface AccountingLineRuleHelperServiceAccountingLineRuleHelperService.hasRequiredOverrides(org.kuali.ole.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(String accountIdentifyingPropertyName, Account account, org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary)
AccountingLineRuleHelperServiceisValidAccount in interface AccountingLineRuleHelperServiceorg.kuali.ole.sys.document.service.AccountingLineRuleHelperService#isValidAccount(org.kuali.ole.coa.businessobject.Account, org.kuali.rice.krad.datadictionary.DataDictionary)public boolean isValidAccount(Account account, org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary, String errorPropertyName, String accountIdentifyingPropertyName)
AccountingLineRuleHelperServiceisValidAccount in interface AccountingLineRuleHelperServiceorg.kuali.ole.sys.document.service.AccountingLineRuleHelperService#isValidAccount(org.kuali.ole.coa.businessobject.Account, org.kuali.rice.krad.datadictionary.DataDictionary, java.lang.String)public boolean isValidChart(String accountIdentifyingPropertyName, Chart chart, org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary)
AccountingLineRuleHelperServiceisValidChart in interface AccountingLineRuleHelperServiceorg.kuali.ole.sys.document.service.AccountingLineRuleHelperService#isValidChart(org.kuali.ole.coa.businessobject.Chart, org.kuali.rice.krad.datadictionary.DataDictionary)public boolean isValidChart(Chart chart, org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary, String errorPropertyName, String accountIdentifyingPropertyName)
AccountingLineRuleHelperServiceisValidChart in interface AccountingLineRuleHelperServiceorg.kuali.ole.sys.document.service.AccountingLineRuleHelperService#isValidChart(org.kuali.ole.coa.businessobject.Chart, org.kuali.rice.krad.datadictionary.DataDictionary, java.lang.String)public boolean isValidObjectCode(String accountIdentifyingPropertyName, ObjectCode objectCode, org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary)
AccountingLineRuleHelperServiceisValidObjectCode in interface AccountingLineRuleHelperServiceorg.kuali.ole.sys.document.service.AccountingLineRuleHelperService#isValidObjectCode(org.kuali.ole.coa.businessobject.ObjectCode, org.kuali.rice.krad.datadictionary.DataDictionary)public boolean isValidObjectCode(ObjectCode objectCode, org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary, String errorPropertyName, String accountIdentifyingPropertyName)
AccountingLineRuleHelperServiceisValidObjectCode in interface AccountingLineRuleHelperServiceorg.kuali.ole.sys.document.service.AccountingLineRuleHelperService#isValidObjectCode(org.kuali.ole.coa.businessobject.ObjectCode, org.kuali.rice.krad.datadictionary.DataDictionary, java.lang.String)public boolean isValidObjectTypeCode(String accountIdentifyingPropertyName, ObjectType objectTypeCode, org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary)
AccountingLineRuleHelperServiceisValidObjectTypeCode in interface AccountingLineRuleHelperServiceorg.kuali.ole.sys.document.service.AccountingLineRuleHelperService#isValidObjectTypeCode(org.kuali.ole.coa.businessobject.ObjectType, org.kuali.rice.krad.datadictionary.DataDictionary)public boolean isValidObjectTypeCode(ObjectType objectTypeCode, org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary, String errorPropertyName, String accountIdentifyingPropertyName)
AccountingLineRuleHelperServiceisValidObjectTypeCode in interface AccountingLineRuleHelperServiceorg.kuali.ole.sys.document.service.AccountingLineRuleHelperService#isValidObjectTypeCode(org.kuali.ole.coa.businessobject.ObjectType, org.kuali.rice.krad.datadictionary.DataDictionary, java.lang.String)public boolean isValidProjectCode(String accountIdentifyingPropertyName, ProjectCode projectCode, org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary)
AccountingLineRuleHelperServiceisValidProjectCode in interface AccountingLineRuleHelperServiceorg.kuali.ole.sys.document.service.AccountingLineRuleHelperService#isValidProjectCode(org.kuali.ole.coa.businessobject.ProjectCode, org.kuali.rice.krad.datadictionary.DataDictionary)public boolean isValidProjectCode(ProjectCode projectCode, org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary, String errorPropertyName, String accountIdentifyingPropertyName)
AccountingLineRuleHelperServiceisValidProjectCode in interface AccountingLineRuleHelperServiceorg.kuali.ole.sys.document.service.AccountingLineRuleHelperService#isValidProjectCode(org.kuali.ole.coa.businessobject.ProjectCode, org.kuali.rice.krad.datadictionary.DataDictionary, java.lang.String)public boolean isValidSubAccount(String accountIdentifyingPropertyName, SubAccount subAccount, org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary)
AccountingLineRuleHelperServiceisValidSubAccount in interface AccountingLineRuleHelperServiceorg.kuali.ole.sys.document.service.AccountingLineRuleHelperService#isValidSubAccount(org.kuali.ole.coa.businessobject.SubAccount, org.kuali.rice.krad.datadictionary.DataDictionary)public boolean isValidSubAccount(SubAccount subAccount, org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary, String errorPropertyName, String accountIdentifyingPropertyName)
AccountingLineRuleHelperServiceisValidSubAccount in interface AccountingLineRuleHelperServiceorg.kuali.ole.sys.document.service.AccountingLineRuleHelperService#isValidSubAccount(org.kuali.ole.coa.businessobject.SubAccount, org.kuali.rice.krad.datadictionary.DataDictionary, java.lang.String)public boolean isValidSubObjectCode(String accountIdentifyingPropertyName, SubObjectCode subObjectCode, org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary)
AccountingLineRuleHelperServiceisValidSubObjectCode in interface AccountingLineRuleHelperServiceorg.kuali.ole.sys.document.service.AccountingLineRuleHelperService#isValidSubObjectCode(org.kuali.ole.coa.businessobject.SubObjCd, org.kuali.rice.krad.datadictionary.DataDictionary)public boolean isValidSubObjectCode(SubObjectCode subObjectCode, org.kuali.rice.krad.datadictionary.DataDictionary dataDictionary, String errorPropertyName, String accountIdentifyingPropertyName)
AccountingLineRuleHelperServiceisValidSubObjectCode in interface AccountingLineRuleHelperServiceorg.kuali.ole.sys.document.service.AccountingLineRuleHelperService#isValidSubObjectCode(org.kuali.ole.coa.businessobject.SubObjCd, org.kuali.rice.krad.datadictionary.DataDictionary, java.lang.String)public boolean validateAccountingLine(AccountingLine accountingLine)
AccountingLineRuleHelperServicevalidateAccountingLine in interface AccountingLineRuleHelperServiceAccountingLineRuleHelperService.validateAccountingLine(org.kuali.ole.sys.businessobject.AccountingLine)protected boolean isValidReferenceOriginCode(String accountIdentifyingPropertyName, OriginationCode referenceOriginCode, org.kuali.rice.krad.datadictionary.BusinessObjectEntry accountingLineEntry)
referenceOriginCode - accountingLineEntry - protected boolean isValidReferenceTypeCode(String documentTypeCode, org.kuali.rice.kew.doctype.bo.DocumentTypeEBO referenceType, org.kuali.rice.krad.datadictionary.BusinessObjectEntry accountingLineEntry, String errorPropertyIdentifyingName)
documentTypeCode - the document type name of the reference document typereferenceType - accountingLineEntry - protected boolean checkExistence(Object toCheck, org.kuali.rice.krad.datadictionary.BusinessObjectEntry accountingLineEntry, String attributeName, String propertyName, String errorPropertyIdentifyingName)
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.protected String getAccountIdentifyingPropertyName(AccountingLine accountingLine)
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.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.