public class CmsExtendedNotificationCause extends java.lang.Object implements java.lang.Comparable<CmsExtendedNotificationCause>
| 限定符和类型 | 字段和说明 |
|---|---|
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.
|
| 构造器和说明 |
|---|
CmsExtendedNotificationCause(CmsResource resource,
int cause,
java.util.Date date)
Creates a new CmsNotificationResourceInfo.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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_UPDATE_REQUIRED
public static final int RESOURCE_RELEASE
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 在接口中 java.lang.Comparable<CmsExtendedNotificationCause>Comparable.compareTo(java.lang.Object)public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objecto - the object to check for equalityCmsNotificationCause.equals(java.lang.Object)public int hashCode()
hashCode 在类中 java.lang.ObjectObject.hashCode()public int getCause()
public java.util.Date getDate()
public CmsResource getResource()
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