01: /*
02: Very Quick Wiki - WikiWikiWeb clone
03: Copyright (C) 2001-2002 Gareth Cronin
04:
05: This program is free software; you can redistribute it and/or modify
06: it under the terms of the latest version of the GNU Lesser General
07: Public License as published by the Free Software Foundation;
08:
09: 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 Lesser General Public License for more details.
13:
14: You should have received a copy of the GNU Lesser General Public License
15: along with this program (gpl.txt); if not, write to the Free Software
16: Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: */
18: package vqwiki.servlets.beans;
19:
20: import java.util.ArrayList;
21: import java.util.List;
22:
23: /**
24: * Bean containing results for a statistic page
25: *
26: * This class was created on 09:34:30 19.07.2003
27: *
28: * @author $Author: wrh2 $
29: */
30: public class StatisticsVWikiBean {
31:
32: private List vwiki = new ArrayList();
33:
34: /**
35: * @return
36: */
37: public String getNumwikis() {
38: if (vwiki == null)
39: return "0";
40: return String.valueOf(vwiki.size());
41: }
42:
43: /**
44: * @return
45: */
46: public String getShowwikis() {
47: if (vwiki == null)
48: return "true";
49: if (vwiki.size() == 1)
50: return "false";
51: return "true";
52: }
53:
54: /**
55: * @return
56: */
57: public List getVwiki() {
58: return vwiki;
59: }
60:
61: /**
62: * @param list
63: */
64: public void setVwiki(List list) {
65: vwiki = list;
66: }
67: }
68:
69: /*
70: * Log:
71: *
72: * $Log$
73: * Revision 1.3 2006/04/19 23:55:16 wrh2
74: * Coding style updates (VQW-73).
75: *
76: * Revision 1.2 2003/10/05 05:07:32 garethc
77: * fixes and admin file encoding option + merge with contributions
78: *
79: * Revision 1.1 2003/07/19 13:22:59 mrgadget4711
80: * ADD: Statistic capabilities
81: *
82: * ------------END------------
83: */
|