Class VersionHistoryDraftVersionLinkRepository

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

@Component("versioning.versionhistories.draftVersion") public class VersionHistoryDraftVersionLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepository
This is the Repository that retrieve the most recent version in the history that could live eventually in the workspace or workflow.
Author:
Mykhaylo Boychuk (mykhaylo.boychuk at 4science.it)
  • Constructor Details

    • VersionHistoryDraftVersionLinkRepository

      public VersionHistoryDraftVersionLinkRepository()
  • Method Details

    • getDraftVersion

      @PreAuthorize("@versioningSecurity.isEnableVersioning() && hasPermission(@extractorOf.getAInprogressSubmissionID(#request, #versionHistoryId), @extractorOf.getAInprogressSubmissionTarget(#request, #versionHistoryId), \'READ\')") public AInprogressSubmissionRest getDraftVersion(@Nullable jakarta.servlet.http.HttpServletRequest request, Integer versionHistoryId, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection) throws SQLException
      Throws:
      SQLException