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.versionhistory.draftVersion") public class VersionHistoryDraftVersionLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepositoryThis 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 Constructor Description VersionHistoryDraftVersionLinkRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AInprogressSubmissionRestgetDraftVersion(javax.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, obtainContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.app.rest.repository.LinkRestRepository
isEmbeddableRelation
-
-
-
-
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
-
-