01: // Copyright 2006 The Apache Software Foundation
02: //
03: // Licensed under the Apache License, Version 2.0 (the "License");
04: // you may not use this file except in compliance with the License.
05: // You may obtain a copy of the License at
06: //
07: // http://www.apache.org/licenses/LICENSE-2.0
08: //
09: // Unless required by applicable law or agreed to in writing, software
10: // distributed under the License is distributed on an "AS IS" BASIS,
11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: // See the License for the specific language governing permissions and
13: // limitations under the License.
14:
15: package org.apache.tapestry.integration.app1.data;
16:
17: import java.io.Serializable;
18:
19: import org.apache.tapestry.beaneditor.Validate;
20:
21: public class IncidentData implements Serializable {
22: private static final long serialVersionUID = -321606932140181054L;
23:
24: private String _email;
25:
26: private String _message;
27:
28: private boolean _urgent;
29:
30: private String _operatingSystem;
31:
32: private int _hours;
33:
34: private Department _department;
35:
36: public String getEmail() {
37: return _email;
38: }
39:
40: public void setEmail(String email) {
41: _email = email;
42: }
43:
44: public String getMessage() {
45: return _message;
46: }
47:
48: @Validate("required")
49: public void setMessage(String message) {
50: _message = message;
51: }
52:
53: public boolean isUrgent() {
54: return _urgent;
55: }
56:
57: public void setUrgent(boolean urgent) {
58: _urgent = urgent;
59: }
60:
61: public String getOperatingSystem() {
62: return _operatingSystem;
63: }
64:
65: public void setOperatingSystem(String os) {
66: _operatingSystem = os;
67: }
68:
69: public int getHours() {
70: return _hours;
71: }
72:
73: public void setHours(int hours) {
74: _hours = hours;
75: }
76:
77: public Department getDepartment() {
78: return _department;
79: }
80:
81: public void setDepartment(Department department) {
82: _department = department;
83: }
84:
85: }
|