1
2
3
4
5
6
7 package gov.bnl.gums.account;
8
9 import javax.persistence.DiscriminatorColumn;
10 import javax.persistence.DiscriminatorType;
11 import javax.persistence.Entity;
12 import javax.persistence.Inheritance;
13 import javax.persistence.InheritanceType;
14
15 import gov.bnl.gums.SiteUser;
16 import gov.bnl.gums.configuration.ConfigElement;
17 import gov.bnl.gums.configuration.Configuration;
18
19
20
21
22
23
24
25
26
27 @Entity
28 @Inheritance(strategy=InheritanceType.SINGLE_TABLE)
29 @DiscriminatorColumn(
30 name="type",
31 discriminatorType=DiscriminatorType.STRING
32 )
33 public abstract class AccountMapper extends ConfigElement {
34
35
36
37 public AccountMapper() {
38 }
39
40
41
42
43
44
45
46 public AccountMapper(Configuration configuration, String name) {
47 super(configuration, name);
48 }
49
50
51
52
53
54
55 public abstract SiteUser mapDn(String dn, boolean createNew);
56
57 }