public class AttachmentsDownload extends AbstractAgrosystAction
| Modifier and Type | Field and Description |
|---|---|
protected AttachmentMetadata |
attachmentMetadata |
protected AttachmentService |
attachmentService |
protected String |
attachmentTopiaId |
applicationContext, attachmentCount, authorizationService, config, currentUserAnAdmin, currentUserAnIsDataProcessor, ERROR_LAYOUT_DATA, gson, layoutData, messageService, navigationContextService, notificationSupport, parameters, readOnly, richNavigationContext, servletRequest, servletResponse, session| Constructor and Description |
|---|
AttachmentsDownload() |
| Modifier and Type | Method and Description |
|---|---|
String |
execute() |
AttachmentMetadata |
getAttachmentMetadata() |
InputStream |
getInputStream() |
void |
setAttachmentService(AttachmentService attachmentService) |
void |
setAttachmentTopiaId(String attachmentTopiaId) |
getAttachmentCount, getBroadcastMessages, getConfig, getEnumAsMap, getErrorNotifications, getGson, getInfoNotifications, getIsBroadcastMessagesEmpty, getIsFirstTimeMessageRead, getLayoutData, getNavigationContext, getRichNavigationContext, getServletInfo, getSession, getSessionId, getWarningNotifications, initForInput, initLayoutData, isCurrentUserAnAdmin, isCurrentUserAnIsDataProcessor, isErrorNotificationsEmpty, isInfoNotificationsEmpty, isReadOnly, isWarningNotificationsEmpty, navigationContextEntityCreated, readNavigationContextCookie, setApplicationContext, 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, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validateprotected transient AttachmentService attachmentService
protected String attachmentTopiaId
protected AttachmentMetadata attachmentMetadata
public void setAttachmentService(AttachmentService attachmentService)
setAttachmentService in class AbstractAgrosystActionpublic void setAttachmentTopiaId(String attachmentTopiaId)
public AttachmentMetadata getAttachmentMetadata()
public String execute() throws Exception
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportExceptionpublic InputStream getInputStream()
Copyright © 2013–2014 Inra. All rights reserved.