@ParametersAreNonnullByDefault public class DefaultSaveContext extends AbstractOperationContext<PageUpdateTrigger> implements SaveContext
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultSaveContext.Builder |
AbstractOperationContext.BaseBuilder<T extends AbstractOperationContext.BaseBuilder,TRIGGER extends OperationTrigger>| Modifier and Type | Field and Description |
|---|---|
static SaveContext |
BULK_OPERATION |
static SaveContext |
DEFAULT |
static SaveContext |
DRAFT |
static SaveContext |
DRAFT_REFACTORING |
static SaveContext |
MINOR_EDIT |
static SaveContext |
RAW_DRAFT |
static SaveContext |
REFACTORING |
static SaveContext |
REVERT |
static SaveContext |
SUPPRESS_NOTIFICATIONS |
suppressNotifications| Constructor and Description |
|---|
DefaultSaveContext(boolean suppressNotifications,
boolean updateLastModifier,
boolean suppressEvents)
Deprecated.
since 6.0. Use the
builder() or one of the final, pre-constructed contexts. |
DefaultSaveContext(boolean suppressNotifications,
boolean updateLastModifier,
boolean suppressEvents,
PageUpdateTrigger updateTrigger)
Deprecated.
since 6.0. Use the
builder() or one of the final, pre-constructed contexts. |
| Modifier and Type | Method and Description |
|---|---|
static DefaultSaveContext.Builder |
builder() |
boolean |
doUpdateLastModifier()
UpdateLastModifier indicates whether to update the LastModifier field when saving
a page.
|
boolean |
equals(Object o) |
int |
hashCode() |
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. Use the
builder() instead. |
void |
setUpdateLastModifier(boolean updateLastModifier)
Deprecated.
since 6.0. Use the
builder() instead. |
getUpdateTrigger, isEventSuppressed, isSuppressNotificationsclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetUpdateTrigger, isEventSuppressed, isSuppressNotificationspublic static final SaveContext MINOR_EDIT
public static final SaveContext SUPPRESS_NOTIFICATIONS
public static final SaveContext REFACTORING
public static final SaveContext BULK_OPERATION
public static final SaveContext DEFAULT
public static final SaveContext DRAFT
public static final SaveContext RAW_DRAFT
public static final SaveContext DRAFT_REFACTORING
public static final SaveContext REVERT
@Deprecated public DefaultSaveContext(boolean suppressNotifications, boolean updateLastModifier, boolean suppressEvents)
builder() or one of the final, pre-constructed contexts.@Deprecated public DefaultSaveContext(boolean suppressNotifications, boolean updateLastModifier, boolean suppressEvents, PageUpdateTrigger updateTrigger)
builder() or one of the final, pre-constructed contexts.public boolean isSuppressAutowatch()
SaveContextisSuppressAutowatch in interface SaveContext@Deprecated public void setSuppressNotifications(boolean suppressNotifications)
builder() instead.SaveContextsetSuppressNotifications in interface SaveContextpublic boolean doUpdateLastModifier()
SaveContextdoUpdateLastModifier in interface SaveContext@Deprecated public void setUpdateLastModifier(boolean updateLastModifier)
builder() instead.setUpdateLastModifier in interface SaveContextpublic static DefaultSaveContext.Builder builder()
Copyright © 2003–2020 Atlassian. All rights reserved.