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 SaveContextstatic final SaveContextstatic final SaveContextstatic final SaveContextstatic final SaveContextstatic final SaveContextstatic final SaveContextstatic final SaveContextstatic final SaveContextFields 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.Builderbuilder()booleanUpdateLastModifier indicates whether to update the LastModifier field when saving a page.booleaninthashCode()booleanControl whether the save should result in the page being watched by the creator if they have their autowatch setting on.voidsetSuppressNotifications(boolean suppressNotifications) Deprecated.since 6.0.voidsetUpdateLastModifier(boolean updateLastModifier) Deprecated.since 6.0.Methods inherited from class com.atlassian.confluence.core.AbstractOperationContext
getUpdateTrigger, isEventSuppressed, isSuppressNotificationsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:SaveContextControl 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:
isSuppressAutowatchin interfaceSaveContext- Returns:
- if true if automatic watches is to be suppressed.
-
setSuppressNotifications
Deprecated.since 6.0. Use thebuilder()instead.Description copied from interface:SaveContextIndicates that notifications should not be sent out informing users of the changes to this content.- Specified by:
setSuppressNotificationsin interfaceSaveContext
-
doUpdateLastModifier
public boolean doUpdateLastModifier()Description copied from interface:SaveContextUpdateLastModifier indicates whether to update the LastModifier field when saving a page.- Specified by:
doUpdateLastModifierin interfaceSaveContext- Returns:
- true if the LastModifier should be updated
-
setUpdateLastModifier
Deprecated.since 6.0. Use thebuilder()instead.- Specified by:
setUpdateLastModifierin 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
-