View Javadoc
1   /*
2    * This software was designed and created by Jason Carroll.
3    * Copyright (c) 2002, 2003, 2004 Jason Carroll.
4    * The author can be reached at jcarroll@cowsultants.com
5    * ITracker website: http://www.cowsultants.com
6    * ITracker forums: http://www.cowsultants.com/phpBB/index.php
7    *
8    * This program is free software; you can redistribute it and/or modify
9    * it only under the terms of the GNU General Public License as published by
10   * the Free Software Foundation; either version 2 of the License, or
11   * (at your option) any later version.
12   *
13   * This program is distributed in the hope that it will be useful,
14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   * GNU General Public License for more details.
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   * This is the ProjectScriptForm Struts Form. It is used by the definition 'projectScriptForm'.
30   *
31   * @author ready
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 }