public class AttachmentsUploadJson extends AbstractJsonAction
| Modifier and Type | Field and Description |
|---|---|
protected List<AttachmentMetadata> |
attachmentMetadatas |
protected AttachmentService |
attachmentService |
protected List<File> |
files |
protected List<String> |
filesContentType |
protected List<String> |
filesFileName |
protected String |
objectReferenceId |
GET_TRUE, TO_STRINGattachmentCount, authorizationService, config, currentUserAnAdmin, ERROR_LAYOUT_DATA, gson, layoutData, navigationContextService, notificationSupport, parameters, readOnly, richNavigationContext, servletRequest, servletResponse, session| Constructor and Description |
|---|
AttachmentsUploadJson() |
| Modifier and Type | Method and Description |
|---|---|
String |
execute() |
Object |
getJsonData()
Method to override to get object data to render as json.
|
void |
setAttachmentService(AttachmentService attachmentService) |
void |
setFiles(List<File> files) |
void |
setFilesContentType(List<String> filesContentType) |
void |
setFilesFileName(List<String> filesFileName) |
void |
setObjectReferenceId(String objectReferenceId) |
getAttachmentCount, getConfig, getEnumAsMap, getErrorNotifications, getGson, getInfoNotifications, getLayoutData, getNavigationContext, getRichNavigationContext, getSession, getWarningNotifications, initForInput, initLayoutData, isCurrentUserAnAdmin, isErrorNotificationsEmpty, isInfoNotificationsEmpty, isReadOnly, isWarningNotificationsEmpty, navigationContextEntityCreated, readNavigationContextCookie, removeValuesFromMap, setAuthorizationService, setConfig, setNavigationContextService, 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, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validateprotected AttachmentService attachmentService
protected String objectReferenceId
protected List<AttachmentMetadata> attachmentMetadatas
public void setAttachmentService(AttachmentService attachmentService)
setAttachmentService in class AbstractAgrosystActionpublic void setObjectReferenceId(String objectReferenceId)
public String execute() throws Exception
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportExceptionpublic Object getJsonData()
AbstractJsonActiongetJsonData in class AbstractJsonActionCopyright © 2013–2014 Inra. All rights reserved.