Package org.opencms.ade.upload
Class CmsUploadWarningTable
java.lang.Object
org.opencms.ade.upload.CmsUploadWarningTable
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears the table.getMessage
(CmsUUID id) Gets the warning message for the given structure id.void
setMessage
(CmsUUID id, 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.
-
Constructor Details
-
CmsUploadWarningTable
public CmsUploadWarningTable()Creates a new instance.
-
-
Method Details
-
clear
Clears the table. -
getMessage
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
Sets the warning message for the given structure id (or clears it, if the message isn null).- Parameters:
id
- the structure id of a resourcemessage
- the message to store
-
size
Gets the size of the table.- Returns:
- the size
-