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

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.AttachmentUpdateEvent
All Implemented Interfaces:
Contented, Timestamped, ConfluenceEntityUpdated, Updated, java.io.Serializable

public class AttachmentUpdateEvent
extends AttachmentEvent
implements Updated, ConfluenceEntityUpdated

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AttachmentUpdateEvent(java.lang.Object src, Attachment attachment, Attachment previousVersion)
           
 
Method Summary
 Attachment getNew()
           
 Attachment getOld()
           
 boolean isAttachmentContainerUpdated()
           
 boolean isFileNameChanged()
           
 
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

AttachmentUpdateEvent

public AttachmentUpdateEvent(java.lang.Object src,
                             Attachment attachment,
                             Attachment previousVersion)
Method Detail

getOld

public Attachment getOld()
Specified by:
getOld in interface ConfluenceEntityUpdated
Returns:
the old content before the update

getNew

public Attachment getNew()
Specified by:
getNew in interface ConfluenceEntityUpdated
Returns:
the new content after the update

isFileNameChanged

public boolean isFileNameChanged()

isAttachmentContainerUpdated

public boolean isAttachmentContainerUpdated()
Returns:
true if the content containing the attachment has moved space or changed title.


Copyright © 2003-2014 Atlassian. All Rights Reserved.