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 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") boolean
Methods inherited from class co.yellowdog.platform.model.beanvalidation.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()
-