| | |
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | public static final UserModel ANONYMOUS = new UserModel("anonymous", false);
|
| | | |
| | | // field names are reflectively mapped in EditUser page
|
| | | public String username;
|
| | | public String password;
|
| | |
| | | this.isAuthenticated = true;
|
| | | }
|
| | |
|
| | | private UserModel(String username, boolean authenticated) {
|
| | | this.username = username;
|
| | | this.isAuthenticated = authenticated;
|
| | | }
|
| | |
|
| | | /**
|
| | | * This method does not take into consideration Ownership where the
|
| | | * administrator has not explicitly granted access to the owner.
|