01: package org.osbl.identity.model;
02:
03: import org.conform.Property;
04: import org.osbl.persistence.model.Concrete;
05: import org.osbl.authorization.model.Profile;
06:
07: import java.util.Locale;
08: import java.util.List;
09:
10: public class User extends Concrete<Identity> {
11: @Property(mandatory="true")
12: String account;
13: char[] password;
14:
15: Locale locale;
16: private List<Profile> profiles;
17:
18: public User() {
19: }
20:
21: public User(Identity general) {
22: super (general);
23: }
24:
25: public String getAccount() {
26: return account;
27: }
28:
29: public void setAccount(String account) {
30: this .account = account;
31: }
32:
33: public char[] getPassword() {
34: return password;
35: }
36:
37: public void setPassword(char[] password) {
38: this .password = password;
39: }
40:
41: public Locale getLocale() {
42: return locale;
43: }
44:
45: public void setLocale(Locale locale) {
46: this .locale = locale;
47: }
48:
49: public List<Profile> getProfiles() {
50: return profiles;
51: }
52:
53: public void setProfiles(List<Profile> profiles) {
54: this.profiles = profiles;
55: }
56: }
|