public interface SubmitRule
For a given ChangeData
, each plugin is called and returns a Collection
of
SubmitRecord
. This collection can be empty, or contain one or several values.
A Change can only be submitted if all the plugins give their consent.
Each SubmitRecord
represents a decision made by the plugin. If the plugin rejects a
change, it should hold valuable informations to help the end user understand and correct the
blocking points.
It should be noted that each plugin can handle rules inheritance.
This interface should be used to write pre-submit validation rules. This includes both simple checks, coded in Java, and more complex fully fledged expression evaluators (think: Prolog, JavaCC, or even JavaScript rules).
Modifier and Type | Method and Description |
---|---|
java.util.Collection<SubmitRecord> |
evaluate(ChangeData changeData,
SubmitRuleOptions options)
Returns a
Collection of SubmitRecord status for the change. |
java.util.Collection<SubmitRecord> evaluate(ChangeData changeData, SubmitRuleOptions options)
Collection
of SubmitRecord
status for the change.