All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.nemerosa.ontrack.model.security.AccountInput Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
package net.nemerosa.ontrack.model.security;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.Collection;
import java.util.List;

/**
 * Creation of a built-in account.
 */
@Data
public class AccountInput {

    @NotNull(message = "The account name is required.")
    @Pattern(regexp = "[a-zA-Z0-9]+", message = "The account name must contain only letters and digits.")
    private final String name;
    @NotNull(message = "The account full name is required.")
    @Size(min = 1, max = 100, message = "The account full name must be between 1 and 100 long.")
    private final String fullName;
    @NotNull(message = "The account email is required.")
    @Size(min = 1, max = 200, message = "The account email must be between 1 and 200 long.")
    private final String email;
    private final String password;

    /**
     * List of selected groups
     */
    private final Collection groups;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy