Class FileUploadService

java.lang.Object
com.aquima.web.components.fileupload.service.FileUploadService

@Service public class FileUploadService extends Object
Service for uploading files with the AQ_File_Upload container
Author:
N. van Noorloos
  • Constructor Details Link icon

    • FileUploadService Link icon

      @Autowired public FileUploadService(IFileDefinitionTransform transform, IFileValidator validator, com.aquima.interactions.foundation.logging.audit.IAuditEngine auditEngine)
  • Method Details Link icon

    • upload Link icon

      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 session
      configurationId - The id of the configuration that is stored on the page scope.
      files - The definitions of the files to be uploaded
      printer - 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 Link icon

      public FileUploadConfiguration retrieveConfiguration(PortalSessionWrap session, String configurationId)
      Retrieve the configuration for the given clientId from the session
      Parameters:
      session - Wrapped portal session
      configurationId - The id of the container that is stored on the page scope.
      Returns:
      the configuration
    • setEventButtonKeys Link icon

      public FileUploadStatus setEventButtonKeys(FileUploadStatus uploadStatus, PortalSessionWrap session, String configurationId, com.aquima.interactions.composer.IRuntimeKeyPrinter printer)