Package com.atlassian.confluence.core
Class DefaultSaveContext
java.lang.Object
com.atlassian.confluence.core.AbstractOperationContext<PageUpdateTrigger>
com.atlassian.confluence.core.DefaultSaveContext
- All Implemented Interfaces:
OperationContext<PageUpdateTrigger>
,SaveContext
,Serializable
@ParametersAreNonnullByDefault
public class DefaultSaveContext
extends AbstractOperationContext<PageUpdateTrigger>
implements SaveContext
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.atlassian.confluence.core.AbstractOperationContext
AbstractOperationContext.BaseBuilder<T extends AbstractOperationContext.BaseBuilder,
TRIGGER extends OperationTrigger> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SaveContext
static final SaveContext
static final SaveContext
static final SaveContext
static final SaveContext
static final SaveContext
static final SaveContext
static final SaveContext
static final SaveContext
Fields inherited from class com.atlassian.confluence.core.AbstractOperationContext
suppressNotifications
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSaveContext
(boolean suppressNotifications, boolean updateLastModifier, boolean suppressEvents) Deprecated.since 6.0.DefaultSaveContext
(boolean suppressNotifications, boolean updateLastModifier, boolean suppressEvents, PageUpdateTrigger updateTrigger) Deprecated.since 6.0. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultSaveContext.Builder
builder()
boolean
UpdateLastModifier indicates whether to update the LastModifier field when saving a page.boolean
int
hashCode()
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 class com.atlassian.confluence.core.AbstractOperationContext
getUpdateTrigger, isEventSuppressed, isSuppressNotifications
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.core.OperationContext
getUpdateTrigger, isEventSuppressed, isSuppressNotifications
-
Field Details
-
MINOR_EDIT
-
SUPPRESS_NOTIFICATIONS
-
REFACTORING
-
BULK_OPERATION
- Since:
- 6.0
-
DEFAULT
-
DRAFT
-
RAW_DRAFT
-
DRAFT_REFACTORING
-
REVERT
-
-
Constructor Details
-
DefaultSaveContext
@Deprecated public DefaultSaveContext(boolean suppressNotifications, boolean updateLastModifier, boolean suppressEvents) Deprecated.since 6.0. Use thebuilder()
or one of the final, pre-constructed contexts. -
DefaultSaveContext
@Deprecated public DefaultSaveContext(boolean suppressNotifications, boolean updateLastModifier, boolean suppressEvents, PageUpdateTrigger updateTrigger) Deprecated.since 6.0. Use thebuilder()
or one of the final, pre-constructed contexts.
-
-
Method Details
-
isSuppressAutowatch
public boolean isSuppressAutowatch()Description copied from interface:SaveContext
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.- Specified by:
isSuppressAutowatch
in interfaceSaveContext
- Returns:
- if true if automatic watches is to be suppressed.
-
setSuppressNotifications
Deprecated.since 6.0. Use thebuilder()
instead.Description copied from interface:SaveContext
Indicates that notifications should not be sent out informing users of the changes to this content.- Specified by:
setSuppressNotifications
in interfaceSaveContext
-
doUpdateLastModifier
public boolean doUpdateLastModifier()Description copied from interface:SaveContext
UpdateLastModifier indicates whether to update the LastModifier field when saving a page.- Specified by:
doUpdateLastModifier
in interfaceSaveContext
- Returns:
- true if the LastModifier should be updated
-
setUpdateLastModifier
Deprecated.since 6.0. Use thebuilder()
instead.- Specified by:
setUpdateLastModifier
in interfaceSaveContext
-
equals
-
hashCode
public int hashCode() -
builder
- Returns:
- A builder object with all boolean fields initialised to false and updateTrigger initialised to UNKNOWN.
- Since:
- 6.0
-