1 | public class Group implements Serializable {↵ | | 1 | public class User {↵
|
|
2 | private String org;↵ | | 2 | private String userName;↵
|
3 | private String name;↵ | | 3 | private String password;↵
|
4 | private String description;↵ | | 4 | private Person person;↵
|
|
5 | private Set users = new HashSet();↵ | | 5 | private ↵
|
6 | ↵ | | 6 | Date lastModified;↵
|
| | | 7 | User() {}↵
|
7 | public Group(String name, String org) {↵ | | 8 | public User(String id, String ↵
|
8 | this.org = org;↵ | | |
|
9 | this.name = name;↵ | | |
|
10 | }↵ | | |
|
|
11 | public Group() {↵ | | 9 | pw, Person person) {↵
|
| | | 10 | this.userName = id;↵
|
| | | 11 | this.password = pw;↵
|
| | | 12 | this.person = person;↵
|
12 | }↵ | | 13 | }↵
|
|
13 | public String getName() {↵ | | 14 | public Date getLastModified() {↵
|
14 | return name;↵ | | 15 | return lastModified;↵
|
15 | }↵ | | 16 | }↵
|
|
16 | public void setName(String name) {↵ | | 17 | public void set↵
|
17 | this.name = name↵ | | 18 | LastModified(Date lastModified) {↵
|
18 | ;↵ | | 19 | this.lastModified = lastModified;↵
|
19 | }↵ | | 20 | }↵
|
|
20 | public String getOrg() {↵ | | 21 | public String getPassword() {↵
|
21 | return org;↵ | | 22 | return password;↵
|
22 | }↵ | | 23 | }↵
|
|
23 | public void setOrg(String org) {↵ | | 24 | public void setPassword(String password) {↵
|
24 | this.org = org;↵ | | 25 | this.password = password;↵
|
25 | }↵ | | 26 | }↵
|
|
26 | public Set getUsers() {↵ | | 27 | public Person getPerson() {↵
|
27 | return users;↵ | | 28 | return person;↵
|
28 | }↵ | | 29 | }↵
|
|
29 | public void setUsers(Set users) {↵ | | 30 | public void setPerson(Person person) {↵
|
30 | this.users = users;↵ | | 31 | this.person = person;↵
|
31 | }↵ | | 32 | }↵
|
|
32 | public String getDescription() {↵ | | 33 | public String getUserName() {↵
|
33 | return description;↵ | | 34 | return userName;↵
|
34 | }↵ | | 35 | }↵
|
|
35 | public void setDescription(String description) {↵ | | 36 | public void set↵
|
36 | this.description = description | | 37 | UserName(String userName) {↵
|
| | | 38 | this.userName = userName
|