Class VersionHistoryLinkRepository

java.lang.Object
org.dspace.app.rest.repository.AbstractDSpaceRestRepository
org.dspace.app.rest.repository.VersionHistoryLinkRepository
All Implemented Interfaces:
LinkRestRepository

@Component("versioning.versions.versionhistory") public class VersionHistoryLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepository
This is the Repository that takes care of the retrieval of the VersionHistory object for a given Version
  • Constructor Details

    • VersionHistoryLinkRepository

      public VersionHistoryLinkRepository()
  • Method Details

    • getVersionHistory

      public VersionHistoryRest getVersionHistory(@Nullable jakarta.servlet.http.HttpServletRequest request, Integer versionId, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection) throws SQLException
      This method will retrieve the VersionHistoryRest object from the Version that is found by the associated versionId parameter
      Parameters:
      request - The current request
      versionId - The ID for the Version object
      optionalPageable - The pageable if present
      projection - The current Projection
      Returns:
      The VersionHistoryRest object that is constructed from the VersionHistory object that is linked to the Version found by the versionId parameter
      Throws:
      SQLException - If something goes wrong