public abstract class AbstractAgrosystAction
extends com.opensymphony.xwork2.ActionSupport
implements org.apache.struts2.interceptor.ServletRequestAware, org.apache.struts2.interceptor.ServletResponseAware, org.apache.struts2.interceptor.ParameterAware
| Modifier and Type | Field and Description |
|---|---|
protected BusinessAuthorizationService |
authorizationService |
protected AgrosystWebConfig |
config |
protected Boolean |
currentUserAnAdmin |
protected com.google.gson.Gson |
gson
gson (can be used into non json action to initialize json data).
|
protected NavigationContextService |
navigationContextService |
protected String |
nextActionName
Action name to redirect to after current action.
|
protected String |
nextParamValue
Action param value to redirect to after current action.
|
protected AgrosystWebNotificationSupport |
notificationSupport |
protected Map<String,String[]> |
parameters |
protected boolean |
readOnly |
protected RichNavigationContext |
richNavigationContext |
protected javax.servlet.http.HttpServletRequest |
servletRequest |
protected javax.servlet.http.HttpServletResponse |
servletResponse |
protected AgrosystWebSession |
session |
| Constructor and Description |
|---|
AbstractAgrosystAction() |
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, 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 AgrosystWebConfig config
protected AgrosystWebSession session
protected AgrosystWebNotificationSupport notificationSupport
protected NavigationContextService navigationContextService
protected BusinessAuthorizationService authorizationService
protected javax.servlet.http.HttpServletRequest servletRequest
protected javax.servlet.http.HttpServletResponse servletResponse
protected RichNavigationContext richNavigationContext
protected boolean readOnly
protected Boolean currentUserAnAdmin
protected String nextActionName
protected String nextParamValue
protected com.google.gson.Gson gson
public com.google.gson.Gson getGson()
public void setServletRequest(javax.servlet.http.HttpServletRequest servletRequest)
setServletRequest in interface org.apache.struts2.interceptor.ServletRequestAwarepublic void setServletResponse(javax.servlet.http.HttpServletResponse servletResponse)
setServletResponse in interface org.apache.struts2.interceptor.ServletResponseAwarepublic void setParameters(Map<String,String[]> parameters)
setParameters in interface org.apache.struts2.interceptor.ParameterAwarepublic void setConfig(AgrosystWebConfig config)
public void setSession(AgrosystWebSession session)
public final void setNavigationContextService(NavigationContextService navigationContextService)
public final void setAuthorizationService(BusinessAuthorizationService authorizationService)
public void setNotificationSupport(AgrosystWebNotificationSupport notificationSupport)
public AgrosystWebConfig getConfig()
public AgrosystWebSession getSession()
protected NavigationContext getNavigationContext()
protected NavigationContext verifyAndSaveNavigationContext(NavigationContext navigationContext)
protected NavigationContext navigationContextEntityCreated(org.nuiton.topia.persistence.TopiaEntity newEntity)
protected NavigationContext readNavigationContextCookie()
protected void writeNavigationContextCookie(NavigationContext navigationContext)
public RichNavigationContext getRichNavigationContext()
protected <T> Map<T,String> getEnumAsMap(T[] values)
values - values to transformprotected void initForInput()
public Set<AgrosystWebNotification> getInfoNotifications()
public boolean isInfoNotificationsEmpty()
public Set<AgrosystWebNotification> getWarningNotifications()
public boolean isWarningNotificationsEmpty()
public Set<AgrosystWebNotification> getErrorNotifications()
public boolean isErrorNotificationsEmpty()
public boolean isReadOnly()
public boolean isCurrentUserAnAdmin()
public String getNextActionName()
public void setNextActionName(String nextActionName)
public String getNextParamValue()
public void setNextParamValue(String nextParamValue)
Copyright © 2013 Inra. All rights reserved.