public class ContextChooseRaw extends AbstractJsonAction implements com.opensymphony.xwork2.Preparable
| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,Long> |
campaignsList |
protected ResultList<Domain> |
domains |
static com.google.common.base.Function<String,Boolean> |
GET_TRUE
Return true for each value.
|
protected ResultList<GrowingPlan> |
growingPlans |
protected ResultList<GrowingSystem> |
growingSystems |
protected NavigationContext |
navigationContext |
protected Set<Integer> |
selectedCampaigns |
protected Set<String> |
selectedDomains |
protected Set<String> |
selectedGrowingPlans |
protected Set<String> |
selectedGrowingSystems |
static com.google.common.base.Function<Object,String> |
TO_STRING |
config, gson, gsonBuilder, navigationContextService, parameters, servletRequest, servletResponse, session| Constructor and Description |
|---|
ContextChooseRaw() |
| Modifier and Type | Method and Description |
|---|---|
String |
execute() |
Map<Integer,Long> |
getCampaignsList() |
String |
getDomainsJson() |
String |
getGrowingPlansJson() |
String |
getGrowingSystemsJson() |
Object |
getJsonData()
Method to override to get object data to render as json.
|
NavigationContext |
getNavigationContext() |
List<Sector> |
getSectors() |
String |
getSelectedCampaignsJson() |
String |
getSelectedDomainsJson() |
String |
getSelectedGrowingPlansJson() |
String |
getSelectedGrowingSystemsJson() |
String |
input() |
void |
prepare() |
void |
setSelectedCampaigns(Set<Integer> selectedCampaigns) |
void |
setSelectedDomains(Set<String> selectedDomains) |
void |
setSelectedGrowingPlans(Set<String> selectedGrowingPlans) |
void |
setSelectedGrowingSystems(Set<String> selectedGrowingSystems) |
getConfig, getGson, 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, setFieldErrors, validatepublic static final com.google.common.base.Function<String,Boolean> GET_TRUE
protected ResultList<Domain> domains
protected ResultList<GrowingPlan> growingPlans
protected ResultList<GrowingSystem> growingSystems
protected NavigationContext navigationContext
public void prepare()
throws Exception
prepare in interface com.opensymphony.xwork2.PreparableExceptionpublic String input() throws Exception
input in class com.opensymphony.xwork2.ActionSupportExceptionpublic String execute() throws Exception
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportExceptionpublic String getSelectedCampaignsJson()
public String getDomainsJson()
public String getSelectedDomainsJson()
public String getGrowingPlansJson()
public String getSelectedGrowingPlansJson()
public String getGrowingSystemsJson()
public String getSelectedGrowingSystemsJson()
public NavigationContext getNavigationContext()
getNavigationContext in class AbstractAgrosystActionpublic Object getJsonData()
AbstractJsonActiongetJsonData in class AbstractJsonActionCopyright © 2013 Inra. All rights reserved.