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:
ConfluenceEntityUpdated, Updated, 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(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.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

AttachmentUpdateEvent

public AttachmentUpdateEvent(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-2011 Atlassian. All Rights Reserved.