Class EntityTypeRelationshipLinkRepository

  • All Implemented Interfaces:
    LinkRestRepository

    @Component("core.entitytype.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 Detail

      • EntityTypeRelationshipLinkRepository

        public EntityTypeRelationshipLinkRepository()
    • Method Detail

      • getEntityTypeRelationship

        public org.springframework.data.domain.Page<RelationshipTypeRest> getEntityTypeRelationship​(@Nullable
                                                                                                    javax.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