Class VersionsLinkRepository

    • Constructor Detail

      • VersionsLinkRepository

        public VersionsLinkRepository()
    • Method Detail

      • getVersions

        @PreAuthorize("@versioningSecurity.isEnableVersioning() && hasPermission(#versionHistoryId, \'VERSIONHISTORY\', \'READ\')")
        public org.springframework.data.domain.Page<VersionRest> getVersions​(@Nullable
                                                                             javax.servlet.http.HttpServletRequest request,
                                                                             Integer versionHistoryId,
                                                                             @Nullable
                                                                             org.springframework.data.domain.Pageable optionalPageable,
                                                                             Projection projection)
                                                                      throws SQLException
        This method will return a page of VersionRest objects found through the VersionHistory object that is resolved from the versionHistoryId parameter
        Parameters:
        request - The current request
        versionHistoryId - The ID for the VersionHistory to be used
        optionalPageable - The pageable if present
        projection - The current Projection
        Returns:
        The page containing relevant VersionRest objects
        Throws:
        SQLException - If something goes wrong