Class CmsUploadWarningTable


  • public class CmsUploadWarningTable
    extends java.lang.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.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Clears the table.
      java.lang.String getMessage​(CmsUUID id)
      Gets the warning message for the given structure id.
      void setMessage​(CmsUUID id, java.lang.String message)
      Sets the warning message for the given structure id (or clears it, if the message isn null).
      long size()
      Gets the size of the table.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • clear

        public void clear()
        Clears the table.
      • getMessage

        public java.lang.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,
                               java.lang.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