Class WorkRequirementValidator
java.lang.Object
co.yellowdog.platform.model.beanvalidation.CustomValidator<WorkRequirement>
co.yellowdog.platform.model.validation.customvalidators.WorkRequirementValidator
Custom validator applied to work requirements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@AssertTrue(message="must not have cyclic destinations between task group failure policies") boolean@AssertTrue(message="must not have task group failure policy destinations that are task groups that will finish if all tasks finished") boolean@AssertTrue(message="must not contain task group failure policies declaring destinations on other task groups not in the same work requirement") boolean@AssertTrue(message="must not contain task groups declaring dependencies on other task groups not in the same work requirement") boolean@AssertTrue(message="must not contain task groups with duplicate names") boolean@AssertTrue(message="must not have cyclic dependencies between task groups") booleanMethods inherited from class CustomValidator
getTarget, onSetTarget
-
Constructor Details
-
WorkRequirementValidator
public WorkRequirementValidator()
-
-
Method Details
-
isAllNonNullTaskGroupNamesUnique
@AssertTrue(message="must not contain task groups with duplicate names") public @AssertTrue(message="must not contain task groups with duplicate names") boolean isAllNonNullTaskGroupNamesUnique() -
isAllNonNullDependentOnNamesPresent
@AssertTrue(message="must not contain task groups declaring dependencies on other task groups not in the same work requirement") public @AssertTrue(message="must not contain task groups declaring dependencies on other task groups not in the same work requirement") boolean isAllNonNullDependentOnNamesPresent() -
isNoCyclicDependencies
@AssertTrue(message="must not have cyclic dependencies between task groups") public @AssertTrue(message="must not have cyclic dependencies between task groups") boolean isNoCyclicDependencies() -
isAllFailurePolicyDestinationsPresent
@AssertTrue(message="must not contain task group failure policies declaring destinations on other task groups not in the same work requirement") public @AssertTrue(message="must not contain task group failure policies declaring destinations on other task groups not in the same work requirement") boolean isAllFailurePolicyDestinationsPresent() -
isAllFailurePolicyDestinationsAreAcyclic
@AssertTrue(message="must not have cyclic destinations between task group failure policies") public @AssertTrue(message="must not have cyclic destinations between task group failure policies") boolean isAllFailurePolicyDestinationsAreAcyclic() -
isAllFailurePolicyDestinationsNotFinishIfAllTasksFinished
@AssertTrue(message="must not have task group failure policy destinations that are task groups that will finish if all tasks finished") public @AssertTrue(message="must not have task group failure policy destinations that are task groups that will finish if all tasks finished") boolean isAllFailurePolicyDestinationsNotFinishIfAllTasksFinished()
-