Class ContentEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
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
Represents something that has happened to a particular piece of content
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionContentEvent
(Object src) Deprecated.ContentEvent
(Object src, boolean suppressNotifications) Deprecated.since 7.1.0, useContentEvent(Object, OperationContext)
ContentEvent
(Object source, @Nullable OperationContext<?> context) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
void
setSuppressNotifications
(boolean suppressNotifications) Deprecated.since 5.11.0, useContentEvent(Object, boolean)
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
Methods inherited from interface com.atlassian.confluence.event.events.content.Contented
getContent
Methods inherited from interface com.atlassian.confluence.event.events.Timestamped
getTimestamp
-
Constructor Details
-
ContentEvent
Deprecated.since 5.11.0 , useContentEvent(Object, boolean)
-
ContentEvent
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
- Since:
- 7.1.0
-
-
Method Details
-
isSuppressNotifications
public boolean isSuppressNotifications() -
setSuppressNotifications
Deprecated.since 5.11.0, useContentEvent(Object, boolean)
-
equals
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.
-
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
-
ContentEvent(Object, boolean)