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
| 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 MessageService messageService
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 setMessageService(MessageService messageService)
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)
T - values - values to transformprotected void initForInput()
public Set<AgrosystWebNotification> getInfoNotifications()
public boolean isInfoNotificationsEmpty()
public List<Message> getBroadcastMessages()
public boolean getIsBroadcastMessagesEmpty()
public boolean getIsFirstTimeMessageRead()
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()
protected String getServletInfo()
Copyright © 2013–2014 Inra. All rights reserved.