Kawai Wiki

Compare Revisions

Ignore whitespace Rev 44 → Rev 45

/trunk/src/main/java/org/kawai/model/User.java
12,8 → 12,6
private String email;
private int languageId;
private int groupId;
public User() { }
50,23 → 48,6
this.email = email;
}
 
public int getLanguageId() {
return languageId;
}
 
public void setLanguageId(int languageId) {
this.languageId = languageId;
}
public Language getLanguage() {
return Language.fromId(languageId);
}
public Locale getLocale() {
Language lang = getLanguage();
return lang != null ? lang.getLocale() : null;
}
 
public int getGroupId() {
return groupId;
}