public class

AttachmentRemoveEvent

extends AttachmentEvent
implements Removed UserDriven
java.lang.Object
   ↳ java.util.EventObject
     ↳ org.springframework.context.ApplicationEvent
       ↳ com.atlassian.event.Event
         ↳ com.atlassian.confluence.event.events.ConfluenceEvent
           ↳ com.atlassian.confluence.event.events.content.ContentEvent
             ↳ com.atlassian.confluence.event.events.content.attachment.AttachmentEvent
               ↳ com.atlassian.confluence.event.events.content.attachment.AttachmentRemoveEvent

Class Overview

Event sent *before* the removal of an attachment.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
AttachmentRemoveEvent(Object src, Attachment attachment, User remover)
Public Methods
Attachment getAttachment()
Get the removed attachment.
User getOriginatingUser()
Return the user that generated the event if known.
[Expand]
Inherited Methods
From class com.atlassian.confluence.event.events.content.attachment.AttachmentEvent
From class com.atlassian.confluence.event.events.content.ContentEvent
From class com.atlassian.event.Event
From class org.springframework.context.ApplicationEvent
From class java.util.EventObject
From class java.lang.Object
From interface com.atlassian.confluence.event.events.types.UserDriven

Public Constructors

public AttachmentRemoveEvent (Object src, Attachment attachment, User remover)

Public Methods

public Attachment getAttachment ()

Get the removed attachment.

public User getOriginatingUser ()

Return the user that generated the event if known.

Returns
  • User that drove an event. Null indicates either that the event was driven by the anonymous user or the system itself.