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()
SaveContextisSuppressNotifications in interface SaveContextpublic void setSuppressNotifications(boolean suppressNotifications)
SaveContextsetSuppressNotifications in interface SaveContextpublic 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.