KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jaspersoft > jasperserver > api > common > domain > impl > LogEventImpl


1 /*
2  * Copyright (C) 2006 JasperSoft http://www.jaspersoft.com
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed WITHOUT ANY WARRANTY; and without the
10  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
15  * or write to:
16  *
17  * Free Software Foundation, Inc.,
18  * 59 Temple Place - Suite 330,
19  * Boston, MA USA 02111-1307
20  */

21 package com.jaspersoft.jasperserver.api.common.domain.impl;
22
23 import java.util.Date JavaDoc;
24 import java.io.Serializable JavaDoc;
25
26 import com.jaspersoft.jasperserver.api.common.domain.LogEvent;
27
28 /**
29  * @author Lucian Chirita (lucianc@users.sourceforge.net)
30  * @version $Id: LogEventImpl.java 3766 2006-06-20 16:36:06Z inedelcu $
31  */

32 public class LogEventImpl implements LogEvent, Serializable JavaDoc {
33
34     private long id;
35     private Date JavaDoc occurrenceDate;
36     private byte type;
37     private String JavaDoc username;
38     private String JavaDoc component;
39     private String JavaDoc messageCode;
40     private String JavaDoc resourceURI;
41     private String JavaDoc text;
42     private byte[] data;
43     private byte state;
44     
45     public LogEventImpl() {
46     }
47
48     public String JavaDoc getComponent() {
49         return component;
50     }
51
52     public void setComponent(String JavaDoc component) {
53         this.component = component;
54     }
55
56     public byte[] getData() {
57         return data;
58     }
59
60     public void setData(byte[] data) {
61         this.data = data;
62     }
63
64     public long getId() {
65         return id;
66     }
67
68     public void setId(long id) {
69         this.id = id;
70     }
71
72     public String JavaDoc getMessageCode() {
73         return messageCode;
74     }
75
76     public void setMessageCode(String JavaDoc messageCode) {
77         this.messageCode = messageCode;
78     }
79
80     public Date JavaDoc getOccurrenceDate() {
81         return occurrenceDate;
82     }
83
84     public void setOccurrenceDate(Date JavaDoc occurrenceDate) {
85         this.occurrenceDate = occurrenceDate;
86     }
87
88     public String JavaDoc getResourceURI() {
89         return resourceURI;
90     }
91
92     public void setResourceURI(String JavaDoc resourceURI) {
93         this.resourceURI = resourceURI;
94     }
95
96     public String JavaDoc getText() {
97         return text;
98     }
99
100     public void setText(String JavaDoc text) {
101         this.text = text;
102     }
103
104     public byte getType() {
105         return type;
106     }
107
108     public void setType(byte type) {
109         this.type = type;
110     }
111
112     public String JavaDoc getUsername() {
113         return username;
114     }
115
116     public void setUsername(String JavaDoc username) {
117         this.username = username;
118     }
119
120     public byte getState()
121     {
122         return state;
123     }
124
125     public void setState(byte state)
126     {
127         this.state = state;
128     }
129 }
130
Popular Tags