/** * Most of the code in the Qalingo project is copyrighted Hoteia and licensed * under the Apache License Version 2.0 (release version 0.8.0) * http://www.apache.org/licenses/LICENSE-2.0 * * Copyright (c) Hoteia, 2012-2014 * http://www.hoteia.com - http://twitter.com/hoteia - contact@hoteia.com * */ package org.hoteia.qalingo.core.web.mvc.form; import java.util.HashMap; import java.util.Map; import org.hibernate.validator.constraints.NotEmpty; /** * * */ public class ProductSkuForm { protected String id; protected String code; protected String name; protected String description; protected String productMarketingId; protected Map<String, String> globalAttributes = new HashMap<String, String>(); protected Map<String, String> marketAreaAttributes = new HashMap<String, String>(); public String getId() { if(id == null){ return ""; } return id; } public void setId(String id) { this.id = id; } @NotEmpty(message = "bo.product_marketing.error_form_code_is_empty") public String getCode() { if(code == null){ return ""; } return code; } public void setCode(String code) { this.code = code; } @NotEmpty(message = "bo.product_marketing.error_form_name_is_empty") public String getName() { if(name == null){ return ""; } return name; } public void setName(String name) { this.name = name; } public String getDescription() { if(description == null){ return ""; } return description; } public void setDescription(String description) { this.description = description; } @NotEmpty(message = "bo.product_marketing.error_form_product_marketing_is_empty") public String getProductMarketingId() { return productMarketingId; } public void setProductMarketingId(String productMarketingId) { this.productMarketingId = productMarketingId; } public Map<String, String> getGlobalAttributes() { return globalAttributes; } public void setGlobalAttributes(Map<String, String> globalAttributes) { this.globalAttributes = globalAttributes; } public Map<String, String> getMarketAreaAttributes() { return marketAreaAttributes; } public void setMarketAreaAttributes(Map<String, String> marketAreaAttributes) { this.marketAreaAttributes = marketAreaAttributes; } }