BrightSide Workbench Full Report + Source Code
LogRegister.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2013 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero 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  * This program 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 Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 package org.turro.contacts.log;
20 
21 import java.util.Date;
22 import org.turro.elephant.log.LogType;
23 import org.turro.plugin.log.ILogRegister;
24 
29 public class LogRegister implements ILogRegister {
30 
31  private LogType logType;
32  private String path;
33  private String idUser;
34  private String name;
35  private Date dateLog;
36  private String comment;
37  private Object object;
38  private int count;
39 
40  public LogRegister(LogType logType, String path, String idUser, String name, Date dateLog, String comment, Object object, int count) {
41  this.logType = logType;
42  this.path = path;
43  this.idUser = idUser;
44  this.name = name;
45  this.dateLog = dateLog;
46  this.comment = comment;
47  this.object = object;
48  this.count = count;
49  }
50 
51  @Override
52  public LogType getLogType() {
53  return logType;
54  }
55 
56  @Override
57  public String getPath() {
58  return path;
59  }
60 
61  @Override
62  public String getIdUser() {
63  return idUser;
64  }
65 
66  @Override
67  public String getName() {
68  return name;
69  }
70 
71  @Override
72  public Date getDateLog() {
73  return dateLog;
74  }
75 
76  @Override
77  public String getComment() {
78  return comment;
79  }
80 
81  @Override
82  public Object getObject() {
83  return object;
84  }
85 
86  @Override
87  public int getCount() {
88  return count;
89  }
90 
91  @Override
92  public void setComment(String value) {
93  comment = value;
94  }
95 
96 
97 }
LogRegister(LogType logType, String path, String idUser, String name, Date dateLog, String comment, Object object, int count)