Package com.atlassian.confluence.core
Interface SaveContext
- All Superinterfaces:
OperationContext<PageUpdateTrigger>
,Serializable
- All Known Implementing Classes:
DefaultSaveContext
Context for managers to call upon when making decisions about how to save
an object.
- Since:
- 6.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
UpdateLastModifier indicates whether to update the LastModifier field when saving a page.boolean
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 Details
-
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.since 6.0. UseDefaultSaveContext.builder()
instead. -
setSuppressNotifications
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.
-