Package com.atlassian.confluence.core
Interface SaveContext
-
- All Superinterfaces:
OperationContext<PageUpdateTrigger>
,Serializable
- All Known Implementing Classes:
DefaultSaveContext
public interface SaveContext extends OperationContext<PageUpdateTrigger>, Serializable
Context for managers to call upon when making decisions about how to save an object.- Since:
- 6.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
doUpdateLastModifier()
UpdateLastModifier indicates whether to update the LastModifier field when saving a page.boolean
isSuppressAutowatch()
Control whether the save should result in the page being watched by the creator if they have their autowatch setting on.void
setSuppressNotifications(boolean suppressNotifications)
Deprecated.since 6.0.void
setUpdateLastModifier(boolean updateLastModifier)
Deprecated.since 6.0.-
Methods inherited from interface com.atlassian.confluence.core.OperationContext
getUpdateTrigger, isEventSuppressed, isSuppressNotifications
-
-
-
-
Method Detail
-
doUpdateLastModifier
boolean doUpdateLastModifier()
UpdateLastModifier indicates whether to update the LastModifier field when saving a page.- Returns:
- true if the LastModifier should be updated
-
setUpdateLastModifier
@Deprecated void setUpdateLastModifier(boolean updateLastModifier)
Deprecated.since 6.0. UseDefaultSaveContext.builder()
instead.
-
setSuppressNotifications
@Deprecated void setSuppressNotifications(boolean suppressNotifications)
Deprecated.since 6.0. UseDefaultSaveContext.builder()
instead.Indicates that notifications should not be sent out informing users of the changes to this content.
-
isSuppressAutowatch
boolean isSuppressAutowatch()
Control whether the save should result in the page being watched by the creator if they have their autowatch setting on. This has no effect if the event is suppressed as it is implemented as a property on the event.- Returns:
- if true if automatic watches is to be suppressed.
-
-