org.itracker.model
Class IssueActivity

java.lang.Object
  extended by org.itracker.model.AbstractEntity
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.itracker.model.AbstractEntity
AbstractEntity.CreateDateComparator, AbstractEntity.IdComparator, AbstractEntity.LastModifiedDateComparator
 
Field Summary
 
Fields inherited from class org.itracker.model.AbstractEntity
CREATE_DATE_COMPARATOR, ID_COMPARATOR, LAST_MODIFIED_DATE_COMPARATOR
 
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.
 
Method Summary
 IssueActivityType getActivityType()
           
 String getDescription()
           
 Issue getIssue()
           
 boolean getNotificationSent()
           
 User getUser()
           
 void setActivityType(IssueActivityType type)
           
 void setDescription(String description)
           
 void setIssue(Issue issue)
           
 void setNotificationSent(boolean sent)
           
 void setUser(User user)
           
 String toString()
           
 
Methods inherited from class org.itracker.model.AbstractEntity
clone, compareTo, equals, getCreateDate, getId, getLastModifiedDate, hashCode, isNew, setCreateDate, setId, setLastModifiedDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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.