Package org.dspace.app.rest.repository
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)
-
Field Summary
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDraftVersion(jakarta.servlet.http.HttpServletRequest request, Integer versionHistoryId, org.springframework.data.domain.Pageable optionalPageable, Projection projection) Methods inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
getRequestService, obtainContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dspace.app.rest.repository.LinkRestRepository
isEmbeddableRelation
-
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
-