1 | public class User {↵ | | 1 | public class Permission {↵
|
2 | private String name↵ | | 2 | private Long id;↵
|
3 | ;↵ | | 3 | private Date timestamp;↵
|
4 | private String password;↵ | | 4 | private String name;↵
|
5 | private Set actions = new HashSet();↵ | | 5 | private S↵
|
6 | private Calendar lastUpdated;↵ | | |
|
7 | private Calendar created;↵ | | |
|
8 | ↵ | | |
|
9 | public User(String name, String password) {↵ | | |
|
10 | super();↵ | | 6 | tring context;↵
|
| | | 7 | private String access;↵
|
|
| | | 8 | public Permission() {↵
|
| | | 9 | }↵
|
|
| | | 10 | public Permission(String name, String context, String access) {↵
|
11 | this.name = name;↵ | | 11 | this.name = name;↵
|
12 | this.password = password;↵ | | 12 | this.↵
|
13 | }↵ | | |
|
14 | public User() {↵ | | |
|
15 | super()↵ | | 13 | context = context;↵
|
16 | ;↵ | | 14 | this.access = access;↵
|
17 | }↵ | | 15 | }↵
|
|
18 | public Calendar getLastUpdated() {↵ | | 16 | public Long getId() {↵
|
19 | return lastUpdated;↵ | | 17 | return id;↵
|
20 | }↵ | | 18 | }↵
|
|
21 | public void setLastUpdated(Calendar lastUpdated) {↵ | | 19 | public void set↵
|
22 | this.lastUpdated = lastUpdate↵ | | 20 | Id(Long id) {↵
|
23 | d;↵ | | 21 | this.id = id;↵
|
24 | }↵ | | 22 | }↵
|
|
25 | public String getName() {↵ | | 23 | public Date getTimestamp() {↵
|
26 | return name;↵ | | 24 | return timestamp;↵
|
27 | }↵ | | 25 | }↵
|
|
28 | public void setName(String name) {↵ | | 26 | public void set↵
|
29 | this.name = n↵ | | 27 | Timestamp(Date timestamp) {↵
|
30 | ame;↵ | | 28 | this.timestamp = timestamp;↵
|
31 | }↵ | | 29 | }↵
|
|
32 | public String getPassword() {↵ | | 30 | public String getName() {↵
|
33 | return password;↵ | | 31 | return name;↵
|
34 | }↵ | | 32 | }↵
|
|
35 | public void setPassword(String password) {↵ | | 33 | public void setName(String name) {↵
|
36 | this.password = password;↵ | | 34 | this.name = name;↵
|
37 | }↵ | | 35 | }↵
|
|
38 | public Set getActions() {↵ | | 36 | public String getContext() {↵
|
39 | return actions;↵ | | 37 | return context;↵
|
40 | }↵ | | 38 | }↵
|
|
41 | public void setActions(Set actions) {↵ | | 39 | public void setContext(String context) {↵
|
42 | this.actions = actions;↵ | | 40 | this.context = context;↵
|
43 | }↵ | | 41 | }↵
|
|
44 | public Calendar getCreated() {↵ | | 42 | public String getAccess() {↵
|
45 | return created;↵ | | 43 | return access;↵
|
46 | }↵ | | 44 | }↵
|
|
47 | public void setCreated(Calendar created) {↵ | | 45 | public void setAccess(String access) {↵
|
48 | this.created = created | | 46 | this.access = access
|