1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.mycore.access.mcrimpl;
20
21 import java.util.Date;
22
23 import org.mycore.common.MCRUserInformation;
24
25 public class MCRAccessData {
26 private String userID;
27
28 private MCRUserInformation userInformation;
29
30 private Date date;
31
32 private MCRIPAddress ip;
33
34 @Deprecated
35 MCRAccessData(String userID, Date date, MCRIPAddress ip) {
36 this.userID = userID;
37 this.date = date;
38 this.ip = ip;
39 }
40
41 MCRAccessData(MCRUserInformation userInfo, Date date, MCRIPAddress ip) {
42 this.userInformation = userInfo;
43 this.date = date;
44 this.ip = ip;
45 }
46
47 public MCRAccessData() {
48 }
49
50 public Date getDate() {
51 return new Date(date.getTime());
52 }
53
54 public void setDate(Date date) {
55 this.date = new Date(date.getTime());
56 }
57
58 public MCRIPAddress getIp() {
59 return ip;
60 }
61
62 public void setIp(MCRIPAddress ip) {
63 this.ip = ip;
64 }
65
66 public String getUserID() {
67 return userID;
68 }
69
70 public void setUserID(String userID) {
71 this.userID = userID;
72 }
73
74 public MCRUserInformation getUserInformation() {
75 return userInformation;
76 }
77
78 public void setUserInformation(MCRUserInformation userInformation) {
79 this.userInformation = userInformation;
80 }
81
82 }