Package org.opencms.ade.upload
Class CmsUploadWarningTable
- java.lang.Object
-
- org.opencms.ade.upload.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.
-
-
Constructor Summary
Constructors Constructor Description CmsUploadWarningTable()
Creates a new instance.
-
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.
-
-
-
Constructor Detail
-
CmsUploadWarningTable
public CmsUploadWarningTable()
Creates a new instance.
-
-
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 resourcemessage
- the message to store
-
size
public long size()
Gets the size of the table.- Returns:
- the size
-
-