Class CmsUploadWarningTable

java.lang.Object
org.opencms.ade.upload.CmsUploadWarningTable

public class CmsUploadWarningTable extends Object
A table to temporarily store warnings that should be displayed for uploaded files.

Warning messages are automatically removed from the table after some time.

  • Constructor Details

  • Method Details

    • clear

      public void clear()
      Clears the table.
    • getMessage

      public String getMessage(CmsUUID id)
      Gets the warning message for the given structure id.
      Parameters:
      id - a resource structure id
      Returns:
      the warning message (or null if there is no message)
    • setMessage

      public void setMessage(CmsUUID id, String message)
      Sets the warning message for the given structure id (or clears it, if the message isn null).
      Parameters:
      id - the structure id of a resource
      message - the message to store
    • size

      public long size()
      Gets the size of the table.
      Returns:
      the size