Package org.dspace.app.rest.repository
Class VersionHistoryLinkRepository
java.lang.Object
org.dspace.app.rest.repository.AbstractDSpaceRestRepository
org.dspace.app.rest.repository.VersionHistoryLinkRepository
- All Implemented Interfaces:
LinkRestRepository
@Component("versioning.versions.versionhistory")
public class VersionHistoryLinkRepository
extends AbstractDSpaceRestRepository
implements LinkRestRepository
This is the Repository that takes care of the retrieval of the
VersionHistory object
for a given Version-
Field Summary
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetVersionHistory(jakarta.servlet.http.HttpServletRequest request, Integer versionId, org.springframework.data.domain.Pageable optionalPageable, Projection projection) This method will retrieve the VersionHistoryRest object from the Version that is found by the associated versionId parameterMethods 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
-
VersionHistoryLinkRepository
public VersionHistoryLinkRepository()
-
-
Method Details
-
getVersionHistory
public VersionHistoryRest getVersionHistory(@Nullable jakarta.servlet.http.HttpServletRequest request, Integer versionId, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection) throws SQLException This method will retrieve the VersionHistoryRest object from the Version that is found by the associated versionId parameter- Parameters:
request- The current requestversionId- The ID for the Version objectoptionalPageable- The pageable if presentprojection- The current Projection- Returns:
- The VersionHistoryRest object that is constructed from the VersionHistory object that is linked to the Version found by the versionId parameter
- Throws:
SQLException- If something goes wrong
-