com.atlassian.jira.project.statistics
Class StatisticsUpdateEvent

java.lang.Object
  extended bycom.atlassian.jira.project.statistics.StatisticsUpdateEvent

public class StatisticsUpdateEvent
extends java.lang.Object


Field Summary
static int CREATE_EVENT
           
static int DELETE_EVENT
           
static int MOVE_EVENT
           
static int UPDATE_EVENT
           
 
Method Summary
static StatisticsUpdateEvent buildCreate(GenericValue entity)
          Build a new create event with a single entity.
static StatisticsUpdateEvent buildDelete(GenericValue entity)
          Build a new delete event with a single entity.
static StatisticsUpdateEvent buildDelete(GenericValue entity, GenericValue changeGroup)
          Build a new delete event with a change group as we can not update and delete at the same time
static StatisticsUpdateEvent buildMove(GenericValue newIssue, GenericValue changeGroup)
          Build a new move event with the updated issue, and the old issue.
static StatisticsUpdateEvent buildUpdate(GenericValue issue, GenericValue changeGroup)
          Build a new update event with the updated issue and the change group for this update.
 boolean equals(java.lang.Object o)
           
 GenericValue getEntity()
           
 java.lang.String getEntityType()
           
 java.lang.Object getParameter()
          The parameter of this event is an object representing extra information that is useful to the statistics engine.
 int getType()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATE_EVENT

public static final int CREATE_EVENT
See Also:
Constant Field Values

DELETE_EVENT

public static final int DELETE_EVENT
See Also:
Constant Field Values

MOVE_EVENT

public static final int MOVE_EVENT
See Also:
Constant Field Values

UPDATE_EVENT

public static final int UPDATE_EVENT
See Also:
Constant Field Values
Method Detail

buildCreate

public static StatisticsUpdateEvent buildCreate(GenericValue entity)
Build a new create event with a single entity.


buildDelete

public static StatisticsUpdateEvent buildDelete(GenericValue entity)
Build a new delete event with a single entity.


buildDelete

public static StatisticsUpdateEvent buildDelete(GenericValue entity,
                                                GenericValue changeGroup)
Build a new delete event with a change group as we can not update and delete at the same time

Parameters:
entity -
changeGroup -
Returns:

buildMove

public static StatisticsUpdateEvent buildMove(GenericValue newIssue,
                                              GenericValue changeGroup)
Build a new move event with the updated issue, and the old issue.


buildUpdate

public static StatisticsUpdateEvent buildUpdate(GenericValue issue,
                                                GenericValue changeGroup)
Build a new update event with the updated issue and the change group for this update.


getType

public int getType()

getEntity

public GenericValue getEntity()

getEntityType

public java.lang.String getEntityType()

getParameter

public java.lang.Object getParameter()
The parameter of this event is an object representing extra information that is useful to the statistics engine. For example the old issue when moving, or the list of issues affected by this particular event.


equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()