com.atlassian.confluence.event.events.follow
Class FollowEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.springframework.context.ApplicationEvent
          extended by com.atlassian.event.Event
              extended by com.atlassian.confluence.event.events.ConfluenceEvent
                  extended by com.atlassian.confluence.event.events.follow.FollowEvent
All Implemented Interfaces:
UserDriven, Serializable

public class FollowEvent
extends ConfluenceEvent
implements UserDriven

An event fired when a user is followed/

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FollowEvent(Object src, com.atlassian.user.User subject, com.atlassian.user.User follower)
           
 
Method Summary
 boolean equals(Object obj)
           
 com.atlassian.user.User getFollower()
           
 com.atlassian.user.User getOriginatingUser()
          Return the user that generated the event if known.
 com.atlassian.user.User getSubject()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FollowEvent

public FollowEvent(Object src,
                   com.atlassian.user.User subject,
                   com.atlassian.user.User follower)
Parameters:
src - the source of the event
subject - the user who is now being followed by 'follower'
follower - the user who is now following another user
Method Detail

getFollower

public com.atlassian.user.User getFollower()

getSubject

public com.atlassian.user.User getSubject()

getOriginatingUser

public com.atlassian.user.User getOriginatingUser()
Description copied from interface: UserDriven
Return the user that generated the event if known.

Specified by:
getOriginatingUser in interface UserDriven
Returns:
User that drove an event. Null indicates either that the event was driven by the anonymous user or the system itself.

equals

public boolean equals(Object obj)
Overrides:
equals in class com.atlassian.event.Event

hashCode

public int hashCode()
Overrides:
hashCode in class com.atlassian.event.Event

toString

public String toString()
Overrides:
toString in class EventObject


Copyright © 2003-2013 Atlassian. All Rights Reserved.