com.atlassian.confluence.event.events.content.attachment
Class AttachmentUpdateEvent
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.AttachmentUpdateEvent
- All Implemented Interfaces:
- Contented, Timestamped, ConfluenceEntityUpdated, Updated, java.io.Serializable
public class AttachmentUpdateEvent
- extends AttachmentEvent
- implements Updated, ConfluenceEntityUpdated
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
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 |
AttachmentUpdateEvent
public AttachmentUpdateEvent(java.lang.Object src,
Attachment attachment,
Attachment previousVersion)
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.