View Javadoc
1   /*
2    * This file is part of ***  M y C o R e  ***
3    * See http://www.mycore.de/ for details.
4    *
5    * MyCoRe is free software: you can redistribute it and/or modify
6    * it under the terms of the GNU General Public License as published by
7    * the Free Software Foundation, either version 3 of the License, or
8    * (at your option) any later version.
9    *
10   * MyCoRe is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   * GNU General Public License for more details.
14   *
15   * You should have received a copy of the GNU General Public License
16   * along with MyCoRe.  If not, see <http://www.gnu.org/licenses/>.
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  }