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 TypeMethodDescriptionbooleanEquals for ConfluenceEvents is defined such that specific sub-events are only equal to events of the same type.inthashCode()Subclasses must override this to hash their own fields.booleanvoidsetSuppressNotifications(boolean suppressNotifications) Deprecated.since 5.11.0, useContentEvent(Object, boolean)Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.confluence.event.events.content.Contented
getContentMethods 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:ConfluenceEventEquals 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:
equalsin 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:ConfluenceEventSubclasses must override this to hash their own fields.- Overrides:
hashCodein classConfluenceEvent- Returns:
- the hashcode
-
ContentEvent(Object, boolean)