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.entitytype.relationshiptypes") public class EntityTypeRelationshipLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepositoryLink 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 Constructor Description EntityTypeRelationshipLinkRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.data.domain.Page<RelationshipTypeRest>getEntityTypeRelationship(javax.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, obtainContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.app.rest.repository.LinkRestRepository
isEmbeddableRelation
-
-
-
-
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 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
-
-