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)
  • 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 request
      id - the suggestion target UUID
      pageable - the optional pageable
      projection - the projection object
      Returns:
      the target item rest representation