Package org.dspace.app.rest.repository
Class SuggestionTargetTargetLinkRepository
java.lang.Object
org.dspace.app.rest.repository.AbstractDSpaceRestRepository
org.dspace.app.rest.repository.SuggestionTargetTargetLinkRepository
- All Implemented Interfaces:
LinkRestRepository
@Component("integration.suggestiontargets.target")
public class SuggestionTargetTargetLinkRepository
extends AbstractDSpaceRestRepository
implements LinkRestRepository
Link repository for "target" subresource of an suggestion target.
- Author:
- Andrea Bollini (andrea.bollini at 4science.it)
-
Field Summary
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTarget(jakarta.servlet.http.HttpServletRequest request, String id, org.springframework.data.domain.Pageable pageable, Projection projection) Returns the item related to the suggestion target with the given id.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
-
SuggestionTargetTargetLinkRepository
public SuggestionTargetTargetLinkRepository()
-
-
Method Details
-
getTarget
@PreAuthorize("hasPermission(#id, \'SUGGESTIONTARGET\', \'READ\')") public ItemRest getTarget(@Nullable jakarta.servlet.http.HttpServletRequest request, String id, @Nullable org.springframework.data.domain.Pageable pageable, Projection projection) Returns the item related to the suggestion target with the given id.- Parameters:
request- the http servlet requestid- the suggestion target UUIDpageable- the optional pageableprojection- the projection object- Returns:
- the target item rest representation
-