public class CmsExtendedNotificationCause extends java.lang.Object implements java.lang.Comparable<CmsExtendedNotificationCause>
Modifier and Type | Field and Description |
---|---|
static int |
RESOURCE_EXPIRES
The notification is sent because the resource will expire soon.
|
static int |
RESOURCE_OUTDATED
The notification is sent because the resource will get outdated.
|
static int |
RESOURCE_RELEASE
The notification is sent because the resource will be released soon.
|
static int |
RESOURCE_UPDATE_REQUIRED
constant indicating the cause of the notification for a resource.
|
Constructor and Description |
---|
CmsExtendedNotificationCause(CmsResource resource,
int cause,
java.util.Date date)
Creates a new CmsNotificationResourceInfo.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CmsExtendedNotificationCause o) |
boolean |
equals(java.lang.Object o)
Returns true if the Object equals to the corresponding CmsResourceInfo, that means a resource info
with the same resource and cause.
|
int |
getCause()
Returns the cause.
|
java.util.Date |
getDate()
Returns the date.
|
CmsResource |
getResource()
Returns the resource.
|
int |
hashCode() |
void |
setCause(int cause)
Sets the cause.
|
void |
setDate(java.util.Date date)
Sets the date.
|
void |
setResource(CmsResource resource)
Sets the resource.
|
public static final int RESOURCE_EXPIRES
public static final int RESOURCE_OUTDATED
public static final int RESOURCE_RELEASE
public static final int RESOURCE_UPDATE_REQUIRED
public CmsExtendedNotificationCause(CmsResource resource, int cause, java.util.Date date)
resource
- the specific resourcecause
- that the resource occures in the notificationdate
- when the event will happenpublic int compareTo(CmsExtendedNotificationCause o)
compareTo
in interface java.lang.Comparable<CmsExtendedNotificationCause>
Comparable.compareTo(java.lang.Object)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to check for equalityCmsNotificationCause.equals(java.lang.Object)
public int getCause()
public java.util.Date getDate()
public CmsResource getResource()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public void setCause(int cause)
cause
- the cause to setpublic void setDate(java.util.Date date)
date
- the date to setpublic void setResource(CmsResource resource)
resource
- the resource to set