Package com.atlassian.confluence.core
Class AbstractOperationContext<TRIGGER extends OperationTrigger>
- java.lang.Object
-
- com.atlassian.confluence.core.AbstractOperationContext<TRIGGER>
-
- All Implemented Interfaces:
OperationContext<TRIGGER>
- Direct Known Subclasses:
DefaultDeleteContext,DefaultSaveContext
public abstract class AbstractOperationContext<TRIGGER extends OperationTrigger> extends Object implements OperationContext<TRIGGER>
- Since:
- 6.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractOperationContext.BaseBuilder<T extends AbstractOperationContext.BaseBuilder,TRIGGER extends OperationTrigger>
-
Field Summary
Fields Modifier and Type Field Description protected booleansuppressNotifications
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractOperationContext(AbstractOperationContext.BaseBuilder<?,TRIGGER> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull TRIGGERgetUpdateTrigger()booleanisEventSuppressed()Control whether the save should result in an event being published.booleanisSuppressNotifications()Indicates that notifications should not be sent out informing users of the changes to this content.
-
-
-
Constructor Detail
-
AbstractOperationContext
protected AbstractOperationContext(AbstractOperationContext.BaseBuilder<?,TRIGGER> builder)
-
-
Method Detail
-
isEventSuppressed
public final boolean isEventSuppressed()
Description copied from interface:OperationContextControl 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.- Specified by:
isEventSuppressedin interfaceOperationContext<TRIGGER extends OperationTrigger>- Returns:
- if true if event publishing is to be suppressed.
-
isSuppressNotifications
public final boolean isSuppressNotifications()
Description copied from interface:OperationContextIndicates that notifications should not be sent out informing users of the changes to this content.- Specified by:
isSuppressNotificationsin interfaceOperationContext<TRIGGER extends OperationTrigger>- Returns:
- true if notifications should not be sent to users.
-
getUpdateTrigger
public final @NonNull TRIGGER getUpdateTrigger()
- Specified by:
getUpdateTriggerin interfaceOperationContext<TRIGGER extends OperationTrigger>- Returns:
- an indication of how the content update was triggered
-
-