Class FileUploadService
java.lang.Object
com.aquima.web.components.fileupload.service.FileUploadService
Service for uploading files with the AQ_File_Upload container
- Author:
- N. van Noorloos
-
Constructor Summary
ConstructorsConstructorDescriptionFileUploadService
(IFileDefinitionTransform transform, IFileValidator validator, com.aquima.interactions.foundation.logging.audit.IAuditEngine auditEngine) -
Method Summary
Modifier and TypeMethodDescriptionretrieveConfiguration
(PortalSessionWrap session, String configurationId) Retrieve the configuration for the given clientId from the sessionsetEventButtonKeys
(FileUploadStatus uploadStatus, PortalSessionWrap session, String configurationId, com.aquima.interactions.composer.IRuntimeKeyPrinter printer) upload
(PortalSessionWrap session, String configurationId, List<IFileDefinition> files, com.aquima.interactions.composer.IRuntimeKeyPrinter printer) Method to handle (multiple) files for uploading
-
Constructor Details
-
FileUploadService
@Autowired public FileUploadService(IFileDefinitionTransform transform, IFileValidator validator, com.aquima.interactions.foundation.logging.audit.IAuditEngine auditEngine)
-
-
Method Details
-
upload
public FileUploadStatus upload(PortalSessionWrap session, String configurationId, List<IFileDefinition> files, com.aquima.interactions.composer.IRuntimeKeyPrinter printer) Method to handle (multiple) files for uploading- Parameters:
session
- Wrapped portal sessionconfigurationId
- The id of the configuration that is stored on the page scope.files
- The definitions of the files to be uploadedprinter
- A runtime key printer- Returns:
- Runtime key of the button from the file upload container that's responsible for throwing an event, null when upload failed.
-
retrieveConfiguration
public FileUploadConfiguration retrieveConfiguration(PortalSessionWrap session, String configurationId) Retrieve the configuration for the given clientId from the session- Parameters:
session
- Wrapped portal sessionconfigurationId
- The id of the container that is stored on the page scope.- Returns:
- the configuration
-
setEventButtonKeys
public FileUploadStatus setEventButtonKeys(FileUploadStatus uploadStatus, PortalSessionWrap session, String configurationId, com.aquima.interactions.composer.IRuntimeKeyPrinter printer)
-