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