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 supplied

    Example, compare a single user/usergroup projectRole to it's metadataRole: @MetadataRoleValidate(message = "server.project.owner.incorrect.metadata.role"))

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<?>[] groups  
      java.lang.String message  
      java.lang.Class<? extends javax.validation.Payload>[] payload  
    • Element Detail

      • message

        java.lang.String message
        Default:
        "server.project.owner.incorrect.metadata.role"
      • groups

        java.lang.Class<?>[] groups
        Default:
        {}
      • payload

        java.lang.Class<? extends javax.validation.Payload>[] payload
        Default:
        {}