KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > clipbuilder > html > bean > ConfigureBean


1 package org.jahia.clipbuilder.html.bean;
2
3 import org.jahia.clipbuilder.html.util.*;
4
5 /**
6  * Bean implementation of ConfigureInterface.
7  *
8  *@author Tlili Khaled
9  */

10 public class ConfigureBean extends Bean implements ConfigureInterface {
11     private String JavaDoc proxy;
12     private String JavaDoc enableSSL;
13     private String JavaDoc enableJavascript;
14     private String JavaDoc client;
15     private String JavaDoc htmlDocument;
16     private String JavaDoc enableCSS;
17     private String JavaDoc browserJavascriptEvent;
18     private String JavaDoc browserJavascriptCode;
19     private String JavaDoc portletEnableSSL;
20     private String JavaDoc portletContinualClipping;
21     private String JavaDoc portletCacheExpiration;
22     private String JavaDoc portletCacheContext;
23
24
25
26     /**
27      * Constructor for the ConfigureBean object
28      */

29     public ConfigureBean() {
30         proxy = "";
31         enableSSL = "on";
32         client = "1";
33         htmlDocument = "0";
34         enableCSS = "on";
35         enableJavascript = "";
36         browserJavascriptCode = "2";
37         browserJavascriptEvent = "2";
38         portletEnableSSL = "";
39         portletContinualClipping = "0";
40         portletCacheExpiration = "6000";
41     }
42
43
44     /**
45      * Sets the PortletCacheContext attribute of the ConfigureBean object
46      *
47      *@param portletCacheContext The new PortletCacheContext value
48      */

49     public void setPortletCacheContext(String JavaDoc portletCacheContext) {
50         this.portletCacheContext = portletCacheContext;
51     }
52
53
54
55     /**
56      * Sets the HtmlDocument attribute of the ConfigureForm object
57      *
58      *@param htmlDocument The new HtmlDocument value
59      */

60     public void setHtmlDocument(String JavaDoc htmlDocument) {
61         this.htmlDocument = htmlDocument;
62     }
63
64
65     /**
66      * Sets the Proxy attribute of the ConfigureForm object
67      *
68      *@param proxy The new Proxy value
69      */

70     public void setProxy(String JavaDoc proxy) {
71         this.proxy = proxy;
72     }
73
74
75     /**
76      * Sets the Client attribute of the ConfigureForm object
77      *
78      *@param client The new Client value
79      */

80     public void setClient(String JavaDoc client) {
81         this.client = client;
82     }
83
84
85     /**
86      * Sets the EnableSSL attribute of the ConfigureForm object
87      *
88      *@param enableSSL The new EnableSSL value
89      */

90     public void setEnableSSL(String JavaDoc enableSSL) {
91         this.enableSSL = enableSSL;
92     }
93
94
95     /**
96      * Sets the EnableJavascript attribute of the ConfigureForm object
97      *
98      *@param enableJavascript The new EnableJavascript value
99      */

100     public void setEnableJavascript(String JavaDoc enableJavascript) {
101         this.enableJavascript = enableJavascript;
102     }
103
104
105     /**
106      * Sets the EnableCSS attribute of the ConfigureBean object
107      *
108      *@param enableCSS The new EnableCSS value
109      */

110     public void setEnableCSS(String JavaDoc enableCSS) {
111         this.enableCSS = enableCSS;
112     }
113
114
115     /**
116      * Sets the BrowserJavascriptEvent attribute of the ConfigureBean object
117      *
118      *@param browserJavascriptEvent The new BrowserJavascriptEvent value
119      */

120     public void setBrowserJavascriptEvent(String JavaDoc browserJavascriptEvent) {
121         this.browserJavascriptEvent = browserJavascriptEvent;
122     }
123
124
125     /**
126      * Sets the BrowserJavascriptCode attribute of the ConfigureBean object
127      *
128      *@param browserJavascriptCode The new BrowserJavascriptCode value
129      */

130     public void setBrowserJavascriptCode(String JavaDoc browserJavascriptCode) {
131         this.browserJavascriptCode = browserJavascriptCode;
132     }
133
134
135     /**
136      * Sets the PortletContinualClipping attribute of the ConfigureBean object
137      *
138      *@param portletContinualClipping The new PortletContinualClipping value
139      */

140     public void setPortletContinualClipping(String JavaDoc portletContinualClipping) {
141         this.portletContinualClipping = portletContinualClipping;
142     }
143
144
145     /**
146      * Sets the PortletEnableSSL attribute of the ConfigureBean object
147      *
148      *@param portletEnableSSL The new PortletEnableSSL value
149      */

150     public void setPortletEnableSSL(String JavaDoc portletEnableSSL) {
151         this.portletEnableSSL = portletEnableSSL;
152     }
153
154
155     /**
156      * Sets the PortletCacheExpiration attribute of the ConfigureBean object
157      *
158      *@param portletCacheExpiration The new PortletCacheExpiration value
159      */

160     public void setPortletCacheExpiration(String JavaDoc portletCacheExpiration) {
161         this.portletCacheExpiration = portletCacheExpiration;
162     }
163
164
165     /**
166      * Gets the PortletCacheContext attribute of the ConfigureBean object
167      *
168      *@return The PortletCacheContext value
169      */

170     public String JavaDoc getPortletCacheContext() {
171         return portletCacheContext;
172     }
173
174
175     /**
176      * Gets the Proxy attribute of the ConfigureForm object
177      *
178      *@return The Proxy value
179      */

180     public String JavaDoc getProxy() {
181         return proxy;
182     }
183
184
185     /**
186      * Gets the Client attribute of the ConfigureForm object
187      *
188      *@return The Client value
189      */

190     public String JavaDoc getClient() {
191         return client;
192     }
193
194
195     /**
196      * Gets the EnableSSL attribute of the ConfigureForm object
197      *
198      *@return The EnableSSL value
199      */

200     public String JavaDoc getEnableSSL() {
201         return enableSSL;
202     }
203
204
205     /**
206      * Gets the EnableJavascript attribute of the ConfigureForm object
207      *
208      *@return The EnableJavascript value
209      */

210     public String JavaDoc getEnableJavascript() {
211         return enableJavascript;
212     }
213
214
215     /**
216      * Gets the HtmlDocument attribute of the ConfigureForm object
217      *
218      *@return The HtmlDocument value
219      */

220     public String JavaDoc getHtmlDocument() {
221         return htmlDocument;
222     }
223
224
225     /**
226      * Gets the EnableCSS attribute of the ConfigureBean object
227      *
228      *@return The EnableCSS value
229      */

230     public String JavaDoc getEnableCSS() {
231         return enableCSS;
232     }
233
234
235     /**
236      * Gets the BrowserJavascriptEvent attribute of the ConfigureBean object
237      *
238      *@return The BrowserJavascriptEvent value
239      */

240     public String JavaDoc getBrowserJavascriptEvent() {
241         return browserJavascriptEvent;
242     }
243
244
245     /**
246      * Gets the BrowserJavascriptCode attribute of the ConfigureBean object
247      *
248      *@return The BrowserJavascriptCode value
249      */

250     public String JavaDoc getBrowserJavascriptCode() {
251         return browserJavascriptCode;
252     }
253
254
255     /**
256      * Gets the PortletContinualClipping attribute of the ConfigureBean object
257      *
258      *@return The PortletContinualClipping value
259      */

260     public String JavaDoc getPortletContinualClipping() {
261         return portletContinualClipping;
262     }
263
264
265     /**
266      * Gets the PortletEnableSSL attribute of the ConfigureBean object
267      *
268      *@return The PortletEnableSSL value
269      */

270     public String JavaDoc getPortletEnableSSL() {
271         return portletEnableSSL;
272     }
273
274
275     /**
276      * Gets the PortletCacheExpiration attribute of the ConfigureBean object
277      *
278      *@return The PortletCacheExpiration value
279      */

280     public String JavaDoc getPortletCacheExpiration() {
281         return portletCacheExpiration;
282     }
283
284
285     /**
286      * Description of the Method
287      *
288      *@param configuration Description of Parameter
289      */

290     public void load(ConfigureInterface configuration) {
291         ClassUtilities.synchronize(configuration, this);
292     }
293
294 }
295
Popular Tags