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 AgrosystWebApplicationContext |
applicationContext |
protected Long |
attachmentCount |
protected AttachmentService |
attachmentService
Attachment management
|
protected BusinessAuthorizationService |
authorizationService |
protected AgrosystWebConfig |
config |
protected Boolean |
currentUserAnAdmin |
protected Boolean |
currentUserAnIsDataProcessor |
protected static AgrosystLayoutData |
ERROR_LAYOUT_DATA |
protected com.google.gson.Gson |
gson
gson (can be used into non json action to initialize json data).
|
protected AgrosystLayoutData |
layoutData |
protected NavigationContextService |
navigationContextService |
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 static final AgrosystLayoutData ERROR_LAYOUT_DATA
protected AgrosystWebConfig config
protected AgrosystWebSession session
protected AgrosystWebNotificationSupport notificationSupport
protected AgrosystWebApplicationContext applicationContext
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 Boolean currentUserAnIsDataProcessor
protected AttachmentService attachmentService
protected Long attachmentCount
protected com.google.gson.Gson gson
protected AgrosystLayoutData layoutData
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 final void setConfig(AgrosystWebConfig config)
public final void setSession(AgrosystWebSession session)
public final void setNavigationContextService(NavigationContextService navigationContextService)
public final void setAuthorizationService(BusinessAuthorizationService authorizationService)
public final void setNotificationSupport(AgrosystWebNotificationSupport notificationSupport)
public void setApplicationContext(AgrosystWebApplicationContext applicationContext)
public AgrosystWebConfig getConfig()
public AgrosystWebSession getSession()
public String getSessionId()
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 boolean isCurrentUserAnIsDataProcessor()
public void setAttachmentService(AttachmentService attachmentService)
public long getAttachmentCount(String codeOrId)
public AgrosystLayoutData initLayoutData()
public AgrosystLayoutData getLayoutData()
Copyright © 2013–2014 Inra. All rights reserved.