Class VersionHistoryDraftVersionLinkRepository

  • All Implemented Interfaces:
    LinkRestRepository

    @Component("versioning.versionhistory.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 Detail

      • VersionHistoryDraftVersionLinkRepository

        public VersionHistoryDraftVersionLinkRepository()
    • Method Detail

      • getDraftVersion

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