|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.opencms.notification.CmsExtendedNotificationCause
public class CmsExtendedNotificationCause
Class to encapsulate a resource and the cause of its notification.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
CmsExtendedNotificationCause(CmsResource resource,
int cause,
java.util.Date date)
Creates a new CmsNotificationResourceInfo. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
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 happen| Method Detail |
|---|
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparableComparable.compareTo(java.lang.Object)public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to check for equality
CmsNotificationCause.equals(java.lang.Object)public int hashCode()
hashCode in class 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
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||