org.itracker.model
Class Notification
java.lang.Object
org.itracker.model.AbstractEntity
org.itracker.model.Notification
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<Entity>, Entity
public class Notification
- extends AbstractEntity
- implements Comparable<Entity>
A notification to a user about an Issue.
An Notification can only belong to 1 Issue (composition).
- Author:
- ready
- See Also:
- Serialized Form
| Methods inherited from class org.itracker.model.AbstractEntity |
clone, compareTo, equals, getCreateDate, getId, getLastModifiedDate, hashCode, isNew, setCreateDate, setId, setLastModifiedDate |
TYPE_COMPARATOR
public static final Comparator<Notification> TYPE_COMPARATOR
USER_COMPARATOR
public static final Comparator<Notification> USER_COMPARATOR
ISSUE_USER_ROLE_COMPARATOR
public static final Comparator<Notification> ISSUE_USER_ROLE_COMPARATOR
Notification
public Notification()
- Default constructor (required by Hibernate).
PENDING: should be private so that it can only be used by
Hibernate, to ensure that the fields which form an instance's identity
are always initialized/never null.
Notification
public Notification(User user,
Issue issue,
int role)
- Deprecated. use Role instead int for role
- Parameters:
user - issue - role -
Notification
public Notification(User user,
Issue issue,
Notification.Role role)
getIssue
public Issue getIssue()
setIssue
public void setIssue(Issue issue)
getUser
public User getUser()
setUser
public void setUser(User user)
getNotificationRole
public int getNotificationRole()
- Deprecated. use getRole instead
- Returns:
setNotificationRole
public void setNotificationRole(int role)
- Deprecated.
- Parameters:
role -
getRole
public Notification.Role getRole()
setRole
public void setRole(Notification.Role role)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2002-2012 itracker. All Rights Reserved.