Class ReadThroughCachingPageDao

    • Method Detail

      • getPage

        public Page getPage​(Space space,
                            String pageTitle)
        Description copied from interface: PageDao
        Get the page by space and title.
        Specified by:
        getPage in interface PageDao
        Overrides:
        getPage in class DelegatingPageDao
        Parameters:
        space - The space the page belongs to
        pageTitle - The title of the page
        Returns:
        the page with the given title in the given space, or null if no such page exists
      • getPageWithComments

        public Page getPageWithComments​(Space space,
                                        String pageTitle)
        Description copied from interface: PageDao
        Get the page by space and title, and perform an eager load of the comments and their children. This can be used as a performance optimisation when it is known that all comments will be displayed.
        Specified by:
        getPageWithComments in interface PageDao
        Overrides:
        getPageWithComments in class DelegatingPageDao
        Parameters:
        space - The space the page belongs to
        pageTitle - The title of the page
        Returns:
        the page with the given title in the given space, or null if no such page exists
      • save

        public void save​(com.atlassian.core.bean.EntityObject objectToSave,
                         com.atlassian.core.bean.EntityObject originalObject)
        Description copied from interface: VersionedObjectDao
        Saves the given current object and historical object
        Specified by:
        save in interface VersionedObjectDao<Page>
        Overrides:
        save in class DelegatingPageDao
        Parameters:
        objectToSave - the current object.
        originalObject - the original object. This will be mutated to become a historical version as part of this save.
      • saveRaw

        public void saveRaw​(com.atlassian.core.bean.EntityObject objectToSave)
        Description copied from interface: ObjectDao
        saves the object. if the object is new, this won't set the creation date on the object. if it already exists, then it won't set the date that it was updated.
        Specified by:
        saveRaw in interface ObjectDao
        Specified by:
        saveRaw in interface ObjectDaoInternal<Page>
        Overrides:
        saveRaw in class DelegatingPageDao
        Parameters:
        objectToSave - the object to save.
      • saveRawEntity

        public void saveRawEntity​(Page objectToSave)
        Description copied from interface: ObjectDaoInternal
        Saves the object without updating modification daa.

        If the object is new, this won't set the creation date on the object. If it already exists, then it won't set the date that it was updated.

        Specified by:
        saveRawEntity in interface ObjectDaoInternal<Page>
        Overrides:
        saveRawEntity in class DelegatingPageDao
        Parameters:
        objectToSave - the object to save.