Source code: nectar/view/ForumView.java
1 /*
2 Copyright (C) 2003 Kai Schutte
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 in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
18 * ForumView.java
19 *
20 * Created on April 27, 2003, 10:57 AM
21 */
22
23 package nectar.view;
24
25 import nectar.record.ForumRecord;
26
27 /**
28 *
29 * @author Kai Schutte skander@skander.com
30 */
31 public class ForumView extends RecordView implements CommentableView {
32
33 /** Creates a new instance of ForumView */
34 public ForumView(ForumRecord record) {
35 super(record);
36 }
37
38 public String getTitle() {
39 return ((ForumRecord)record).getTitle();
40 }
41
42 public String getDescription() {
43 return ((ForumRecord)record).getDescription();
44 }
45
46 public String getPermissionGuest() {
47 return ((ForumRecord)record).getPermissionGuest();
48 }
49
50 public String getPermissionUser() {
51 return ((ForumRecord)record).getPermissionUser();
52 }
53
54 public String getPermissionAdmin() {
55 return ((ForumRecord)record).getPermissionAdmin();
56 }
57
58 public String getPermissionModerator() {
59 return ((ForumRecord)record).getPermissionModerator();
60 }
61 }