Class CmsNotificationCause

java.lang.Object
org.opencms.notification.CmsNotificationCause
All Implemented Interfaces:
Serializable

public class CmsNotificationCause extends Object implements 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 Details

    • CmsNotificationCause

      public CmsNotificationCause(CmsUUID resource, int cause)
      Creates a new CmsNotificationResourceInfo.

      Parameters:
      resource - the specific resource
      cause - that the resource occures in the notification
  • Method Details

    • equals

      public boolean equals(Object o)
      Returns true if the Object equals to the corresponding CmsNotificationCause, that means a notification cause with the same resource and cause.
      Overrides:
      equals in class Object
      Parameters:
      o - the object to check for equality
      Returns:
      true if the resource info is equal to a notification cause or resource info with the same resource and cause
      See Also:
    • getCause

      public int getCause()
      Returns the cause.

      Returns:
      the cause
    • getResourceId

      Returns the resource.

      Returns:
      the resource
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      See Also:
    • setCause

      public void setCause(int cause)
      Sets the cause.

      Parameters:
      cause - the cause to set
    • setResourceId

      public void setResourceId(CmsUUID resourceId)
      Sets the resource.

      Parameters:
      resourceId - the resource to set