KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > dotmarketing > portlets > organization > struts > OrganizationForm


1 package com.dotmarketing.portlets.organization.struts;
2
3 import javax.servlet.http.HttpServletRequest JavaDoc;
4
5 import org.apache.struts.action.ActionErrors;
6 import org.apache.struts.action.ActionMapping;
7 import org.apache.struts.validator.ValidatorForm;
8
9 import com.liferay.portal.util.Constants;
10
11 public class OrganizationForm extends ValidatorForm {
12
13     private static final long serialVersionUID = 1L;
14
15     /** identifier field */
16     private long inode;
17     private String JavaDoc title; //persistent
18
private String JavaDoc ceoName; //persistent
19
private String JavaDoc partnerUrl; //persistent
20
private String JavaDoc partnerKey; //persistent
21
private long partnerLogo; //persistent
22
private String JavaDoc street1; //persistent
23
private String JavaDoc street2; //persistent
24
private String JavaDoc city; //persistent
25
private String JavaDoc state; //persistent
26
private String JavaDoc zip; //persistent
27
private String JavaDoc phone; //persistent
28
private String JavaDoc fax; //persistent
29
private String JavaDoc country; //persistent
30
private boolean system; //persistent
31
private long parentSystem;
32     private String JavaDoc[] categories;
33     private String JavaDoc keywords;
34     private long parentOrganization;
35     private long logoImage;
36     private String JavaDoc selectedlogoImage;
37     
38
39     public OrganizationForm() {
40         parentSystem = 0;
41         logoImage = 0;
42         selectedlogoImage = "";
43     }
44
45     public OrganizationForm(String JavaDoc title, String JavaDoc ceoName, String JavaDoc partnerUrl, String JavaDoc partnerKey, long partnerLogo, String JavaDoc street1, String JavaDoc street2, String JavaDoc city, String JavaDoc state, String JavaDoc zip, String JavaDoc phone, String JavaDoc fax, String JavaDoc country, boolean system) {
46         this.title = title;
47         this.ceoName = ceoName;
48         this.partnerUrl = partnerUrl;
49         this.partnerKey = partnerKey;
50         this.partnerLogo = partnerLogo;
51         this.street1 = street1;
52         this.street2 = street2;
53         this.city = city;
54         this.state = state;
55         this.zip = zip;
56         this.phone = phone;
57         this.fax = fax;
58         this.country = country;
59         this.system = system;
60     }
61     public ActionErrors validate(ActionMapping mapping, HttpServletRequest JavaDoc request) {
62         if(request.getParameter("cmd")!=null && request.getParameter("cmd").equals(Constants.ADD)) {
63             return super.validate(mapping, request);
64         }
65         return null;
66     }
67
68
69     /**
70      * @return Returns the inode.
71      */

72     public long getInode() {
73         return inode;
74     }
75     /**
76      * @param inode The inode to set.
77      */

78     public void setInode(long inode) {
79         this.inode = inode;
80     }
81
82     public String JavaDoc getTitle() {
83         return this.title;
84     }
85
86     public void setTitle(String JavaDoc title) {
87         this.title = title;
88     }
89     public String JavaDoc getCeoName() {
90         return this.ceoName;
91     }
92
93     public void setCeoName(String JavaDoc ceoName) {
94         this.ceoName = ceoName;
95     }
96     public String JavaDoc getPartnerUrl() {
97         return this.partnerUrl;
98     }
99
100     public void setPartnerUrl(String JavaDoc partnerUrl) {
101         this.partnerUrl = partnerUrl;
102     }
103     public String JavaDoc getPartnerKey() {
104         return this.partnerKey;
105     }
106
107     public void setPartnerKey(String JavaDoc partnerKey) {
108         this.partnerKey = partnerKey;
109     }
110     public long getPartnerLogo() {
111         return this.partnerLogo;
112     }
113
114     public void setPartnerLogo(long partnerLogo) {
115         this.partnerLogo = partnerLogo;
116     }
117     public String JavaDoc getStreet1() {
118         return this.street1;
119     }
120
121     public void setStreet1(String JavaDoc street1) {
122         this.street1 = street1;
123     }
124     public String JavaDoc getStreet2() {
125         return this.street2;
126     }
127
128     public void setStreet2(String JavaDoc street2) {
129         this.street2 = street2;
130     }
131     public String JavaDoc getCity() {
132         return this.city;
133     }
134
135     public void setCity(String JavaDoc city) {
136         this.city = city;
137     }
138     public String JavaDoc getState() {
139         return this.state;
140     }
141
142     public void setState(String JavaDoc state) {
143         this.state = state;
144     }
145     public String JavaDoc getZip() {
146         return this.zip;
147     }
148
149     public void setZip(String JavaDoc zip) {
150         this.zip = zip;
151     }
152     public String JavaDoc getPhone() {
153         return this.phone;
154     }
155
156     public void setPhone(String JavaDoc phone) {
157         this.phone = phone;
158     }
159     public String JavaDoc getFax() {
160         return this.fax;
161     }
162
163     public void setFax(String JavaDoc fax) {
164         this.fax = fax;
165     }
166     public String JavaDoc getCountry() {
167         return this.country;
168     }
169
170     public void setCountry(String JavaDoc country) {
171         this.country = country;
172     }
173     /**
174      * @return Returns the isSystem.
175      */

176     public boolean isSystem() {
177         return system;
178     }
179     /**
180      * @param isSystem The isSystem to set.
181      */

182     public void setSystem(boolean system) {
183         this.system = system;
184     }
185     
186     /**
187      * @return Returns the parentSystem.
188      */

189     public long getParentSystem() {
190         return parentSystem;
191     }
192     /**
193      * @param parentSystem The parentSystem to set.
194      */

195     public void setParentSystem(long parentSystem) {
196         this.parentSystem = parentSystem;
197     }
198     
199     /**
200      * @return Returns the categories.
201      */

202     public String JavaDoc[] getCategories() {
203         return categories;
204     }
205     /**
206      * @param categories The categories to set.
207      */

208     public void setCategories(String JavaDoc[] categories) {
209         this.categories = categories;
210     }
211     
212     /**
213      * @return Returns the keywords.
214      */

215     public String JavaDoc getKeywords() {
216         return keywords;
217     }
218     /**
219      * @param keywords The keywords to set.
220      */

221     public void setKeywords(String JavaDoc keywords) {
222         this.keywords = keywords;
223     }
224     
225     /**
226      * @return Returns the parentOrganization.
227      */

228     public long getParentOrganization() {
229         return parentOrganization;
230     }
231     /**
232      * @param parentOrganization The parentOrganization to set.
233      */

234     public void setParentOrganization(long parentOrganization) {
235         this.parentOrganization = parentOrganization;
236     }
237     
238     
239     
240     
241     /**
242      * @return Returns the logoImage.
243      */

244     public long getLogoImage() {
245         return logoImage;
246     }
247     /**
248      * @param logoImage The logoImage to set.
249      */

250     public void setLogoImage(long logoImage) {
251         this.logoImage = logoImage;
252     }
253     /**
254      * @return Returns the selectedlogoImage.
255      */

256     public String JavaDoc getSelectedlogoImage() {
257         return selectedlogoImage;
258     }
259     /**
260      * @param selectedlogoImage The selectedlogoImage to set.
261      */

262     public void setSelectedlogoImage(String JavaDoc selectedlogoImage) {
263         this.selectedlogoImage = selectedlogoImage;
264     }
265 }
266
Popular Tags