1 | public class User {↵ | | 1 | public class VersionedEntity {
↵
|
2 | private String name;↵ | | 2 | private String id;
↵
|
3 | private String password;↵ | | 3 | private String name;
↵
|
4 | private Set actions = new HashSet();↵ | | 4 | private ↵
|
5 | private Calendar lastUpdated;↵ | | |
|
6 | private Calendar created;↵ | | |
|
7 | ↵ | | |
|
8 | public User↵ | | 5 | long version;↵
|
|
| | | 6 | private VersionedEntity parent;↵
|
| | | 7 | private Set children = new HashSet();↵
|
|
| | | 8 | public VersionedEntity() {↵
|
| | | 9 | }↵
|
|
9 | (String name, String password) {↵ | | 10 | public VersionedEntity(String id, String ↵
|
10 | super();↵ | | |
|
11 | this.name = name;↵ | | |
|
12 | this.password = password;↵ | | |
|
13 | }↵ | | |
|
14 | public User() {↵ | | |
|
15 | super();↵ | | |
|
16 | }↵ | | |
|
17 | public Calendar getLastUpdate↵ | | 11 | name) {↵
|
| | | 12 | this.id = id;↵
|
| | | 13 | this.name = name;↵
|
| | | 14 | }↵
|
|
18 | d() {↵ | | 15 | public String getId() {
↵
|
19 | return lastUpdated;↵ | | 16 | return id;
↵
|
20 | }↵ | | 17 | }↵
|
| | | 18 |
↵
|
21 | public void setLastUpdated(Calendar lastUpdated) {↵ | | 19 | public void setId(String id) {
↵
|
22 | this.lastUpdated = lastUpdated;↵ | | 20 | this.id = id;
↵
|
23 | }↵ | | 21 | }↵
|
| | | 22 |
↵
|
24 | public String getName() {↵ | | 23 | public String getName() {
↵
|
25 | return name;↵ | | 24 | return name;
↵
|
26 | }↵ | | 25 | }↵
|
| | | 26 |
↵
|
27 | public void setName(String name) {↵ | | 27 | public void setName(String name) {
↵
|
28 | this.name = name;↵ | | 28 | this.name = name;
↵
|
29 | }↵ | | 29 | }↵
|
| | | 30 |
↵
|
30 | public String getPassword() {↵ | | 31 | public long getVersion() {
↵
|
31 | return password;↵ | | 32 | return ↵
|
32 | }↵ | | 33 | version;↵
|
| | | 34 | }↵
|
| | | 35 |
↵
|
33 | public void setPassword(String password) {↵ | | 36 | public void setVersion(long version) {
↵
|
34 | this.password = password;↵ | | 37 | this.↵
|
35 | }↵ | | |
|
36 | public Set getActions↵ | | 38 | version = version;↵
|
| | | 39 | }↵
|
|
37 | () {↵ | | 40 | public VersionedEntity getParent() {
↵
|
38 | return actions;↵ | | 41 | return ↵
|
39 | }↵ | | 42 | parent;↵
|
| | | 43 | }↵
|
| | | 44 |
↵
|
40 | public void setActions(Set actions) {↵ | | 45 | public void setParent(VersionedEntity parent) {
↵
|
41 | this.actions = actions;↵ | | 46 | this.↵
|
42 | }↵ | | 47 | parent = parent;↵
|
| | | 48 | }↵
|
| | | 49 |
↵
|
43 | public Calendar getCreated() {↵ | | 50 | public Set getChildren() {
↵
|
44 | return created;↵ | | 51 | return c↵
|
45 | }↵ | | 52 | hildren;↵
|
| | | 53 | }↵
|
| | | 54 |
↵
|
46 | public void setCreated(Calendar created) {↵ | | 55 | public void setChildren(Set children) {
↵
|
47 | this.created = created;↵ | | 56 | this.children = children;
↵
|
48 | | | 57 |
|