Annotation Type MetadataRoleValidate
-
@Target({TYPE,ANNOTATION_TYPE}) @Retention(RUNTIME) @Constraint(validatedBy=ProjectMetadataRoleValidator.class) @Documented public @interface MetadataRoleValidate
Validation annotation to validate that if the projectRole is set to PROJECT_OWNER for a user/usergroup then the metadataRole must be set to the highest level An array of fields (projectRole, metadataRole) must be suppliedExample, compare a single user/usergroup projectRole to it's metadataRole: @MetadataRoleValidate(message = "server.project.owner.incorrect.metadata.role"))