保誠-保戶業務員媒合平台
wayne
2022-02-22 1a8622c14a2b8686a5655523d22167354b3834cf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.pollex.pam.web.rest.vm;
 
import com.pollex.pam.service.dto.AdminUserDTO;
import javax.validation.constraints.Size;
 
/**
 * View Model extending the AdminUserDTO, which is meant to be used in the user management UI.
 */
public class ManagedUserVM extends AdminUserDTO {
 
    public static final int PASSWORD_MIN_LENGTH = 4;
 
    public static final int PASSWORD_MAX_LENGTH = 100;
 
    @Size(min = PASSWORD_MIN_LENGTH, max = PASSWORD_MAX_LENGTH)
    private String password;
 
    public ManagedUserVM() {
        // Empty constructor needed for Jackson.
    }
 
    public String getPassword() {
        return password;
    }
 
    public void setPassword(String password) {
        this.password = password;
    }
 
    // prettier-ignore
    @Override
    public String toString() {
        return "ManagedUserVM{" + super.toString() + "} ";
    }
}