public class GrowingSystemsEdit extends AbstractAgrosystAction implements com.opensymphony.xwork2.Preparable
| Modifier and Type | Field and Description |
|---|---|
protected String |
domainId |
protected Set<GrowingPlan> |
growingPlans |
protected GrowingPlanService |
growingPlanService |
protected String |
growingPlanTopiaId |
protected GrowingSystem |
growingSystem |
protected GrowingSystemService |
growingSystemService |
protected String |
growingSystemTopiaId |
protected static String |
INCOHERENT_STARTING_AND_ENDING_DATES |
protected static String |
PERCENT_FIELD |
protected Set<Plot> |
plots |
protected PlotService |
plotService |
protected static String |
REQUIRED_FIELD |
protected List<String> |
selectedPlotsIds |
config, gson, gsonBuilder, navigationContextService, parameters, servletRequest, servletResponse, session| Constructor and Description |
|---|
GrowingSystemsEdit() |
| Modifier and Type | Method and Description |
|---|---|
String |
execute() |
String |
getActivePlotsJson() |
String |
getEndingDateFormatted() |
Collection<GrowingPlan> |
getGrowingPlans() |
String |
getGrowingPlansJson() |
String |
getGrowingPlanTopiaId() |
GrowingSystem |
getGrowingSystem() |
String |
getGrowingSystemJson() |
String |
getGrowingSystemTopiaId() |
String |
getPlotsJson() |
String |
getSelectedPlotsIdsJson() |
String |
getStartingDateFormatted() |
String |
input() |
void |
prepare() |
void |
setDomainId(String domainId) |
void |
setGrowingPlanService(GrowingPlanService growingPlanService) |
void |
setGrowingPlanTopiaId(String growingPlanTopiaId) |
void |
setGrowingSystem(GrowingSystem growingSystem) |
void |
setGrowingSystemService(GrowingSystemService growingSystemService) |
void |
setGrowingSystemTopiaId(String growingSystemTopiaId) |
void |
setPlotService(PlotService plotService) |
void |
setSelectedPlotsIds(List<String> selectedPlotsIds) |
void |
validate() |
getConfig, getGson, getNavigationContext, getRichNavigationContext, getSession, initForInput, readNavigationContextCookie, setConfig, setNavigationContextService, setParameters, setServletRequest, setServletResponse, setSession, toJson, verifyAndSaveNavigationContext, writeNavigationContextCookieaddActionError, 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, pause, setActionErrors, setActionMessages, setContainer, setFieldErrorsprotected String growingSystemTopiaId
protected String domainId
protected GrowingSystem growingSystem
protected GrowingSystemService growingSystemService
protected PlotService plotService
protected GrowingPlanService growingPlanService
protected Set<GrowingPlan> growingPlans
protected String growingPlanTopiaId
protected static final String REQUIRED_FIELD
protected static final String PERCENT_FIELD
protected static final String INCOHERENT_STARTING_AND_ENDING_DATES
public void setGrowingSystemService(GrowingSystemService growingSystemService)
public void setPlotService(PlotService plotService)
public void setGrowingPlanService(GrowingPlanService growingPlanService)
public void prepare()
throws Exception
prepare in interface com.opensymphony.xwork2.PreparableExceptionpublic GrowingSystem getGrowingSystem()
public String input() throws Exception
input in class com.opensymphony.xwork2.ActionSupportExceptionpublic void validate()
validate in interface com.opensymphony.xwork2.Validateablevalidate in class com.opensymphony.xwork2.ActionSupportpublic String execute() throws Exception
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportExceptionpublic String getStartingDateFormatted()
public String getEndingDateFormatted()
public void setGrowingSystem(GrowingSystem growingSystem)
public String getSelectedPlotsIdsJson()
public String getGrowingSystemJson()
public String getGrowingPlansJson()
public String getActivePlotsJson()
public String getPlotsJson()
public String getGrowingSystemTopiaId()
public void setGrowingSystemTopiaId(String growingSystemTopiaId)
public void setDomainId(String domainId)
public String getGrowingPlanTopiaId()
public void setGrowingPlanTopiaId(String growingPlanTopiaId)
public Collection<GrowingPlan> getGrowingPlans()
Copyright © 2013 Inra. All rights reserved.