Class VersionItemLinkRepository

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

@Component("versioning.versions.item") public class VersionItemLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepository
This Repository takes care of the retrieval of the Item objects for a given Version
  • Constructor Details

    • VersionItemLinkRepository

      public VersionItemLinkRepository()
  • Method Details

    • getVersionItem

      public ItemRest getVersionItem(@Nullable jakarta.servlet.http.HttpServletRequest request, Integer versionId, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection) throws SQLException
      This method will return the ItemRest object constructed from the Item object which is found in the Version that will be found through the versionId parameter
      Parameters:
      request - The current request
      versionId - The ID for the Version to be used
      optionalPageable - The pageable if present
      projection - The current Projection
      Returns:
      The ItemRest object that is relevant for the Version
      Throws:
      SQLException - If something goes wrong