@ParametersAreNonnullByDefault public class DefaultSaveContext extends Object implements SaveContext
| Modifier and Type | Field and Description |
|---|---|
static SaveContext |
DEFAULT |
static SaveContext |
DRAFT |
static SaveContext |
DRAFT_REFACTORING |
static SaveContext |
MINOR_EDIT |
static SaveContext |
REFACTORING |
static SaveContext |
REVERT |
static SaveContext |
SUPPRESS_NOTIFICATIONS |
| Constructor and Description |
|---|
DefaultSaveContext()
Deprecated.
since 4.2. Use the explicit constructor, or one of the final, pre-constructed contexts.
|
DefaultSaveContext(boolean suppressNotifications,
boolean updateLastModifier,
boolean suppressEvents) |
DefaultSaveContext(boolean suppressNotifications,
boolean updateLastModifier,
boolean suppressEvents,
PageUpdateTrigger updateTrigger) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doUpdateLastModifier()
UpdateLastModifier indicates whether to update the LastModifier field when saving
a page.
|
boolean |
equals(Object o) |
PageUpdateTrigger |
getUpdateTrigger() |
int |
hashCode() |
boolean |
isEventSuppressed()
Control whether the save should result in an event being published.
|
boolean |
isMinorEdit()
Deprecated.
since 5.4. Use com.atlassian.confluence.core.DefaultSaveContext#isSuppressNotifications instead.
|
boolean |
isSuppressNotifications()
Indicates that notifications should not be sent out informing users
of the changes to this content.
|
void |
setMinorEdit(boolean minorEdit)
Deprecated.
since 5.4. Use com.atlassian.confluence.core.DefaultSaveContext#setSuppressNotifications instead.
|
void |
setSuppressNotifications(boolean suppressNotifications)
Indicates that notifications should not be sent out informing users
of the changes to this content.
|
void |
setUpdateLastModifier(boolean updateLastModifier) |
public static final SaveContext MINOR_EDIT
public static final SaveContext SUPPRESS_NOTIFICATIONS
public static final SaveContext REFACTORING
public static final SaveContext DEFAULT
public static final SaveContext DRAFT
public static final SaveContext DRAFT_REFACTORING
public static final SaveContext REVERT
public DefaultSaveContext(boolean suppressNotifications,
boolean updateLastModifier,
boolean suppressEvents)
public DefaultSaveContext(boolean suppressNotifications,
boolean updateLastModifier,
boolean suppressEvents,
PageUpdateTrigger updateTrigger)
@Deprecated public DefaultSaveContext()
public boolean isSuppressNotifications()
SaveContextisSuppressNotifications in interface SaveContextpublic void setSuppressNotifications(boolean suppressNotifications)
SaveContextsetSuppressNotifications in interface SaveContext@Nonnull public PageUpdateTrigger getUpdateTrigger()
getUpdateTrigger in interface SaveContext@Deprecated public boolean isMinorEdit()
isMinorEdit in interface SaveContext@Deprecated public void setMinorEdit(boolean minorEdit)
setMinorEdit in interface SaveContextpublic boolean doUpdateLastModifier()
SaveContextdoUpdateLastModifier in interface SaveContextpublic void setUpdateLastModifier(boolean updateLastModifier)
setUpdateLastModifier in interface SaveContextpublic boolean isEventSuppressed()
SaveContextisEventSuppressed in interface SaveContextCopyright © 2003–2016 Atlassian. All rights reserved.