01: /*
02: * Lucane - a collaborative platform
03: * Copyright (C) 2004 Jonathan Riboux <jonathan.riboux@wanadoo.Fr>
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation; either
08: * version 2.1 of the License, or (at your option) any later version.
09: *
10: * This library 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 GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library; if not, write to the Free Software
17: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18: */
19:
20: package org.lucane.applications.todolist;
21:
22: import java.io.Serializable;
23:
24: public class Todolist implements Serializable {
25: private int id;
26: private String userName;
27: private String name;
28: private String comment;
29: private boolean readOnly;
30:
31: public Todolist(String userName, String name, String comment) {
32: this (-1, userName, name, comment);
33: }
34:
35: public Todolist(int id, String userName, String name, String comment) {
36: this (id, userName, name, comment, false);
37: }
38:
39: public Todolist(int id, String userName, String name,
40: String comment, boolean readOnly) {
41: this .id = id;
42: this .userName = userName;
43: this .name = name;
44: this .comment = comment;
45: this .readOnly = readOnly;
46: }
47:
48: public int getId() {
49: return id;
50: }
51:
52: public String getUserName() {
53: return userName;
54: }
55:
56: public String getComment() {
57: return comment;
58: }
59:
60: public String getName() {
61: return name;
62: }
63:
64: public boolean isReadOnly() {
65: return readOnly;
66: }
67:
68: public void setId(int i) {
69: id = i;
70: }
71:
72: public void setUserName(String string) {
73: userName = string;
74: }
75:
76: public void setComment(String string) {
77: comment = string;
78: }
79:
80: public void setName(String string) {
81: name = string;
82: }
83:
84: public String toString() {
85: return getName();
86: }
87: }
|