001: package hero.struts.forms;
002:
003: import javax.servlet.http.HttpServletRequest;
004: import org.apache.struts.action.ActionForm;
005: import org.apache.struts.action.ActionMapping;
006:
007: /**
008: * Form bean for the BnUser. This form has the following fields,
009: * with default values in square brackets:
010: * <ul>
011: * <li><b>name</b> - The name of the user. [REQUIRED]
012: * <li><b>password</b> - The password for this user. [REQUIRED]
013: * <li><b>email</b> - The email [REQUIRED]
014: * </ul>
015: *
016: * @author Miguel Valdes Faura
017: * @version $Revision: 1.1 $ $Date: 2004/07/30 14:57:57 $
018: */
019:
020: public final class UserPreferencesForm extends ActionForm {
021:
022: // =================================================== Instance Variables
023:
024: /**
025: * The startMail event
026: */
027: private boolean startMail = false;
028:
029: /**
030: * The startJabber event
031: */
032: private boolean startJabber = false;
033:
034: /**
035: * The terminateMail event
036: */
037: private boolean terminateMail = false;
038:
039: /**
040: * The terminateJabber event
041: */
042: private boolean terminateJabber = false;
043:
044: /**
045: * The addNodeMail event
046: */
047: private boolean addNodeMail = false;
048:
049: /**
050: * The addNodeJabber event
051: */
052: private boolean addNodeJabber = false;
053:
054: /**
055: * The addEdgeMail event
056: */
057: private boolean addEdgeMail = false;
058:
059: /**
060: * The addEdgeJabber event
061: */
062: private boolean addEdgeJabber = false;
063:
064: /**
065: * The setNodeStateMail event
066: */
067: private boolean nodeStateMail = false;
068:
069: /**
070: * The setNodeStateJabber event
071: */
072: private boolean nodeStateJabber = false;
073:
074: /**
075: * The setNodeDeadlineMail event
076: */
077: private boolean nodeDeadlineMail = false;
078:
079: /**
080: * The setNodeStateJabber event
081: */
082: private boolean nodeDeadlineJabber = false;
083:
084: // =========================================================== Properties
085:
086: /**
087: * Return the startMail event
088: */
089: public boolean getStartMail() {
090:
091: return (this .startMail);
092:
093: }
094:
095: /**
096: * Set the startMail event
097: *
098: */
099: public void setStartMail(boolean startMail) {
100:
101: this .startMail = startMail;
102:
103: }
104:
105: /**
106: * Return the startJabber event
107: */
108: public boolean getStartJabber() {
109:
110: return (this .startJabber);
111:
112: }
113:
114: /**
115: * Set the startJabber event
116: *
117: */
118: public void setStartJabber(boolean startJabber) {
119:
120: this .startJabber = startJabber;
121:
122: }
123:
124: /**
125: * Return the terminateMail event
126: */
127: public boolean getTerminateMail() {
128:
129: return (this .terminateMail);
130:
131: }
132:
133: /**
134: * Set the terminateMail event
135: *
136: */
137: public void setTerminateMail(boolean TerminateMail) {
138:
139: this .terminateMail = TerminateMail;
140:
141: }
142:
143: /**
144: * Return the terminateJabber event
145: */
146: public boolean getTerminateJabber() {
147:
148: return (this .terminateJabber);
149:
150: }
151:
152: /**
153: * Set the terminateJabber event
154: *
155: */
156: public void setTerminateJabber(boolean TerminateJabber) {
157:
158: this .terminateJabber = TerminateJabber;
159:
160: }
161:
162: /**
163: * Return the addNodeMail event
164: */
165: public boolean getAddNodeMail() {
166:
167: return (this .addNodeMail);
168:
169: }
170:
171: /**
172: * Set the addNodeJabber event
173: *
174: */
175: public void setAddNodeMail(boolean addNodeMail) {
176:
177: this .addNodeMail = addNodeMail;
178:
179: }
180:
181: /**
182: * Return the addNodeJabber event
183: */
184: public boolean getAddNodeJabber() {
185:
186: return (this .addNodeJabber);
187:
188: }
189:
190: /**
191: * Set the addNodeJabber event
192: *
193: */
194: public void setAddNodeJabber(boolean addNodeJabber) {
195:
196: this .addNodeJabber = addNodeJabber;
197:
198: }
199:
200: /**
201: * Return the addEdgeMail event
202: */
203: public boolean getAddEdgeMail() {
204:
205: return (this .addEdgeMail);
206:
207: }
208:
209: /**
210: * Set the addEdgeJabber event
211: *
212: */
213: public void setAddEdgeMail(boolean addEdgeMail) {
214:
215: this .addEdgeMail = addEdgeMail;
216:
217: }
218:
219: /**
220: * Return the addEdgeJabber event
221: */
222: public boolean getAddEdgeJabber() {
223:
224: return (this .addEdgeJabber);
225:
226: }
227:
228: /**
229: * Set the addEdgeJabber event
230: *
231: */
232: public void setAddEdgeJabber(boolean addEdgeJabber) {
233:
234: this .addEdgeJabber = addEdgeJabber;
235:
236: }
237:
238: /**
239: * Return the nodeStateMail event
240: */
241: public boolean getNodeStateMail() {
242:
243: return (this .nodeStateMail);
244:
245: }
246:
247: /**
248: * Set the nodeStateMail event
249: *
250: */
251: public void setNodeStateMail(boolean nodeStateMail) {
252:
253: this .nodeStateMail = nodeStateMail;
254:
255: }
256:
257: /**
258: * Return the nodeStateJabber event
259: */
260: public boolean getNodeStateJabber() {
261:
262: return (this .nodeStateJabber);
263:
264: }
265:
266: /**
267: * Set the nodeStateJabber event
268: *
269: */
270: public void setNodeStateJabber(boolean nodeStateJabber) {
271:
272: this .nodeStateJabber = nodeStateJabber;
273:
274: }
275:
276: /**
277: * Return the nodeDeadlineMail event
278: */
279: public boolean getNodeDeadlineMail() {
280:
281: return (this .nodeDeadlineMail);
282:
283: }
284:
285: /**
286: * Set the nodeDeadlineMail event
287: *
288: */
289: public void setNodeDeadlineMail(boolean nodeDeadlineMail) {
290:
291: this .nodeDeadlineMail = nodeDeadlineMail;
292:
293: }
294:
295: /**
296: * Return the nodeDeadlineJabber event
297: */
298: public boolean getNodeDeadlineJabber() {
299:
300: return (this .nodeDeadlineJabber);
301:
302: }
303:
304: /**
305: * Set the nodeDeadlineJabber event
306: *
307: */
308: public void setNodeDeadlineJabber(boolean nodeDeadlineJabber) {
309:
310: this .nodeDeadlineJabber = nodeDeadlineJabber;
311:
312: }
313:
314: // --------------------------------------------------------- Public Methods
315:
316: /**
317: * Reset all properties to their default values.
318: *
319: * @param mapping The mapping used to select this instance
320: * @param request The servlet request we are processing
321: */
322: public void reset(ActionMapping mapping, HttpServletRequest request) {
323:
324: this .startMail = false;
325: this .startJabber = false;
326: this .terminateMail = false;
327: this .terminateJabber = false;
328: this .addNodeMail = false;
329: this .addNodeJabber = false;
330: this .addEdgeMail = false;
331: this .addEdgeJabber = false;
332: this .nodeStateMail = false;
333: this .nodeStateJabber = false;
334: this .nodeDeadlineMail = false;
335: this .nodeDeadlineJabber = false;
336: }
337:
338: }
|