| |
|
| org.tigris.scarab.om.BaseNotificationStatus org.tigris.scarab.om.NotificationStatus
NotificationStatus | public class NotificationStatus extends BaseNotificationStatus implements Persistent,Comparable(Code) | | This class holds the information for every notification generated
in the system (stored in NOTIFICATION_STATUS table)
|
NotificationStatus | public NotificationStatus() throws TorqueException(Code) | | |
NotificationStatus | public NotificationStatus(ScarabUser receiver, Activity activity) throws ScarabException(Code) | | Create a new NotificationStatus entry.
Parameters: receiver - Parameters: activity - throws: TorqueException - |
compareTo | public int compareTo(Object o2)(Code) | | Compare two Notification objects, following this criteria:
- IssueId
- User
- Activity type
- Timestamp
author: jorgeuriarte |
delete | public void delete() throws TorqueException(Code) | | |
getActivityCreationDate | public String getActivityCreationDate(ScarabLocalizationTool l10nTool)(Code) | | Formats the creationDate of the notification's activity
Parameters: l10nTool - |
getCreator | public ScarabUser getCreator() throws TorqueException(Code) | | Get the creator of this entry
throws: TorqueException - |
getReceiver | public ScarabUser getReceiver() throws TorqueException(Code) | | get the Receiver for this entry
throws: TorqueException - |
getStatusLabel | public String getStatusLabel()(Code) | | Transform the database representation of the status (INTEGER)
into a readable label (String)
TODO: Should this return a localized string (receiving parameter l10nTool?)
|
markDeleted | public void markDeleted() throws TorqueException(Code) | | |
setActivityId | public void setActivityId(Long id)(Code) | | NOT ONLY sets the activityId; it also updates the depending values.
|
|
|
|