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.version.versionhistory") public class VersionHistoryLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepositoryThis is the Repository that takes care of the retrieval of theVersionHistoryobject for a givenVersion
-
-
Field Summary
-
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils
-
-
Constructor Summary
Constructors Constructor Description VersionHistoryLinkRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersionHistoryRestgetVersionHistory(javax.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 parameter-
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
-
getVersionHistory
public VersionHistoryRest getVersionHistory(@Nullable javax.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
-
-