Package com.atlassian.confluence.core
Interface OperationContext<TRIGGER extends OperationTrigger>
- All Known Subinterfaces:
DeleteContext
,SaveContext
- All Known Implementing Classes:
AbstractOperationContext
,DefaultDeleteContext
,DefaultSaveContext
public interface OperationContext<TRIGGER extends OperationTrigger>
Context for managers to call upon when making decisions on how to handle a given object operation (create,delete,save)
- Since:
- 6.0
-
Method Summary
Modifier and TypeMethodDescription@NonNull TRIGGER
boolean
Control whether the save should result in an event being published.boolean
Indicates that notifications should not be sent out informing users of the changes to this content.
-
Method Details
-
isEventSuppressed
boolean isEventSuppressed()Control whether the save should result in an event being published. If this is false then there will be no event published. It should be noted that even if this is false, whether an event is actually published is a decision of the involved publishing component. So by setting this true you can ensure there is not an event. Setting false does not guarantee you will get an event.- Returns:
- if true if event publishing is to be suppressed.
-
isSuppressNotifications
boolean isSuppressNotifications()Indicates that notifications should not be sent out informing users of the changes to this content.- Returns:
- true if notifications should not be sent to users.
-
getUpdateTrigger
@NonNull TRIGGER getUpdateTrigger()- Returns:
- an indication of how the content update was triggered
- Since:
- 4.3
-