KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > za > org > coefficient > modules > project > ProjectBrowse


1 /*
2  * Coefficient - facilitates project based collaboration
3  * Copyright (C) 2003, Dylan Etkin, CSIR icomtek
4  * PO Box 395
5  * Pretoria 0001, RSA
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
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 za.org.coefficient.modules.project;
21
22 import org.apache.commons.lang.StringUtils;
23
24 import za.org.coefficient.interfaces.CoefficientContext;
25
26 /**
27  * @pojo2ejb.class
28  * name="ProjectBrowse"
29  * jndi-prefix="za/org/coefficient/navigation/"
30  * interface-extends="za.org.coefficient.interfaces.Module"
31  * interface-local-extends="za.org.coefficient.interfaces.ModuleLocal"
32  *
33  * @web.resource-env-ref
34  * name="za/org/coefficient/navigation/ProjectBrowse"
35  * type="za.org.coefficient.modules.project.ProjectBrowse"
36  * @web.resource-env-ref
37  * name="ProjectBrowse"
38  * type="za.org.coefficient.modules.project.ProjectBrowse"
39  */

40 public class ProjectBrowse extends BaseProjectBrowse {
41     //~ Methods ================================================================
42

43     public String JavaDoc getMainMethod() {
44         return "viewProjects";
45     }
46
47     public String JavaDoc getModuleDescription() {
48         return "This is the main " + ProjectConstants.PROJECT_NAME
49             + " search module that will allow a user to see which "
50             + ProjectConstants.PROJECT_NAME + "s are in existence";
51     }
52
53     public String JavaDoc getModuleDisplayName() {
54         return StringUtils.capitalise(ProjectConstants.PROJECT_NAME) + "s";
55     }
56
57     public CoefficientContext viewProjects(CoefficientContext ctx) throws Exception JavaDoc {
58         return baseViewProjects(ctx, true);
59     }
60 }
61
Popular Tags