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.version.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 Constructor Description VersionItemLinkRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemRestgetVersionItem(javax.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 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
-
getVersionItem
public ItemRest getVersionItem(@Nullable javax.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
-
-