| Michael Hanl | 51a1a01 | 2016-02-01 19:54:56 +0100 | [diff] [blame] | 1 | package de.ids_mannheim.korap.user; |
| 2 | |
| Michael Hanl | 00b64e0 | 2016-05-24 20:24:27 +0200 | [diff] [blame] | 3 | import de.ids_mannheim.korap.config.Attributes; |
| 4 | |
| Michael Hanl | 51a1a01 | 2016-02-01 19:54:56 +0100 | [diff] [blame] | 5 | /** |
| 6 | * @author hanl |
| 7 | * @date 22/01/2016 |
| Michael Hanl | 8abaf9e | 2016-05-23 16:46:35 +0200 | [diff] [blame] | 8 | * persistence issue with query request |
| Michael Hanl | 51a1a01 | 2016-02-01 19:54:56 +0100 | [diff] [blame] | 9 | */ |
| 10 | public class UserDetails extends Userdata { |
| 11 | |
| Michael Hanl | c0ed00f | 2016-06-23 14:33:10 +0200 | [diff] [blame] | 12 | |
| 13 | public UserDetails() { |
| 14 | |
| 15 | } |
| 16 | |
| 17 | public UserDetails(Integer userid) { |
| Michael Hanl | 51a1a01 | 2016-02-01 19:54:56 +0100 | [diff] [blame] | 18 | super(userid); |
| 19 | } |
| 20 | |
| Michael Hanl | c0ed00f | 2016-06-23 14:33:10 +0200 | [diff] [blame] | 21 | //todo: make configurable! |
| Michael Hanl | 51a1a01 | 2016-02-01 19:54:56 +0100 | [diff] [blame] | 22 | @Override |
| Michael Hanl | 8abaf9e | 2016-05-23 16:46:35 +0200 | [diff] [blame] | 23 | public String[] requiredFields () { |
| Michael Hanl | 51a1a01 | 2016-02-01 19:54:56 +0100 | [diff] [blame] | 24 | return new String[] { Attributes.EMAIL, Attributes.ADDRESS, |
| 25 | Attributes.LASTNAME, Attributes.FIRSTNAME }; |
| 26 | } |
| 27 | |
| Michael Hanl | 8abaf9e | 2016-05-23 16:46:35 +0200 | [diff] [blame] | 28 | |
| Michael Hanl | 51a1a01 | 2016-02-01 19:54:56 +0100 | [diff] [blame] | 29 | @Override |
| Michael Hanl | 8abaf9e | 2016-05-23 16:46:35 +0200 | [diff] [blame] | 30 | public String[] defaultFields () { |
| Michael Hanl | 51a1a01 | 2016-02-01 19:54:56 +0100 | [diff] [blame] | 31 | return new String[] { Attributes.EMAIL, Attributes.ADDRESS, |
| 32 | Attributes.LASTNAME, Attributes.FIRSTNAME, Attributes.PHONE, |
| 33 | Attributes.COUNTRY, Attributes.INSTITUTION, Attributes.GENDER }; |
| 34 | } |
| 35 | |
| 36 | } |