Package org.dspace.app.rest.repository
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)
-
Field Summary
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<RelationshipTypeRest>getEntityTypeRelationship(jakarta.servlet.http.HttpServletRequest request, Integer id, 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.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
-
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 objectid- The ID of the EntityType objects that we'll use to retrieve the RelationshipTypesoptionalPageable- The pagination objectprojection- The current Projection- Returns:
- List of RelationshipType objects as defined above
-