Package org.opencms.notification
Class CmsNotificationCause
- java.lang.Object
-
- org.opencms.notification.CmsNotificationCause
-
- All Implemented Interfaces:
java.io.Serializable
public class CmsNotificationCause extends java.lang.Object implements java.io.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
, to be used for serialization in the AdditionalInfos of aCmsExtendedNotificationCause
, and therefore only contains the essential informationCmsUser
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CmsNotificationCause(CmsUUID resource, int cause)
Creates a new CmsNotificationResourceInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
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.CmsUUID
getResourceId()
Returns the resource.int
hashCode()
void
setCause(int cause)
Sets the cause.void
setResourceId(CmsUUID resourceId)
Sets the resource.
-
-
-
Constructor Detail
-
CmsNotificationCause
public CmsNotificationCause(CmsUUID resource, int cause)
Creates a new CmsNotificationResourceInfo.- Parameters:
resource
- the specific resourcecause
- that the resource occures in the notification
-
-
Method Detail
-
equals
public boolean equals(java.lang.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 classjava.lang.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:
CmsExtendedNotificationCause.equals(java.lang.Object)
-
getCause
public int getCause()
Returns the cause.- Returns:
- the cause
-
getResourceId
public CmsUUID getResourceId()
Returns the resource.- Returns:
- the resource
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
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
-
-