public class GeneralAttachmentUpdateEvent extends AttachmentEvent implements Updated, ConfluenceEntityUpdated
source
Constructor and Description |
---|
GeneralAttachmentUpdateEvent(Object src,
Attachment attachment,
Attachment previousVersion) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Equals for ConfluenceEvents is defined such that specific sub-events are only equal to events of the same type.
|
Attachment |
getNew() |
Attachment |
getOld() |
int |
hashCode()
Subclasses must override this to hash their own fields.
|
boolean |
isAttachmentContainerUpdated() |
boolean |
isFileNameChanged() |
getAttachedTo, getAttachment, getAttachments, getContent
isSuppressNotifications, setSuppressNotifications
getSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTimestamp
public GeneralAttachmentUpdateEvent(Object src, Attachment attachment, Attachment previousVersion)
@Nonnull public Attachment getOld()
getOld
in interface ConfluenceEntityUpdated
@Nonnull public Attachment getNew()
getNew
in interface ConfluenceEntityUpdated
public boolean isFileNameChanged()
public boolean isAttachmentContainerUpdated()
public boolean equals(@Nullable Object o)
ConfluenceEvent
Subclasses must override this to compare their own fields.
equals
in class AttachmentEvent
o
- the object to compare.Event.equals(Object)
public int hashCode()
ConfluenceEvent
hashCode
in class AttachmentEvent
Event.hashCode()
Copyright © 2003–2016 Atlassian. All rights reserved.