public class DefaultSaveContext extends Object implements SaveContext
Modifier and Type | Field and Description |
---|---|
static SaveContext |
DEFAULT |
static SaveContext |
MINOR_EDIT |
static SaveContext |
REFACTORING |
static SaveContext |
SUPPRESS_NOTIFICATIONS |
Constructor and Description |
---|
DefaultSaveContext()
Deprecated.
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.
|
boolean |
isSuppressNotifications()
Indicates that notifications should not be sent out informing users
of the changes to this content.
|
void |
setMinorEdit(boolean minorEdit)
Deprecated.
|
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 DefaultSaveContext(boolean suppressNotifications, boolean updateLastModifier, boolean suppressEvents)
public DefaultSaveContext(boolean suppressNotifications, boolean updateLastModifier, boolean suppressEvents, PageUpdateTrigger updateTrigger)
public DefaultSaveContext()
public boolean isSuppressNotifications()
SaveContext
isSuppressNotifications
in interface SaveContext
public void setSuppressNotifications(boolean suppressNotifications)
SaveContext
setSuppressNotifications
in interface SaveContext
public PageUpdateTrigger getUpdateTrigger()
getUpdateTrigger
in interface SaveContext
@Deprecated public boolean isMinorEdit()
isMinorEdit
in interface SaveContext
@Deprecated public void setMinorEdit(boolean minorEdit)
setMinorEdit
in interface SaveContext
public boolean doUpdateLastModifier()
SaveContext
doUpdateLastModifier
in interface SaveContext
public void setUpdateLastModifier(boolean updateLastModifier)
setUpdateLastModifier
in interface SaveContext
public boolean isEventSuppressed()
SaveContext
isEventSuppressed
in interface SaveContext
Copyright © 2003–2015 Atlassian. All rights reserved.