public class AttachmentsRaw extends AbstractAgrosystAction implements com.opensymphony.xwork2.Preparable
| Modifier and Type | Field and Description |
|---|---|
protected List<AttachmentMetadata> |
attachmentMetadatas |
protected AttachmentService |
attachmentService |
protected InputStream |
inputStream |
protected String |
objectReferenceId |
protected String |
selectedAttachmentMetadataId |
protected File |
upload |
protected String |
uploadContentType |
protected String |
uploadFileName |
authorizationService, config, currentUserAnAdmin, gson, navigationContextService, nextActionName, nextParamValue, notificationSupport, parameters, readOnly, richNavigationContext, servletRequest, servletResponse, session| Constructor and Description |
|---|
AttachmentsRaw() |
| Modifier and Type | Method and Description |
|---|---|
String |
doAttachments() |
String |
doDelete() |
String |
doDownload() |
String |
execute() |
List<AttachmentMetadata> |
getAttachmentMetadatas() |
InputStream |
getInputStream() |
String |
getMessage() |
String |
getObjectReferenceId() |
String |
getStatus() |
String |
input() |
void |
prepare() |
void |
setAttachmentService(AttachmentService attachmentService) |
void |
setObjectReferenceId(String objectReferenceId) |
void |
setSelectedAttachmentMetadataId(String selectedAttachmentMetadataId) |
void |
setUpload(File file) |
void |
setUploadContentType(String contentType) |
void |
setUploadFileName(String filename) |
void |
validate() |
getConfig, getEnumAsMap, getErrorNotifications, getGson, getInfoNotifications, getNavigationContext, getNextActionName, getNextParamValue, getRichNavigationContext, getSession, getWarningNotifications, initForInput, isCurrentUserAnAdmin, isErrorNotificationsEmpty, isInfoNotificationsEmpty, isReadOnly, isWarningNotificationsEmpty, navigationContextEntityCreated, readNavigationContextCookie, setAuthorizationService, setConfig, setNavigationContextService, setNextActionName, setNextParamValue, setNotificationSupport, setParameters, setServletRequest, setServletResponse, setSession, toJson, 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 AttachmentService attachmentService
protected String objectReferenceId
protected List<AttachmentMetadata> attachmentMetadatas
protected File upload
protected String uploadContentType
protected String uploadFileName
protected InputStream inputStream
protected String selectedAttachmentMetadataId
public void setAttachmentService(AttachmentService attachmentService)
public List<AttachmentMetadata> getAttachmentMetadatas()
public String getObjectReferenceId()
public void setObjectReferenceId(String objectReferenceId)
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.ActionSupportpublic String input() throws Exception
input in class com.opensymphony.xwork2.ActionSupportExceptionpublic String execute() throws Exception
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportExceptionpublic String doAttachments()
public String doDownload()
public String doDelete()
public void setUpload(File file)
public void setUploadContentType(String contentType)
public void setUploadFileName(String filename)
public InputStream getInputStream()
public void setSelectedAttachmentMetadataId(String selectedAttachmentMetadataId)
public String getStatus()
public String getMessage()
Copyright © 2013 Inra. All rights reserved.