1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.itracker.web.forms;
20
21 import org.apache.struts.action.ActionErrors;
22 import org.apache.struts.action.ActionMapping;
23 import org.apache.struts.validator.ValidatorForm;
24
25 import javax.servlet.http.HttpServletRequest;
26 import java.util.HashMap;
27
28
29
30
31
32
33 public class ProjectScriptForm extends ValidatorForm {
34
35
36
37 private static final long serialVersionUID = 1L;
38 private String action;
39 private Integer delId;
40 private Integer projectId;
41 private HashMap<String, String> id = new HashMap<>();
42 private HashMap<String, String> fieldId = new HashMap<>();
43 private HashMap<String, String> priority = new HashMap<>();
44 private HashMap<String, String> scriptItems = new HashMap<>();
45
46 public void reset(ActionMapping mapping, HttpServletRequest request) {
47 action = null;
48 delId = null;
49 projectId = null;
50 }
51
52 public ActionErrors validate(ActionMapping mapping,
53 HttpServletRequest request) {
54 ActionErrors errors = super.validate(mapping, request);
55
56 return errors;
57 }
58
59 public HashMap<String, String> getFieldId() {
60 return fieldId;
61 }
62
63 public void setFieldId(HashMap<String, String> fieldId) {
64 this.fieldId = fieldId;
65 }
66
67 public void setId(Integer delId) {
68 this.delId = delId;
69 }
70
71 public HashMap<String, String> getId() {
72 return id;
73 }
74
75 public void setId(HashMap<String, String> id) {
76 this.id = id;
77 }
78
79 public Integer getProjectId() {
80 return projectId;
81 }
82
83 public void setProjectId(Integer projectId) {
84 this.projectId = projectId;
85 }
86
87 public HashMap<String, String> getPriority() {
88 return priority;
89 }
90
91 public void setPriority(HashMap<String, String> priority) {
92 this.priority = priority;
93 }
94
95
96 public HashMap<String, String> getScriptItems() {
97 return scriptItems;
98 }
99
100 public void setScriptItems(HashMap<String, String> scriptItems) {
101 this.scriptItems = scriptItems;
102 }
103 }