public class GeneralAttachmentUpdateEvent extends AttachmentEvent implements Updated, ConfluenceEntityUpdated
source
Constructor and Description |
---|
GeneralAttachmentUpdateEvent(Object src,
Attachment attachment,
Attachment previousVersion) |
GeneralAttachmentUpdateEvent(Object src,
Attachment attachment,
Attachment previousVersion,
boolean suppressNotifications) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable Object o)
Equals for ConfluenceEvents is defined such that specific sub-events are only equal to events of the same type.
|
@NonNull Attachment |
getNew() |
@NonNull 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)
public GeneralAttachmentUpdateEvent(Object src, Attachment attachment, Attachment previousVersion, boolean suppressNotifications)
public @NonNull Attachment getOld()
getOld
in interface ConfluenceEntityUpdated
public @NonNull 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–2020 Atlassian. All rights reserved.