Class FileUploadWidgetSettings

java.lang.Object
org.hippoecm.frontend.plugins.jquery.upload.FileUploadWidgetSettings
All Implemented Interfaces:
Serializable, org.apache.wicket.util.io.IClusterable

public class FileUploadWidgetSettings extends Object implements org.apache.wicket.util.io.IClusterable
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • loadConfig

      public void loadConfig(IPluginConfig pluginConfig, FileUploadValidationService validator)
    • getMaxWidth

      public long getMaxWidth()
      Maximal width of allowed upload images.
    • getMaxHeight

      public long getMaxHeight()
      Maximal height of allowed upload images.
    • getMaxFileSize

      public long getMaxFileSize()
      Maximal file size of allowed upload files.
    • getUploadUrl

      public String getUploadUrl()
      The url to receive uploading files. This setting is used for multi-files uploads only.
    • setUploadUrl

      public void setUploadUrl(String url)
      The url to receive uploading files. This setting is used for multi-files uploads only.
      Parameters:
      url -
    • setUploadDoneNotificationUrl

      public void setUploadDoneNotificationUrl(String notificationUrl)
      The url to notify on the completion of uploading. This setting is used for multi-files uploads only.
      Parameters:
      notificationUrl -
    • getUploadDoneNotificationUrl

      public String getUploadDoneNotificationUrl()
      The url to notify on the completion of uploading. This setting is used for multi-files uploads only.
    • getMaxNumberOfFiles

      public long getMaxNumberOfFiles()
      The maximal number of files to upload. This setting is used for multi-files uploads only.
    • getAllowedExtensions

      public String[] getAllowedExtensions()
    • isAutoUpload

      public boolean isAutoUpload()
      The setting used in FileUploadBehavior to determine when selecting a file, the widget should upload it automatically or wait until the upload script is called.
      See Also:
    • setAutoUpload

      public final void setAutoUpload(boolean autoUpload)
      See Also:
    • setSelectionChangeNotificationUrl

      public void setSelectionChangeNotificationUrl(String selectionChangeNotificationUrl)
      Sets the url to notify when the file selection list has been changed. This setting is used for multi-file uploads only.
      Parameters:
      selectionChangeNotificationUrl -
    • getSelectionChangeNotificationUrl

      public String getSelectionChangeNotificationUrl()
      Returns:
      the url to notify when the file selection list has been changed. This setting is used for multi-file uploads only.