com.atlassian.jira.event
Class AbstractProjectEvent

java.lang.Object
  extended by com.atlassian.jira.event.AbstractEvent
      extended by com.atlassian.jira.event.AbstractProjectEvent
All Implemented Interfaces:
JiraEvent, ProjectRelatedEvent
Direct Known Subclasses:
ProjectCreatedEvent, ProjectDeletedEvent, ProjectUpdatedEvent

@PublicApi
public abstract class AbstractProjectEvent
extends AbstractEvent
implements ProjectRelatedEvent

Basic representation of something that happens to a Project, such as a modification. Event listeners register to receive these.

Since:
v6.1

Field Summary
 
Fields inherited from class com.atlassian.jira.event.AbstractEvent
params, time
 
Constructor Summary
AbstractProjectEvent(ApplicationUser user, Project project)
           
 
Method Summary
 boolean equals(Object o)
          Note: this will not compare the time stamps of two events - only everything else.
 Project getProject()
           
 ApplicationUser getUser()
          Returns the user who initiated this event.
 int hashCode()
           
 
Methods inherited from class com.atlassian.jira.event.AbstractEvent
getParams, getTime
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.event.JiraEvent
getParams, getTime
 

Constructor Detail

AbstractProjectEvent

@Internal
public AbstractProjectEvent(@Nullable
                                     ApplicationUser user,
                                     @Nonnull
                                     Project project)
Method Detail

getProject

@Nonnull
public Project getProject()
Specified by:
getProject in interface ProjectRelatedEvent

getUser

@Nullable
public ApplicationUser getUser()
Returns the user who initiated this event.

Returns:
the user who initiated this event.

equals

public boolean equals(Object o)
Note: this will not compare the time stamps of two events - only everything else.

Overrides:
equals in class AbstractEvent

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractEvent


Copyright © 2002-2014 Atlassian. All Rights Reserved.