1 package com.dotmarketing.portlets.organization.struts; 2 3 import javax.servlet.http.HttpServletRequest ; 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 16 private long inode; 17 private String title; private String ceoName; private String partnerUrl; private String partnerKey; private long partnerLogo; private String street1; private String street2; private String city; private String state; private String zip; private String phone; private String fax; private String country; private boolean system; private long parentSystem; 32 private String [] categories; 33 private String keywords; 34 private long parentOrganization; 35 private long logoImage; 36 private String selectedlogoImage; 37 38 39 public OrganizationForm() { 40 parentSystem = 0; 41 logoImage = 0; 42 selectedlogoImage = ""; 43 } 44 45 public OrganizationForm(String title, String ceoName, String partnerUrl, String partnerKey, long partnerLogo, String street1, String street2, String city, String state, String zip, String phone, String fax, String 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 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 72 public long getInode() { 73 return inode; 74 } 75 78 public void setInode(long inode) { 79 this.inode = inode; 80 } 81 82 public String getTitle() { 83 return this.title; 84 } 85 86 public void setTitle(String title) { 87 this.title = title; 88 } 89 public String getCeoName() { 90 return this.ceoName; 91 } 92 93 public void setCeoName(String ceoName) { 94 this.ceoName = ceoName; 95 } 96 public String getPartnerUrl() { 97 return this.partnerUrl; 98 } 99 100 public void setPartnerUrl(String partnerUrl) { 101 this.partnerUrl = partnerUrl; 102 } 103 public String getPartnerKey() { 104 return this.partnerKey; 105 } 106 107 public void setPartnerKey(String 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 getStreet1() { 118 return this.street1; 119 } 120 121 public void setStreet1(String street1) { 122 this.street1 = street1; 123 } 124 public String getStreet2() { 125 return this.street2; 126 } 127 128 public void setStreet2(String street2) { 129 this.street2 = street2; 130 } 131 public String getCity() { 132 return this.city; 133 } 134 135 public void setCity(String city) { 136 this.city = city; 137 } 138 public String getState() { 139 return this.state; 140 } 141 142 public void setState(String state) { 143 this.state = state; 144 } 145 public String getZip() { 146 return this.zip; 147 } 148 149 public void setZip(String zip) { 150 this.zip = zip; 151 } 152 public String getPhone() { 153 return this.phone; 154 } 155 156 public void setPhone(String phone) { 157 this.phone = phone; 158 } 159 public String getFax() { 160 return this.fax; 161 } 162 163 public void setFax(String fax) { 164 this.fax = fax; 165 } 166 public String getCountry() { 167 return this.country; 168 } 169 170 public void setCountry(String country) { 171 this.country = country; 172 } 173 176 public boolean isSystem() { 177 return system; 178 } 179 182 public void setSystem(boolean system) { 183 this.system = system; 184 } 185 186 189 public long getParentSystem() { 190 return parentSystem; 191 } 192 195 public void setParentSystem(long parentSystem) { 196 this.parentSystem = parentSystem; 197 } 198 199 202 public String [] getCategories() { 203 return categories; 204 } 205 208 public void setCategories(String [] categories) { 209 this.categories = categories; 210 } 211 212 215 public String getKeywords() { 216 return keywords; 217 } 218 221 public void setKeywords(String keywords) { 222 this.keywords = keywords; 223 } 224 225 228 public long getParentOrganization() { 229 return parentOrganization; 230 } 231 234 public void setParentOrganization(long parentOrganization) { 235 this.parentOrganization = parentOrganization; 236 } 237 238 239 240 241 244 public long getLogoImage() { 245 return logoImage; 246 } 247 250 public void setLogoImage(long logoImage) { 251 this.logoImage = logoImage; 252 } 253 256 public String getSelectedlogoImage() { 257 return selectedlogoImage; 258 } 259 262 public void setSelectedlogoImage(String selectedlogoImage) { 263 this.selectedlogoImage = selectedlogoImage; 264 } 265 } 266 | Popular Tags |