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 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.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)
AccountingLineRuleHelperService
isValidAccount
in interface AccountingLineRuleHelperService
org.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)
AccountingLineRuleHelperService
isValidAccount
in interface AccountingLineRuleHelperService
org.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)
AccountingLineRuleHelperService
isValidChart
in interface AccountingLineRuleHelperService
org.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)
AccountingLineRuleHelperService
isValidChart
in interface AccountingLineRuleHelperService
org.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)
AccountingLineRuleHelperService
isValidObjectCode
in interface AccountingLineRuleHelperService
org.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)
AccountingLineRuleHelperService
isValidObjectCode
in interface AccountingLineRuleHelperService
org.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)
AccountingLineRuleHelperService
isValidObjectTypeCode
in interface AccountingLineRuleHelperService
org.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)
AccountingLineRuleHelperService
isValidObjectTypeCode
in interface AccountingLineRuleHelperService
org.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)
AccountingLineRuleHelperService
isValidProjectCode
in interface AccountingLineRuleHelperService
org.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)
AccountingLineRuleHelperService
isValidProjectCode
in interface AccountingLineRuleHelperService
org.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)
AccountingLineRuleHelperService
isValidSubAccount
in interface AccountingLineRuleHelperService
org.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)
AccountingLineRuleHelperService
isValidSubAccount
in interface AccountingLineRuleHelperService
org.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)
AccountingLineRuleHelperService
isValidSubObjectCode
in interface AccountingLineRuleHelperService
org.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)
AccountingLineRuleHelperService
isValidSubObjectCode
in interface AccountingLineRuleHelperService
org.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)
AccountingLineRuleHelperService
validateAccountingLine
in interface AccountingLineRuleHelperService
AccountingLineRuleHelperService.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.