|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.kns.rules.DocumentRuleBase
org.kuali.rice.kns.rules.TransactionalDocumentRuleBase
org.kuali.kfs.module.bc.document.validation.impl.BudgetConstructionDocumentRules
public class BudgetConstructionDocumentRules
Field Summary | |
---|---|
protected static AccountingLineRuleHelperService |
accountingLineRuleHelper
|
protected List<String> |
budgetAggregationCodesParamValues
|
protected static BudgetParameterService |
budgetParameterService
|
protected static org.kuali.rice.kns.service.BusinessObjectService |
businessObjectService
|
protected static org.kuali.rice.kns.service.DataDictionaryService |
dataDictionaryService
|
protected List<String> |
expenditureObjectTypesParamValues
|
protected static FiscalYearFunctionControlService |
fiscalYearFunctionControlService
|
protected List<String> |
fringeBenefitDesignatorCodesParamValues
|
protected static org.apache.log4j.Logger |
LOG
|
protected List<String> |
revenueObjectTypesParamValues
|
protected List<String> |
salarySettingFundGroupsParamValues
|
protected static SalarySettingService |
salarySettingService
|
protected List<String> |
salarySettingSubFundGroupsParamValues
|
protected static String |
TARGET_ERROR_PROPERTY_NAME
|
Constructor Summary | |
---|---|
BudgetConstructionDocumentRules()
|
Method Summary | |
---|---|
protected boolean |
checkPendingBudgetConstructionGeneralLedgerLine(BudgetConstructionDocument budgetConstructionDocument,
PendingBudgetConstructionGeneralLedger pendingBudgetConstructionGeneralLedger,
org.kuali.rice.kns.util.MessageMap errors,
boolean isRevenue,
boolean isAdd)
Checks a PBGL line. |
protected boolean |
checkPendingBudgetConstructionGeneralLedgerLines(BudgetConstructionDocument budgetConstructionDocument,
org.kuali.rice.kns.util.MessageMap errors,
boolean isRevenue,
boolean doMonthRICheck)
Iterates existing revenue or expenditure lines. |
protected boolean |
isBudgetAggregationAllowed(List paramValues,
PendingBudgetConstructionGeneralLedger accountingLine,
org.kuali.rice.kns.util.MessageMap errors,
boolean isAdd)
|
protected boolean |
isBudgetAllowed(BudgetConstructionDocument budgetConstructionDocument,
String propertyName,
org.kuali.rice.kns.util.MessageMap errors,
boolean isAdd,
boolean isDocumentAdd)
runs rule checks that don't allow a budget |
protected boolean |
isNewLineUnique(BudgetConstructionDocument budgetConstructionDocument,
PendingBudgetConstructionGeneralLedger newLine,
org.kuali.rice.kns.util.MessageMap errors,
boolean isRevenue)
|
protected boolean |
isNonWagesAccountNotLaborObject(BudgetConstructionDocument budgetConstructionDocument,
PendingBudgetConstructionGeneralLedger accountingLine,
org.kuali.rice.kns.util.MessageMap errors,
boolean isAdd)
|
protected boolean |
isNotFringeBenefitObject(List paramValues,
PendingBudgetConstructionGeneralLedger accountingLine,
org.kuali.rice.kns.util.MessageMap errors,
boolean isAdd)
|
protected boolean |
isNotSalarySettingOnly(List fundGroupParamValues,
List subfundGroupParamValues,
BudgetConstructionDocument budgetConstructionDocument,
PendingBudgetConstructionGeneralLedger accountingLine,
org.kuali.rice.kns.util.MessageMap errors,
boolean isRevenue,
boolean isAdd)
|
protected boolean |
isObjectTypeAllowed(List paramValues,
PendingBudgetConstructionGeneralLedger accountingLine,
org.kuali.rice.kns.util.MessageMap errors,
boolean isRevenue,
boolean isAdd)
|
boolean |
isValidAccount(Account account,
String value,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary,
String errorPropertyName)
|
boolean |
isValidObjectCode(ObjectCode objectCode,
String value,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary,
String errorPropertyName)
Runs existence and active tests on the ObjectCode reference This method is differenct than the one in AccountingLineRuleHelper in that it adds the bad value to the errormessage This method signature should probably be added to AccountingLineRuleHelper |
boolean |
isValidSubAccount(SubAccount subAccount,
String value,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary,
String errorPropertyName)
|
boolean |
isValidSubObjectCode(SubObjectCode subObjectCode,
String value,
org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary,
String errorPropertyName)
Runs existence and active tests on the SubObjectCode reference This method is differenct than the one in AccountingLineRuleHelper in that it adds the bad value to the errormessage This method signature should probably be added to AccountingLineRuleHelper |
boolean |
processAddBudgetConstructionDocumentRules(BudgetConstructionDocument budgetConstructionDocument)
Processes all the rules for this event and returns true if all rules passed |
boolean |
processAddPendingBudgetGeneralLedgerLineRules(BudgetConstructionDocument budgetConstructionDocument,
PendingBudgetConstructionGeneralLedger pendingBudgetConstructionGeneralLedger,
boolean isRevenue)
Checks a new PBGL line. |
boolean |
processDeleteMonthlySpreadRules(BudgetConstructionDocument budgetConstructionDocument,
BCConstants.MonthSpreadDeleteType monthSpreadDeleteType)
|
boolean |
processDeletePendingBudgetGeneralLedgerLineRules(BudgetConstructionDocument budgetConstructionDocument,
PendingBudgetConstructionGeneralLedger pendingBudgetConstructionGeneralLedger,
boolean isRevenue)
Runs rules for deleting an existing revenue or expenditure line. |
boolean |
processSaveBudgetDocumentRules(BudgetConstructionDocument budgetConstructionDocument,
BCConstants.MonthSpreadDeleteType monthSpreadDeleteType)
Iterates through existing revenue and expenditure lines to do validation, ri checks on object/sub-object code and request amount referential integrity checks against appointment funding and monthly detail amounts. |
boolean |
processSaveDocument(org.kuali.rice.kns.document.Document document)
Runs business rules prior to saving Budget Document proper. |
boolean |
processSaveMonthlyBudgetRules(BudgetConstructionDocument budgetConstructionDocument,
BudgetConstructionMonthly budgetConstructionMonthly)
Processes all the rules for this event and returns true if all rules passed |
protected void |
putError(org.kuali.rice.kns.util.MessageMap errors,
String propertyName,
String errorKey,
boolean isAdd,
String... errorParameters)
puts error to errormap for propertyName if isAdd, otherwise the property name is replaced with value of TARGET_ERROR_PROPERTY_NAME |
protected boolean |
validatePBGLLine(PendingBudgetConstructionGeneralLedger pendingBudgetConstructionGeneralLedger,
boolean isAdd)
|
protected void |
validatePrimitiveFromDescriptor(Object object,
String attributeName,
String errorPrefix,
boolean validateRequired)
Validates a single primitive in a BO |
protected void |
validatePrimitiveFromDescriptor(String entryName,
Object object,
PropertyDescriptor propertyDescriptor,
String errorPrefix,
boolean validateRequired)
Validates a primitive in a BO |
Methods inherited from class org.kuali.rice.kns.rules.DocumentRuleBase |
---|
getDataDictionaryService, getDictionaryValidationService, getDocumentHelperService, getIdentityManagementService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPersonService, getWorkflowInfoService, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processApproveDocument, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomRouteDocumentBusinessRules, processCustomSaveDocumentBusinessRules, processCustomSendAdHocRequests, processRouteDocument, processSendAdHocRequests, setMaxDictionaryValidationDepth, validateSensitiveDataValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.log4j.Logger LOG
protected static BudgetParameterService budgetParameterService
protected static AccountingLineRuleHelperService accountingLineRuleHelper
protected static org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService
protected static SalarySettingService salarySettingService
protected static org.kuali.rice.kns.service.BusinessObjectService businessObjectService
protected static FiscalYearFunctionControlService fiscalYearFunctionControlService
protected List<String> revenueObjectTypesParamValues
protected List<String> expenditureObjectTypesParamValues
protected List<String> budgetAggregationCodesParamValues
protected List<String> fringeBenefitDesignatorCodesParamValues
protected List<String> salarySettingFundGroupsParamValues
protected List<String> salarySettingSubFundGroupsParamValues
protected static final String TARGET_ERROR_PROPERTY_NAME
Constructor Detail |
---|
public BudgetConstructionDocumentRules()
Method Detail |
---|
public boolean processAddBudgetConstructionDocumentRules(BudgetConstructionDocument budgetConstructionDocument)
AddBudgetConstructionDocumentRule
processAddBudgetConstructionDocumentRules
in interface AddBudgetConstructionDocumentRule<BudgetConstructionDocument>
AddBudgetConstructionDocumentRule.processAddBudgetConstructionDocumentRules(org.kuali.kfs.module.bc.document.BudgetConstructionDocument)
public boolean processSaveDocument(org.kuali.rice.kns.document.Document document)
processSaveDocument
in interface org.kuali.rice.kns.rule.SaveDocumentRule
processSaveDocument
in class org.kuali.rice.kns.rules.DocumentRuleBase
DocumentRuleBase.processSaveDocument(org.kuali.rice.kns.document.Document)
public boolean processDeleteMonthlySpreadRules(BudgetConstructionDocument budgetConstructionDocument, BCConstants.MonthSpreadDeleteType monthSpreadDeleteType)
processDeleteMonthlySpreadRules
in interface DeleteMonthlySpreadRule<BudgetConstructionDocument>
public boolean processSaveBudgetDocumentRules(BudgetConstructionDocument budgetConstructionDocument, BCConstants.MonthSpreadDeleteType monthSpreadDeleteType)
org.kuali.module.budget.rule.SaveBudgetDocumentRule#processSaveBudgetDocumentRules(D)
public boolean processAddPendingBudgetGeneralLedgerLineRules(BudgetConstructionDocument budgetConstructionDocument, PendingBudgetConstructionGeneralLedger pendingBudgetConstructionGeneralLedger, boolean isRevenue)
processAddPendingBudgetGeneralLedgerLineRules
in interface AddPendingBudgetGeneralLedgerLineRule<BudgetConstructionDocument,PendingBudgetConstructionGeneralLedger>
budgetConstructionDocument
- pendingBudgetConstructionGeneralLedger
- isRevenue
-
public boolean processDeletePendingBudgetGeneralLedgerLineRules(BudgetConstructionDocument budgetConstructionDocument, PendingBudgetConstructionGeneralLedger pendingBudgetConstructionGeneralLedger, boolean isRevenue)
processDeletePendingBudgetGeneralLedgerLineRules
in interface DeletePendingBudgetGeneralLedgerLineRule<BudgetConstructionDocument,PendingBudgetConstructionGeneralLedger>
budgetConstructionDocument
- pendingBudgetConstructionGeneralLedger
- isRevenue
-
public boolean processSaveMonthlyBudgetRules(BudgetConstructionDocument budgetConstructionDocument, BudgetConstructionMonthly budgetConstructionMonthly)
SaveMonthlyBudgetRule
processSaveMonthlyBudgetRules
in interface SaveMonthlyBudgetRule<BudgetConstructionDocument,BudgetConstructionMonthly>
SaveMonthlyBudgetRule.processSaveMonthlyBudgetRules(org.kuali.kfs.module.bc.document.BudgetConstructionDocument,
org.kuali.kfs.module.bc.businessobject.BudgetConstructionMonthly)
protected boolean checkPendingBudgetConstructionGeneralLedgerLines(BudgetConstructionDocument budgetConstructionDocument, org.kuali.rice.kns.util.MessageMap errors, boolean isRevenue, boolean doMonthRICheck)
budgetConstructionDocument
- errors
- isRevenue
-
protected boolean checkPendingBudgetConstructionGeneralLedgerLine(BudgetConstructionDocument budgetConstructionDocument, PendingBudgetConstructionGeneralLedger pendingBudgetConstructionGeneralLedger, org.kuali.rice.kns.util.MessageMap errors, boolean isRevenue, boolean isAdd)
budgetConstructionDocument
- pendingBudgetConstructionGeneralLedger
-
protected boolean validatePBGLLine(PendingBudgetConstructionGeneralLedger pendingBudgetConstructionGeneralLedger, boolean isAdd)
protected void validatePrimitiveFromDescriptor(Object object, String attributeName, String errorPrefix, boolean validateRequired)
object
- attributeName
- errorPrefix
- validateRequired
- protected void validatePrimitiveFromDescriptor(String entryName, Object object, PropertyDescriptor propertyDescriptor, String errorPrefix, boolean validateRequired)
entryName
- object
- propertyDescriptor
- errorPrefix
- validateRequired
- protected boolean isObjectTypeAllowed(List paramValues, PendingBudgetConstructionGeneralLedger accountingLine, org.kuali.rice.kns.util.MessageMap errors, boolean isRevenue, boolean isAdd)
protected boolean isBudgetAggregationAllowed(List paramValues, PendingBudgetConstructionGeneralLedger accountingLine, org.kuali.rice.kns.util.MessageMap errors, boolean isAdd)
protected boolean isNewLineUnique(BudgetConstructionDocument budgetConstructionDocument, PendingBudgetConstructionGeneralLedger newLine, org.kuali.rice.kns.util.MessageMap errors, boolean isRevenue)
protected boolean isNonWagesAccountNotLaborObject(BudgetConstructionDocument budgetConstructionDocument, PendingBudgetConstructionGeneralLedger accountingLine, org.kuali.rice.kns.util.MessageMap errors, boolean isAdd)
protected boolean isNotFringeBenefitObject(List paramValues, PendingBudgetConstructionGeneralLedger accountingLine, org.kuali.rice.kns.util.MessageMap errors, boolean isAdd)
protected boolean isNotSalarySettingOnly(List fundGroupParamValues, List subfundGroupParamValues, BudgetConstructionDocument budgetConstructionDocument, PendingBudgetConstructionGeneralLedger accountingLine, org.kuali.rice.kns.util.MessageMap errors, boolean isRevenue, boolean isAdd)
protected boolean isBudgetAllowed(BudgetConstructionDocument budgetConstructionDocument, String propertyName, org.kuali.rice.kns.util.MessageMap errors, boolean isAdd, boolean isDocumentAdd)
budgetConstructionDocument
- propertyName
- errors
- isAdd
- isDocumentAdd
-
public boolean isValidAccount(Account account, String value, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary, String errorPropertyName)
public boolean isValidSubAccount(SubAccount subAccount, String value, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary, String errorPropertyName)
public boolean isValidSubObjectCode(SubObjectCode subObjectCode, String value, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary, String errorPropertyName)
subObjectCode
- value
- dataDictionary
- errorPropertyName
-
public boolean isValidObjectCode(ObjectCode objectCode, String value, org.kuali.rice.kns.datadictionary.DataDictionary dataDictionary, String errorPropertyName)
objectCode
- value
- dataDictionary
- errorPropertyName
-
protected void putError(org.kuali.rice.kns.util.MessageMap errors, String propertyName, String errorKey, boolean isAdd, String... errorParameters)
propertyName
- errorKey
- isAdd
- errorParameters
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |