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

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.AttachmentCreateEvent
All Implemented Interfaces:
Created, Serializable

public class AttachmentCreateEvent
extends AttachmentEvent
implements Created

An event indicating that one or more attachments have been added to a piece of content.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AttachmentCreateEvent(Object src, Attachment attachment)
           
AttachmentCreateEvent(Object src, List<Attachment> attachments)
          Construct a new AttachmentCreateEvent.
 
Method Summary
 
Methods inherited from class com.atlassian.confluence.event.events.content.attachment.AttachmentEvent
getAttachments, getContent
 
Methods inherited from class com.atlassian.event.Event
equals, 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
 

Constructor Detail

AttachmentCreateEvent

public AttachmentCreateEvent(Object src,
                             List<Attachment> attachments)
Construct a new AttachmentCreateEvent. Note that all attachments in a single event must have been attached to the same piece of content!

Parameters:
src - the event source
attachments - the attachments that have been created

AttachmentCreateEvent

public AttachmentCreateEvent(Object src,
                             Attachment attachment)


Copyright © 2003-2011 Atlassian. All Rights Reserved.