public class DomainsEdit extends AbstractAgrosystAction implements com.opensymphony.xwork2.Preparable
applicationContext, attachmentCount, attachmentService, authorizationService, config, currentUserAnAdmin, currentUserAnIsDataProcessor, ERROR_LAYOUT_DATA, gson, layoutData, messageService, navigationContextService, notificationSupport, parameters, readOnly, richNavigationContext, servletRequest, servletResponse, session| Constructor and Description |
|---|
DomainsEdit() |
getAttachmentCount, getBroadcastMessages, getConfig, getEnumAsMap, getErrorNotifications, getGson, getInfoNotifications, getIsBroadcastMessagesEmpty, getIsFirstTimeMessageRead, getLayoutData, getNavigationContext, getRichNavigationContext, getServletInfo, getSession, getSessionId, getWarningNotifications, initLayoutData, isCurrentUserAnAdmin, isCurrentUserAnIsDataProcessor, isErrorNotificationsEmpty, isInfoNotificationsEmpty, isReadOnly, isWarningNotificationsEmpty, navigationContextEntityCreated, readNavigationContextCookie, setApplicationContext, setAttachmentService, setAuthorizationService, setConfig, setMessageService, setNavigationContextService, setNotificationSupport, setParameters, setServletRequest, setServletResponse, setSession, toJson, toTrueMap, 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 static final com.google.common.base.Predicate<CroppingPlanSpeciesDto> HAS_NO_SPECIES
protected static final String SIRET_REGEX
protected transient ReferentialService referentialService
protected transient DomainService domainService
protected transient PlotService plotService
protected Integer campaign
protected Domain domain
protected LinkedHashMap<Integer,String> relatedDomains
protected String geoPointsJson
protected String domainTopiaId
protected String commune
protected String legalStatusId
protected List<RefLegalStatus> allRefLegalStatus
protected RefLocation location
protected String departement
protected String petiteRegionAgricole
protected String petiteRegionAgricoleName
protected String locationTopiaId
protected Map<MaterielType,List<String>> materielType1List
protected String equipmentsJson
protected List<ToolsCoupling> toolsCouplings
protected String toolsCouplingsJson
protected UsageList<ToolsCoupling> toolsCouplingsUsageList
protected String groundsJson
protected List<CroppingPlanEntryDto> croppingPlans
protected String croppingPlansJson
protected UsageList<CroppingPlanEntryDto> croppingPlansUsageList
protected Integer otex18
protected Integer otex70
protected Collection<WeatherStationDto> weatherStationDtos
protected String weatherStationDtosJson
protected String pricesJson
protected List<RefInterventionAgrosystTravailEDI> agrosystActionsFullList
protected boolean canEditPlots
public void setReferentialService(ReferentialService referentialService)
public void setDomainService(DomainService domainService)
public void setPlotService(PlotService plotService)
public void setDomainTopiaId(String domainTopiaId)
public void setLocationTopiaId(String locationTopiaId)
public void setCommune(String commune)
public void setCampaign(Integer campaign)
public void setLegalStatusId(String legalStatusId)
public void setOtex18(Integer otex18)
public void setOtex70(Integer otex70)
public void setGeoPointsJson(String json)
public void setWeatherStationsJson(String json)
public void setGroundsJson(String json)
public void setEquipmentsJson(String json)
public void setToolsCouplingsJson(String json)
public void setCroppingPlansJson(String json)
public void setPricesJson(String json)
public Collection<WeatherStationDto> convertWeatherStationsJson(String json)
public List<ToolsCoupling> convertToolsCouplingsJson(String json)
public List<CroppingPlanEntryDto> convertCroppingPlansJson(String json)
public Domain getDomain()
public void prepare()
throws Exception
prepare in interface com.opensymphony.xwork2.PreparableExceptionpublic void validate()
validate in interface com.opensymphony.xwork2.Validateablevalidate in class com.opensymphony.xwork2.ActionSupportprotected void initForInput()
initForInput in class AbstractAgrosystActionpublic String input() throws Exception
input in class com.opensymphony.xwork2.ActionSupportExceptionprotected Collection<WeatherStationDto> getWeatherStationDtos(Domain domain)
protected void validDomainMainCharacteristics()
protected void validWeatherStations()
protected void validEquipments()
protected void validToolsCouplings()
protected void validGeoPoints()
protected void validGrounds()
protected void validCroppingPlans()
protected void validPrices()
public String execute() throws Exception
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportExceptionprotected void propagateWeatherStationsChanges()
Domain.getWeatherStations().public Map<DomainType,String> getTypes()
public Map<AgrosystInterventionType,String> getAgrosystInterventionTypes()
public Map<Zoning,String> getZoningValues()
public String getDepartement()
public String getFormatedDepartement()
public String getPetiteRegionAgricole()
public String getPetiteRegionAgricoleName()
public String getFormatedPetiteRegionAgricoleName()
public String getCommune()
public Integer getCampaign()
public String getLegalStatusId()
public List<RefLegalStatus> getAllRefLegalStatus()
public String getLocationTopiaId()
public Map<MaterielType,List<String>> getMaterielType1List()
public List<CroppingPlanEntryDto> getCroppingPlans()
public Integer getOtex18()
public Collection<WeatherStationDto> getWeatherStations()
public Map<AgrosystInterventionType,String> getAgrosystInterventionType()
public List<RefInterventionAgrosystTravailEDI> getAgrosystActionsFullList()
public boolean isCanEditPlots()
public List<ToolsCoupling> getToolsCouplings()
public Map<MaterielWorkRateUnit,String> getMaterielWorkRateUnits()
public Map<MaterielTransportUnit,String> getMaterielTransportUnits()
public void setOtex18code(String otex18code)
public void setRegionCode(String regionCode)
Copyright © 2013–2015 Inra. All rights reserved.