001: /*
002: * Copyright (c) JForum Team
003: * All rights reserved.
004: *
005: * Redistribution and use in source and binary forms,
006: * with or without modification, are permitted provided
007: * that the following conditions are met:
008: *
009: * 1) Redistributions of source code must retain the above
010: * copyright notice, this list of conditions and the
011: * following disclaimer.
012: * 2) Redistributions in binary form must reproduce the
013: * above copyright notice, this list of conditions and
014: * the following disclaimer in the documentation and/or
015: * other materials provided with the distribution.
016: * 3) Neither the name of "Rafael Steil" nor
017: * the names of its contributors may be used to endorse
018: * or promote products derived from this software without
019: * specific prior written permission.
020: *
021: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
022: * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
023: * EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
024: * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
025: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR
026: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
027: * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
028: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
029: * EXEMPLARY, OR CONSEQUENTIAL DAMAGES
030: * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
031: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
032: * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
033: * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
034: * IN CONTRACT, STRICT LIABILITY, OR TORT
035: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
036: * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
037: * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
038: *
039: * Created on 08/07/2007 11:25:54
040: * The JForum Project
041: * http://www.jforum.net
042: */
043: package net.jforum.entities;
044:
045: import java.util.Date;
046:
047: /**
048: * @author Rafael Steil
049: * @version $Id: ModerationLog.java,v 1.3 2007/07/10 01:04:31 rafaelsteil Exp $
050: */
051: public class ModerationLog {
052: private int id;
053: private int postId;
054: private int topicId;
055: private User user;
056: private User posterUser = new User();
057: private String description;
058: private String originalMessage;
059: private Date date;
060: private int type;
061:
062: /**
063: * @return the id
064: */
065: public int getId() {
066: return this .id;
067: }
068:
069: /**
070: * @return the userId
071: */
072: public User getUser() {
073: return this .user;
074: }
075:
076: /**
077: * @return the description
078: */
079: public String getDescription() {
080: return this .description;
081: }
082:
083: /**
084: * @return the originalMessage
085: */
086: public String getOriginalMessage() {
087: return this .originalMessage;
088: }
089:
090: /**
091: * @return the date
092: */
093: public Date getDate() {
094: return this .date;
095: }
096:
097: /**
098: * @return the type
099: */
100: public int getType() {
101: return this .type;
102: }
103:
104: /**
105: * @param id the id to set
106: */
107: public void setId(int id) {
108: this .id = id;
109: }
110:
111: /**
112: * @param userId the userId to set
113: */
114: public void setUser(User user) {
115: this .user = user;
116: }
117:
118: /**
119: * @param description the description to set
120: */
121: public void setDescription(String description) {
122: this .description = description;
123: }
124:
125: /**
126: * @param originalMessage the originalMessage to set
127: */
128: public void setOriginalMessage(String originalMessage) {
129: this .originalMessage = originalMessage;
130: }
131:
132: /**
133: * @param date the date to set
134: */
135: public void setDate(Date date) {
136: this .date = date;
137: }
138:
139: /**
140: * @param type the type to set
141: */
142: public void setType(int type) {
143: this .type = type;
144: }
145:
146: /**
147: * @return the postId
148: */
149: public int getPostId() {
150: return this .postId;
151: }
152:
153: /**
154: * @return the topicId
155: */
156: public int getTopicId() {
157: return this .topicId;
158: }
159:
160: /**
161: * @param postId the postId to set
162: */
163: public void setPostId(int postId) {
164: this .postId = postId;
165: }
166:
167: /**
168: * @param topicId the topicId to set
169: */
170: public void setTopicId(int topicId) {
171: this .topicId = topicId;
172: }
173:
174: /**
175: * @return the posterUser
176: */
177: public User getPosterUser() {
178: return this .posterUser;
179: }
180:
181: /**
182: * @param posterUser the posterUser to set
183: */
184: public void setPosterUser(User posterUser) {
185: this.posterUser = posterUser;
186: }
187: }
|