Class ContentEvent
- 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
-
- All Implemented Interfaces:
Contented
,Timestamped
,Serializable
- Direct Known Subclasses:
AbstractLikeEvent
,AttachmentEvent
,BlogPostEvent
,CommentEvent
,ContentHistoricalVersionRemoveEvent
,ContentPermissionEvent
,ContentTreePermissionReindexEvent
,PageEvent
,PersonalInformationEvent
,PluginContentCreatedEvent
,PluginContentRemovedEvent
,PluginContentUpdatedEvent
public abstract class ContentEvent extends ConfluenceEvent implements Contented, Timestamped
Represents something that has happened to a particular piece of content- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ContentEvent(Object src)
Deprecated.since 5.11.0 , useContentEvent(Object, boolean)
ContentEvent(Object src, boolean suppressNotifications)
Deprecated.since 7.1.0, useContentEvent(Object, OperationContext)
ContentEvent(Object source, @Nullable OperationContext<?> context)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.int
hashCode()
Subclasses must override this to hash their own fields.boolean
isSuppressNotifications()
void
setSuppressNotifications(boolean suppressNotifications)
Deprecated.since 5.11.0, useContentEvent(Object, boolean)
-
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.content.Contented
getContent
-
Methods inherited from interface com.atlassian.confluence.event.events.Timestamped
getTimestamp
-
-
-
-
Constructor Detail
-
ContentEvent
@Deprecated public ContentEvent(Object src)
Deprecated.since 5.11.0 , useContentEvent(Object, boolean)
-
ContentEvent
@Deprecated public ContentEvent(Object src, boolean suppressNotifications)
Deprecated.since 7.1.0, useContentEvent(Object, OperationContext)
- Parameters:
src
- The Object that raised the eventsuppressNotifications
- If true, indicates that any notifications that would triggered by this event aren't sent to users.
-
ContentEvent
public ContentEvent(Object source, @Nullable OperationContext<?> context)
- Since:
- 7.1.0
-
-
Method Detail
-
isSuppressNotifications
public boolean isSuppressNotifications()
-
setSuppressNotifications
@Deprecated public void setSuppressNotifications(boolean suppressNotifications)
Deprecated.since 5.11.0, useContentEvent(Object, boolean)
-
equals
public boolean equals(@Nullable Object o)
Description copied from class:ConfluenceEvent
Equals for ConfluenceEvents is defined such that specific sub-events are only equal to events of the same type. It is incorrect to try to make an instance of a subclass equal to an instance of any of its superclasses.Subclasses must override this to compare their own fields.
- Overrides:
equals
in classConfluenceEvent
- Parameters:
o
- the object to compare.- Returns:
- true, if the given object has the same runtime class as this object's runtime class, and the event sources are equal.
- See Also:
Event.equals(Object)
-
hashCode
public int hashCode()
Description copied from class:ConfluenceEvent
Subclasses must override this to hash their own fields.- Overrides:
hashCode
in classConfluenceEvent
- Returns:
- the hashcode
- See Also:
Event.hashCode()
-
-