|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.torque.om.BaseObject
org.tigris.scarab.om.BaseNotificationStatus
org.tigris.scarab.om.NotificationStatus
This class holds the information for every notification generated in the system (stored in NOTIFICATION_STATUS table)
| Field Summary | |
static java.lang.Integer |
DEFERRED
|
static java.lang.Integer |
FAIL
|
static java.lang.Integer |
MARK_DELETED
|
static java.lang.Integer |
SCHEDULED
|
static java.lang.Integer |
SENT
|
static java.lang.Integer |
WAIT
|
| Fields inherited from class org.apache.torque.om.BaseObject |
NEW_ID |
| Constructor Summary | |
NotificationStatus()
|
|
NotificationStatus(ScarabUser receiver,
Activity activity)
Create a new NotificationStatus entry. |
|
| Method Summary | |
int |
compareTo(java.lang.Object o2)
Compare two Notification objects, following this criteria: IssueId User Activity type Timestamp |
void |
delete()
|
java.lang.String |
getActivityCreationDate(ScarabLocalizationTool l10nTool)
Formats the creationDate of the notification's activity |
ActivityType |
getActivityType()
|
ScarabUser |
getCreator()
Get the creator of this entry |
java.lang.Long |
getIssueId()
|
ScarabUser |
getReceiver()
get the Receiver for this entry |
java.lang.String |
getStatusLabel()
Transform the database representation of the status (INTEGER) into a readable label (String) TODO: Should this return a localized string (receiving parameter l10nTool?) |
void |
markDeleted()
|
void |
setActivityId(java.lang.Long id)
NOT ONLY sets the activityId; it also updates the depending values. |
| Methods inherited from class org.tigris.scarab.om.BaseNotificationStatus |
copy, copyInto, getActivity, getActivity, getActivityId, getByName, getByPeerName, getByPosition, getChangeDate, getComment, getCreationDate, getCreatorId, getFieldNames, getPeer, getPrimaryKey, getQueryKey, getReceiverId, getScarabUser, getScarabUser, getStatus, isCacheOnSave, save, save, save, setActivity, setActivityKey, setChangeDate, setComment, setCreationDate, setCreatorId, setPrimaryKey, setPrimaryKey, setPrimaryKey, setQueryKey, setReceiverId, setScarabUser, setScarabUserKey, setStatus, toString |
| Methods inherited from class org.apache.torque.om.BaseObject |
equals, equals, getLog, hashCode, isModified, isNew, resetModified, setModified, setNew, setPrimaryKey |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.torque.om.Persistent |
getPrimaryKey, isModified, isNew, save, save, save, setModified, setNew, setPrimaryKey, setPrimaryKey |
| Field Detail |
public static final java.lang.Integer WAIT
public static final java.lang.Integer SCHEDULED
public static final java.lang.Integer DEFERRED
public static final java.lang.Integer FAIL
public static final java.lang.Integer SENT
public static final java.lang.Integer MARK_DELETED
| Constructor Detail |
public NotificationStatus()
throws org.apache.torque.TorqueException
public NotificationStatus(ScarabUser receiver,
Activity activity)
throws ScarabException
receiver - activity -
org.apache.torque.TorqueException
ScarabException| Method Detail |
public java.lang.Long getIssueId()
public ActivityType getActivityType()
public void setActivityId(java.lang.Long id)
setActivityId in class BaseNotificationStatusid - new valuepublic java.lang.String getStatusLabel()
public java.lang.String getActivityCreationDate(ScarabLocalizationTool l10nTool)
l10nTool -
public ScarabUser getCreator()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public ScarabUser getReceiver()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void delete()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void markDeleted()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueExceptionpublic int compareTo(java.lang.Object o2)
compareTo in interface java.lang.Comparable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||