public class ProductEditAction extends SgqActionSupport implements com.opensymphony.xwork2.Preparable
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
analyzeTypeIds |
protected List<AnalyzeType> |
analyzeTypes |
protected boolean |
canBeArchived
Can be achived product.
|
protected boolean |
canBeDeleted
Can delete unused product.
|
protected List<String> |
categories |
protected Product |
product |
protected String |
productCategoryName |
protected String |
productId |
protected List<String> |
productStatusIds |
protected String |
productStatusName |
protected ReferentialService |
referentialService |
protected List<ProductStatus> |
status |
actionParameters, ITEM_PER_PAGE, transaction| Constructor and Description |
|---|
ProductEditAction() |
| Modifier and Type | Method and Description |
|---|---|
String |
archiveProduct() |
String |
deleteProduct() |
String |
execute() |
List<AnalyzeType> |
getAnalyzeTypes() |
List<String> |
getCategories() |
Product |
getProduct() |
String |
getProductCategoryName() |
String |
getProductStatusName() |
List<ProductStatus> |
getStatus() |
boolean |
isCanBeArchived() |
boolean |
isCanBeDeleted() |
void |
prepare() |
void |
setAnalyzeTypeIds(List<String> analyzeTypeIds) |
void |
setProductCategoryName(String productCategoryName) |
void |
setProductId(String productId) |
void |
setProductStatusIds(List<String> productStatusIds) |
void |
setProductStatusName(String productStatusName) |
String |
unArchiveProduct() |
getConfig, getPager, getParameter, getParameters, getProductUnit, newService, setParameters, setServletRequestaddActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validateprotected ReferentialService referentialService
protected String productId
protected Product product
protected List<ProductStatus> status
protected List<AnalyzeType> analyzeTypes
protected String productStatusName
protected String productCategoryName
protected boolean canBeDeleted
protected boolean canBeArchived
public void setProductId(String productId)
public void prepare()
throws Exception
prepare in interface com.opensymphony.xwork2.PreparableExceptionpublic List<ProductStatus> getStatus()
public List<AnalyzeType> getAnalyzeTypes()
public String getProductCategoryName()
public void setProductCategoryName(String productCategoryName)
public String getProductStatusName()
public void setProductStatusName(String productStatusName)
public String execute() throws Exception
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportExceptionpublic Product getProduct()
public boolean isCanBeDeleted()
public boolean isCanBeArchived()
public String deleteProduct()
public String archiveProduct()
public String unArchiveProduct()
Copyright © 2012-2013 Herboristerie Cailleau. All Rights Reserved.