Class DefaultSaveContext

    • Constructor Detail

      • DefaultSaveContext

        @Deprecated
        public DefaultSaveContext​(boolean suppressNotifications,
                                  boolean updateLastModifier,
                                  boolean suppressEvents)
        Deprecated.
        since 6.0. Use the builder() 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 the builder() or one of the final, pre-constructed contexts.
    • Method Detail

      • isSuppressAutowatch

        public boolean isSuppressAutowatch()
        Description copied from interface: SaveContext
        Control 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:
        isSuppressAutowatch in interface SaveContext
        Returns:
        if true if automatic watches is to be suppressed.
      • setSuppressNotifications

        @Deprecated
        public void setSuppressNotifications​(boolean suppressNotifications)
        Deprecated.
        since 6.0. Use the builder() instead.
        Description copied from interface: SaveContext
        Indicates that notifications should not be sent out informing users of the changes to this content.
        Specified by:
        setSuppressNotifications in interface SaveContext
      • doUpdateLastModifier

        public boolean doUpdateLastModifier()
        Description copied from interface: SaveContext
        UpdateLastModifier indicates whether to update the LastModifier field when saving a page.
        Specified by:
        doUpdateLastModifier in interface SaveContext
        Returns:
        true if the LastModifier should be updated
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • builder

        public static DefaultSaveContext.Builder builder()
        Returns:
        A builder object with all boolean fields initialised to false and updateTrigger initialised to UNKNOWN.
        Since:
        6.0