Package org.opencms.notification
Class CmsNotificationCause
java.lang.Object
org.opencms.notification.CmsNotificationCause
- All Implemented Interfaces:
Serializable
Objects of this class are serialized in the additional infos of a user to store, which resources were
already confirmed by the user.
This class is the counterpart to
CmsExtendedNotificationCause
, to be used
for serialization in the AdditionalInfos of a CmsUser
, and therefore only
contains the essential information
- See Also:
-
Constructor Summary
ConstructorDescriptionCmsNotificationCause
(CmsUUID resource, int cause) Creates a new CmsNotificationResourceInfo. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the Object equals to the corresponding CmsNotificationCause, that means a notification cause with the same resource and cause.int
getCause()
Returns the cause.Returns the resource.int
hashCode()
void
setCause
(int cause) Sets the cause.void
setResourceId
(CmsUUID resourceId) Sets the resource.
-
Constructor Details
-
CmsNotificationCause
Creates a new CmsNotificationResourceInfo.- Parameters:
resource
- the specific resourcecause
- that the resource occures in the notification
-
-
Method Details
-
equals
Returns true if the Object equals to the corresponding CmsNotificationCause, that means a notification cause with the same resource and cause. -
getCause
Returns the cause.- Returns:
- the cause
-
getResourceId
Returns the resource.- Returns:
- the resource
-
hashCode
-
setCause
Sets the cause.- Parameters:
cause
- the cause to set
-
setResourceId
Sets the resource.- Parameters:
resourceId
- the resource to set
-