blob: 99015923d52db09e11f4340b80f863647a65787c [file] [log] [blame]
Michael Hanl51a1a012016-02-01 19:54:56 +01001package de.ids_mannheim.korap.user;
2
Michael Hanl00b64e02016-05-24 20:24:27 +02003import de.ids_mannheim.korap.config.Attributes;
4
Michael Hanl51a1a012016-02-01 19:54:56 +01005/**
6 * @author hanl
7 * @date 22/01/2016
Michael Hanl8abaf9e2016-05-23 16:46:35 +02008 * persistence issue with query request
Michael Hanl51a1a012016-02-01 19:54:56 +01009 */
10public class UserDetails extends Userdata {
11
Michael Hanlc0ed00f2016-06-23 14:33:10 +020012
13 public UserDetails() {
14
15 }
16
17 public UserDetails(Integer userid) {
Michael Hanl51a1a012016-02-01 19:54:56 +010018 super(userid);
19 }
20
Michael Hanlc0ed00f2016-06-23 14:33:10 +020021 //todo: make configurable!
Michael Hanl51a1a012016-02-01 19:54:56 +010022 @Override
Michael Hanl8abaf9e2016-05-23 16:46:35 +020023 public String[] requiredFields () {
Michael Hanl51a1a012016-02-01 19:54:56 +010024 return new String[] { Attributes.EMAIL, Attributes.ADDRESS,
25 Attributes.LASTNAME, Attributes.FIRSTNAME };
26 }
27
Michael Hanl8abaf9e2016-05-23 16:46:35 +020028
Michael Hanl51a1a012016-02-01 19:54:56 +010029 @Override
Michael Hanl8abaf9e2016-05-23 16:46:35 +020030 public String[] defaultFields () {
Michael Hanl51a1a012016-02-01 19:54:56 +010031 return new String[] { Attributes.EMAIL, Attributes.ADDRESS,
32 Attributes.LASTNAME, Attributes.FIRSTNAME, Attributes.PHONE,
33 Attributes.COUNTRY, Attributes.INSTITUTION, Attributes.GENDER };
34 }
35
36}