com.atlassian.confluence.event.events.content.attachment
Class AttachmentRemoveEvent

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.content.ContentEvent
                      extended by com.atlassian.confluence.event.events.content.attachment.AttachmentEvent
                          extended by com.atlassian.confluence.event.events.content.attachment.AttachmentRemoveEvent
All Implemented Interfaces:
Contented, Timestamped, Removed, UserDriven, java.io.Serializable

public class AttachmentRemoveEvent
extends AttachmentEvent
implements Removed, UserDriven

Event sent *before* the removal of an attachment.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AttachmentRemoveEvent(java.lang.Object src, Attachment attachment, com.atlassian.user.User remover)
           
 
Method Summary
 Attachment getAttachment()
          Get the removed attachment.
 com.atlassian.user.User getOriginatingUser()
          Return the user that generated the event if known.
 
Methods inherited from class com.atlassian.confluence.event.events.content.attachment.AttachmentEvent
getAttachments, getContent
 
Methods inherited from class com.atlassian.confluence.event.events.content.ContentEvent
equals, isSuppressNotifications, setSuppressNotifications
 
Methods inherited from class com.atlassian.event.Event
hashCode
 
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.confluence.event.events.Timestamped
getTimestamp
 

Constructor Detail

AttachmentRemoveEvent

public AttachmentRemoveEvent(java.lang.Object src,
                             Attachment attachment,
                             com.atlassian.user.User remover)
Method Detail

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.

getAttachment

public Attachment getAttachment()
Get the removed attachment.



Copyright © 2003-2014 Atlassian. All Rights Reserved.