org.itracker.model
Class IssueActivity
java.lang.Object
org.itracker.model.AbstractEntity
org.itracker.model.IssueActivity
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<Entity>, Entity
public class IssueActivity
- extends AbstractEntity
An issue activity.
An IssueActivity can only belong to 1 Issue (composition).
The natural key of an IssueActivity is issue + user + type + createDate.
- Author:
- ready
- See Also:
- Serialized Form
|
Constructor Summary |
IssueActivity()
Default constructor (required by Hibernate). |
IssueActivity(Issue issue,
User user,
IssueActivityType type)
Creates a new instance with a notificationSent flag set to
false and a creation and last modified time stamp set to the
current time. |
| Methods inherited from class org.itracker.model.AbstractEntity |
clone, compareTo, equals, getCreateDate, getId, getLastModifiedDate, hashCode, isNew, setCreateDate, setId, setLastModifiedDate |
IssueActivity
public IssueActivity()
- Default constructor (required by Hibernate).
PENDING: should be private so that it can only be used by
Hibernate, to ensure that issue, user and
type, which form an instance's identity, are always
initialized.
IssueActivity
public IssueActivity(Issue issue,
User user,
IssueActivityType type)
- Creates a new instance with a
notificationSent flag set to
false and a creation and last modified time stamp set to the
current time.
- Parameters:
issue - user - type - description -
getIssue
public Issue getIssue()
setIssue
public void setIssue(Issue issue)
getUser
public User getUser()
setUser
public void setUser(User user)
setActivityType
public void setActivityType(IssueActivityType type)
getActivityType
public IssueActivityType getActivityType()
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getNotificationSent
public boolean getNotificationSent()
setNotificationSent
public void setNotificationSent(boolean sent)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2002-2012 itracker. All Rights Reserved.