Package org.dspace.app.rest.repository
Class ItemSubmitterLinkRepository
java.lang.Object
org.dspace.app.rest.repository.AbstractDSpaceRestRepository
org.dspace.app.rest.repository.ItemSubmitterLinkRepository
- All Implemented Interfaces:
LinkRestRepository
@Component("core.items.submitter")
public class ItemSubmitterLinkRepository
extends AbstractDSpaceRestRepository
implements LinkRestRepository
Link repository for "submitter" subresource of an item.
-
Field Summary
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetItemSubmitter(jakarta.servlet.http.HttpServletRequest request, UUID id, org.springframework.data.domain.Pageable optionalPageable, Projection projection) Retrieve the submitter for an item.Methods 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
-
ItemSubmitterLinkRepository
public ItemSubmitterLinkRepository()
-
-
Method Details
-
getItemSubmitter
@PreAuthorize("hasPermission(#id, \'ITEM\', \'READ\')") public EPersonRest getItemSubmitter(@Nullable jakarta.servlet.http.HttpServletRequest request, UUID id, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection) Retrieve the submitter for an item.- Parameters:
request- - The current requestid- - The item ID for which to retrieve the submitteroptionalPageable- - optional pageable objectprojection- - the current projection- Returns:
- the submitter for the item
-