Class ItemVersionLinkRepository

    • Constructor Detail

      • ItemVersionLinkRepository

        public ItemVersionLinkRepository()
    • Method Detail

      • getItemVersion

        @PreAuthorize("hasPermission(#itemUuid, \'ITEM\', \'READ\')")
        public VersionRest getItemVersion​(@Nullable
                                          javax.servlet.http.HttpServletRequest request,
                                          UUID itemUuid,
                                          @Nullable
                                          org.springframework.data.domain.Pageable optionalPageable,
                                          Projection projection)
                                   throws SQLException
        This method will return the VersionRest object from the Item that is associated with the given itemUuid
        Parameters:
        request - The current request
        itemUuid - The itemUuid used to find the Item for which we'll return the VersionRest object
        optionalPageable - Pageable if present
        projection - Current Projection
        Returns:
        The VersionRest object constructed from the Version object for the Item that has the itemUuid param as UUID
        Throws:
        SQLException - If something goes wrong