Package org.dspace.app.rest.repository
Class ItemVersionLinkRepository
- java.lang.Object
-
- org.dspace.app.rest.repository.AbstractDSpaceRestRepository
-
- org.dspace.app.rest.repository.ItemVersionLinkRepository
-
- All Implemented Interfaces:
LinkRestRepository
@Component("core.item.version") public class ItemVersionLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepositoryThis is the Repository that will take care of fetching the Version for a given Item
-
-
Field Summary
-
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils
-
-
Constructor Summary
Constructors Constructor Description ItemVersionLinkRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersionRestgetItemVersion(javax.servlet.http.HttpServletRequest request, UUID itemUuid, org.springframework.data.domain.Pageable optionalPageable, Projection projection)This method will return the VersionRest object from the Item that is associated with the given itemUuid-
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
-
getItemVersion
public VersionRest getItemVersion(@Nullable javax.servlet.http.HttpServletRequest request, UUID itemUuid, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection) throws SQLException
This method will return the VersionRest object from the Item that is associated with the given itemUuid- Parameters:
request- The current requestitemUuid- The itemUuid used to find the Item for which we'll return the VersionRest objectoptionalPageable- Pageable if presentprojection- Current Projection- Returns:
- The VersionRest object constructed from the Version object for the Item that has the itemUuid param as UUID
- Throws:
SQLException- If something goes wrong
-
-