KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > javabb > vh > ForumConfig


1 package org.javabb.vh;
2
3 import org.javabb.infra.ConfigurationFactory;
4
5 /*
6  * Copyright 2004 JavaFree.org
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */

20
21 /**
22  * Class utilized to Helper the Velocity to see to configurations
23  * $Id: ForumConfig.java,v 1.11.6.1.2.2 2006/04/17 17:46:59 daltoncamargo Exp $
24  * @author Dalton Camargo - <a HREF="mailto:dalton@javabb.org">dalton@javabb.org </a> <br>
25  */

26 public class ForumConfig {
27     
28     /**
29      * @return Returns the domain.
30      */

31     public String JavaDoc getDomain() {
32         return ConfigurationFactory.getConf().domain;
33     }
34     /**
35      * @return Returns the forumName.
36      */

37     public String JavaDoc getForumName() {
38         return ConfigurationFactory.getConf().forumName;
39     }
40     /**
41      * @return Returns the lang.
42      */

43     public String JavaDoc getLang() {
44         return ConfigurationFactory.getConf().lang;
45     }
46     /**
47      * @return Returns the theme.
48      */

49     public String JavaDoc getTheme() {
50         return ConfigurationFactory.getConf().theme;
51     }
52     /**
53      * @return Returns the dateFormat.
54      */

55     public String JavaDoc getDateFormat() {
56         return ConfigurationFactory.getConf().dateFormat;
57     }
58     /**
59      * @return Returns the postsPage.
60      */

61     public String JavaDoc getPostsPage() {
62         return ConfigurationFactory.getConf().postsPage.toString();
63     }
64     /**
65      * @return Returns the timeFormat.
66      */

67     public String JavaDoc getTimeFormat() {
68         return ConfigurationFactory.getConf().timeFormat;
69     }
70     /**
71      * @return Returns the topicsPage.
72      */

73     public String JavaDoc getTopicsPage() {
74         return ConfigurationFactory.getConf().topicsPage.toString();
75     }
76     /**
77      * @return Returns the buttonLang.
78      */

79     public String JavaDoc getButtonLang() {
80         return ConfigurationFactory.getConf().buttonLang.toString();
81     }
82     /**
83      * @return Returns the notifyTopic.
84      */

85     public String JavaDoc getNotifyTopic() {
86         return ConfigurationFactory.getConf().emailNofityTopic.toString();
87     }
88     /**
89      * @return Returns the smtpHost.
90      */

91     public String JavaDoc getSmtpHost() {
92         return ConfigurationFactory.getConf().smtpServerHost;
93     }
94     /**
95      * @return Returns the smtpPassword.
96      */

97     public String JavaDoc getSmtpPassword() {
98         return ConfigurationFactory.getConf().smtpServerUserPassword;
99     }
100     /**
101      * @return Returns the smtpUser.
102      */

103     public String JavaDoc getSmtpUser() {
104         return ConfigurationFactory.getConf().smtpServerUserName;
105     }
106     /**
107      * @return Returns the adminMail.
108      */

109     public String JavaDoc getAdminMail() {
110         return ConfigurationFactory.getConf().adminMail;
111     }
112     /**
113      * @return Returns the floodControl.
114      */

115     public String JavaDoc getFloodControl() {
116         return ConfigurationFactory.getConf().floodControl;
117     }
118     
119     public String JavaDoc getForumAnnounceText() {
120         return ConfigurationFactory.getConf().forumAnnounceText;
121     }
122 }
123
Popular Tags