Class EntityTypeRelationshipLinkRepository

java.lang.Object
org.dspace.app.rest.repository.AbstractDSpaceRestRepository
org.dspace.app.rest.repository.EntityTypeRelationshipLinkRepository
All Implemented Interfaces:
LinkRestRepository

@Component("core.entitytypes.relationshiptypes") public class EntityTypeRelationshipLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepository
Link repository for "relationships" subresource of an individual EntityType
Author:
Mykhaylo Boychuk (mykhaylo.boychuk at 4science.it)
  • Constructor Details

    • EntityTypeRelationshipLinkRepository

      public EntityTypeRelationshipLinkRepository()
  • Method Details

    • getEntityTypeRelationship

      public org.springframework.data.domain.Page<RelationshipTypeRest> getEntityTypeRelationship(@Nullable jakarta.servlet.http.HttpServletRequest request, Integer id, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection)
      This method will retrieve all the RelationshipTypes that conform to the given EntityType by the given ID and it will return this in a wrapped resource.
      Parameters:
      request - The request object
      id - The ID of the EntityType objects that we'll use to retrieve the RelationshipTypes
      optionalPageable - The pagination object
      projection - The current Projection
      Returns:
      List of RelationshipType objects as defined above