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  
27  /**
28   * This is the LoginForm Struts Form. It is used by Login form.
29   *
30   * @author ready
31   */
32  public class ReportForm extends ValidatorForm {
33      /**
34       *
35       */
36      private static final long serialVersionUID = 1L;
37      private String action;
38      // String id;
39      private Integer id;
40      private String name;
41      private String nameKey;
42      private String description;
43      private Integer dataType;
44      private Integer reportType;
45      private transient org.apache.struts.upload.FormFile fileDataFile;
46      private String fileData;
47      private String className;
48  
49      public void reset(ActionMapping mapping, HttpServletRequest request) {
50          action = null;
51          id = null;
52          name = null;
53          nameKey = null;
54          description = null;
55          dataType = null;
56          reportType = null;
57          fileDataFile = null;
58          fileData = null;
59          className = null;
60      }
61  
62      public ActionErrors validate(ActionMapping mapping,
63                                   HttpServletRequest request) {
64          ActionErrors errors = super.validate(mapping, request);
65  
66          return errors;
67      }
68  
69      public String getAction() {
70          return action;
71      }
72  
73      public void setAction(String action) {
74          this.action = action;
75      }
76  
77      public String getClassName() {
78          return className;
79      }
80  
81      public void setClassName(String className) {
82          this.className = className;
83      }
84  
85      public Integer getDataType() {
86          return dataType;
87      }
88  
89      public void setDataType(Integer dataType) {
90          this.dataType = dataType;
91      }
92  
93      public String getDescription() {
94          return description;
95      }
96  
97      public void setDescription(String description) {
98          this.description = description;
99      }
100 
101     public org.apache.struts.upload.FormFile getFileDataFile() {
102         return fileDataFile;
103     }
104 
105     public void setFileDataFile(org.apache.struts.upload.FormFile fileDataFile) {
106         this.fileDataFile = fileDataFile;
107     }
108 
109     public String getFileData() {
110         return fileData;
111     }
112 
113     public void setFileData(String fileData) {
114         this.fileData = fileData;
115     }
116 
117     public String getName() {
118         return name;
119     }
120 
121     public void setName(String name) {
122         this.name = name;
123     }
124 
125     public String getNameKey() {
126         return nameKey;
127     }
128 
129     public void setNameKey(String nameKey) {
130         this.nameKey = nameKey;
131     }
132 
133 
134     public Integer getId() {
135         return id;
136     }
137 
138     public void setId(Integer id) {
139         this.id = id;
140     }
141 
142 }