Package org.dspace.app.rest.repository
Class VersionItemLinkRepository
java.lang.Object
org.dspace.app.rest.repository.AbstractDSpaceRestRepository
org.dspace.app.rest.repository.VersionItemLinkRepository
- All Implemented Interfaces:
LinkRestRepository
@Component("versioning.versions.item")
public class VersionItemLinkRepository
extends AbstractDSpaceRestRepository
implements LinkRestRepository
-
Field Summary
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetVersionItem(jakarta.servlet.http.HttpServletRequest request, Integer versionId, org.springframework.data.domain.Pageable optionalPageable, Projection projection) This method will return the ItemRest object constructed from the Item object which is found in the Version that will be found through the 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
-
VersionItemLinkRepository
public VersionItemLinkRepository()
-
-
Method Details
-
getVersionItem
public ItemRest getVersionItem(@Nullable jakarta.servlet.http.HttpServletRequest request, Integer versionId, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection) throws SQLException This method will return the ItemRest object constructed from the Item object which is found in the Version that will be found through the versionId parameter- Parameters:
request- The current requestversionId- The ID for the Version to be usedoptionalPageable- The pageable if presentprojection- The current Projection- Returns:
- The ItemRest object that is relevant for the Version
- Throws:
SQLException- If something goes wrong
-