public class AccountingLineValuesAllowedValidationHutch extends Object implements Validation
Modifier and Type | Field and Description |
---|---|
protected AccountingDocument |
accountingDocumentForValidation |
protected String |
accountingDocumentParameterPropertyName |
protected AccountingLine |
accountingLineForValidation |
protected String |
accountingLineParameterPropertyName |
protected Validation |
fundGroupAllowedValidation |
protected Validation |
objectCodeAllowedValidation |
protected Validation |
objectConsolidationAllowedValidation |
protected Validation |
objectLevelAllowedValidation |
protected Validation |
objectSubTypeAllowedValidation |
protected Validation |
objectTypeAllowedValidation |
protected boolean |
quitOnFail |
protected Validation |
subFundGroupAllowedValidation |
Constructor and Description |
---|
AccountingLineValuesAllowedValidationHutch() |
Modifier and Type | Method and Description |
---|---|
protected void |
addParametersToValidation(AccountingLineValueAllowedValidation validation)
Adds the parameter properties to an instance of the AccountingLinevAlueAllowedValidation
|
protected void |
addParametersToValidation(CompositeValidation validation)
Adds the parameter properties to the children validations of a CompositeValidation
|
AccountingDocument |
getAccountingDocumentForValidation() |
String |
getAccountingDocumentParameterPropertyName()
Gets the accountingDocumentParameterPropertyName attribute.
|
AccountingLine |
getAccountingLineForValidation() |
String |
getAccountingLineParameterPropertyName()
Gets the accountingLineParameterPropertyName attribute.
|
Validation |
getFundGroupAllowedValidation()
Gets the fundGroupAllowedValidation attribute.
|
Validation |
getObjectCodeAllowedValidation()
Gets the objectCodeAllowedValidation attribute.
|
Validation |
getObjectConsolidationAllowedValidation()
Gets the objectConsolidationAllowedValidation attribute.
|
Validation |
getObjectLevelAllowedValidation()
Gets the objectLevelAllowedValidation attribute.
|
Validation |
getObjectSubTypeAllowedValidation()
Gets the objectSubTypeAllowedValidation attribute.
|
Validation |
getObjectTypeAllowedValidation()
Gets the objectTypeAllowedValidation attribute.
|
Validation |
getSubFundGroupAllowedValidation()
Gets the subFundGroupAllowedValidation attribute.
|
protected List<Validation> |
getValidationGauntlet()
Returns a list of all the validations the hutch has to pass in order to pass as a whole.
|
protected void |
grabDocumentAndLineForValidationFromEvent(AttributedDocumentEvent event)
Using the parameter property names set, finds the accounting document and accounting line to be validate
from the property, like an anteater getting tasty termites from a hill.
|
void |
setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation) |
void |
setAccountingDocumentParameterPropertyName(String accountingDocumentParameterPropertyName)
Sets the accountingDocumentParameterPropertyName attribute value.
|
void |
setAccountingLineForValidation(AccountingLine accountingLineForValidation) |
void |
setAccountingLineParameterPropertyName(String accountingLineParameterPropertyName)
Sets the accountingLineParameterPropertyName attribute value.
|
void |
setFundGroupAllowedValidation(Validation fundGroupAllowedValidation)
Sets the fundGroupAllowedValidation attribute value.
|
void |
setObjectCodeAllowedValidation(Validation objectCodeAllowedValidation)
Sets the objectCodeAllowedValidation attribute value.
|
void |
setObjectConsolidationAllowedValidation(Validation objectConsolidationAllowedValidation)
Sets the objectConsolidationAllowedValidation attribute value.
|
void |
setObjectLevelAllowedValidation(Validation objectLevelAllowedValidation)
Sets the objectLevelAllowedValidation attribute value.
|
void |
setObjectSubTypeAllowedValidation(Validation objectSubTypeAllowedValidation)
Sets the objectSubTypeAllowedValidation attribute value.
|
void |
setObjectTypeAllowedValidation(Validation objectTypeAllowedValidation)
Sets the objectTypeAllowedValidation attribute value.
|
void |
setQuitOnFail(boolean b)
Sets whether the validation hutch should quit on the failure of the entire validation case failing.
|
void |
setSubFundGroupAllowedValidation(Validation subFundGroupAllowedValidation)
Sets the subFundGroupAllowedValidation attribute value.
|
boolean |
shouldQuitOnFail()
Returns whether the validation process should quit on the failure of this validation
|
boolean |
stageValidation(AttributedDocumentEvent event)
Stages the execution of a Validation
|
protected void |
updateValidationsWithParameters()
Goes through each of the validations in the hutch, making sure each has the accounting document and accounting line to validate
|
boolean |
validate(AttributedDocumentEvent event)
This method validates that certain parameters
|
protected Validation objectCodeAllowedValidation
protected Validation objectTypeAllowedValidation
protected Validation fundGroupAllowedValidation
protected Validation subFundGroupAllowedValidation
protected Validation objectSubTypeAllowedValidation
protected Validation objectLevelAllowedValidation
protected Validation objectConsolidationAllowedValidation
protected String accountingDocumentParameterPropertyName
protected String accountingLineParameterPropertyName
protected AccountingDocument accountingDocumentForValidation
protected AccountingLine accountingLineForValidation
protected boolean quitOnFail
public AccountingLineValuesAllowedValidationHutch()
public boolean shouldQuitOnFail()
Validation
shouldQuitOnFail
in interface Validation
Validation.shouldQuitOnFail()
public void setQuitOnFail(boolean b)
b
- public boolean stageValidation(AttributedDocumentEvent event)
Validation
stageValidation
in interface Validation
event
- the event the validateValidation.stageValidation(org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent)
protected List<Validation> getValidationGauntlet()
protected void grabDocumentAndLineForValidationFromEvent(AttributedDocumentEvent event)
event
- the event to take properties fromprotected void updateValidationsWithParameters()
protected void addParametersToValidation(AccountingLineValueAllowedValidation validation)
validation
- the validation to add the correct properties toprotected void addParametersToValidation(CompositeValidation validation)
validation
- the validation to add the correct parameters topublic boolean validate(AttributedDocumentEvent event)
Validation
validate
in interface Validation
Validation.validate(org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent)
public Validation getFundGroupAllowedValidation()
public void setFundGroupAllowedValidation(Validation fundGroupAllowedValidation)
fundGroupAllowedValidation
- The fundGroupAllowedValidation to set.public Validation getObjectCodeAllowedValidation()
public void setObjectCodeAllowedValidation(Validation objectCodeAllowedValidation)
objectCodeAllowedValidation
- The objectCodeAllowedValidation to set.public Validation getObjectConsolidationAllowedValidation()
public void setObjectConsolidationAllowedValidation(Validation objectConsolidationAllowedValidation)
objectConsolidationAllowedValidation
- The objectConsolidationAllowedValidation to set.public Validation getObjectLevelAllowedValidation()
public void setObjectLevelAllowedValidation(Validation objectLevelAllowedValidation)
objectLevelAllowedValidation
- The objectLevelAllowedValidation to set.public Validation getObjectSubTypeAllowedValidation()
public void setObjectSubTypeAllowedValidation(Validation objectSubTypeAllowedValidation)
objectSubTypeAllowedValidation
- The objectSubTypeAllowedValidation to set.public Validation getObjectTypeAllowedValidation()
public void setObjectTypeAllowedValidation(Validation objectTypeAllowedValidation)
objectTypeAllowedValidation
- The objectTypeAllowedValidation to set.public Validation getSubFundGroupAllowedValidation()
public void setSubFundGroupAllowedValidation(Validation subFundGroupAllowedValidation)
subFundGroupAllowedValidation
- The subFundGroupAllowedValidation to set.public String getAccountingDocumentParameterPropertyName()
public void setAccountingDocumentParameterPropertyName(String accountingDocumentParameterPropertyName)
accountingDocumentParameterPropertyName
- The accountingDocumentParameterPropertyName to set.public String getAccountingLineParameterPropertyName()
public void setAccountingLineParameterPropertyName(String accountingLineParameterPropertyName)
accountingLineParameterPropertyName
- The accountingLineParameterPropertyName to set.public void setAccountingDocumentForValidation(AccountingDocument accountingDocumentForValidation)
public void setAccountingLineForValidation(AccountingLine accountingLineForValidation)
public AccountingDocument getAccountingDocumentForValidation()
public AccountingLine getAccountingLineForValidation()
Copyright © 2004–2016 The Kuali Foundation. All rights reserved.