Uses of Class
org.dspace.app.rest.model.RelationshipRest
Packages that use RelationshipRest
Package
Description
-
Uses of RelationshipRest in org.dspace.app.rest
Methods in org.dspace.app.rest that return RelationshipRestModifier and TypeMethodDescriptionRelationshipRestController.updateRelationshipLeft(Integer id, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.http.HttpServletRequest request) Method to change the left item of a relationship with a given item in the bodyRelationshipRestController.updateRelationshipRight(Integer id, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.http.HttpServletRequest request) Method to change the right item of a relationship with a given item in the body -
Uses of RelationshipRest in org.dspace.app.rest.converter
Methods in org.dspace.app.rest.converter that return RelationshipRestModifier and TypeMethodDescriptionRelationshipConverter.convert(Relationship obj, Projection projection) -
Uses of RelationshipRest in org.dspace.app.rest.model.hateoas
Constructors in org.dspace.app.rest.model.hateoas with parameters of type RelationshipRest -
Uses of RelationshipRest in org.dspace.app.rest.repository
Methods in org.dspace.app.rest.repository that return RelationshipRestModifier and TypeMethodDescriptionprotected RelationshipRestRelationshipRestRepository.createAndReturn(Context context, List<String> stringList) protected RelationshipRestRelationshipRestRepository.put(Context context, jakarta.servlet.http.HttpServletRequest request, String apiCategory, String model, Integer id, com.fasterxml.jackson.databind.JsonNode jsonNode) Method to replace the metadata of a relationship (the left/right places and the leftward/rightward labels)RelationshipRestRepository.put(Context context, String contextPath, Integer id, List<String> stringList, Boolean itemToReplaceIsRight) Method to replace either the right or left item of a relationship with a given new item Called by request mappings in RelationshipRestController - For replace right item (itemToReplaceIsRight = true) => Newly proposed changed relationship: left = old-left; right = new-item - For replace left item (itemToReplaceIsRight = false) => Newly proposed changed relationship: left = new-item; right = old-rightMethods in org.dspace.app.rest.repository that return types with arguments of type RelationshipRestModifier and TypeMethodDescriptionorg.springframework.data.domain.Page<RelationshipRest>RelationshipRestRepository.findAll(Context context, org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<RelationshipRest>RelationshipRestRepository.findByItemsAndType(Integer typeId, String label, UUID focusUUID, Set<UUID> items, org.springframework.data.domain.Pageable pageable) This method is intended to be used when giving an item (focus) and a list of potentially related items we need to know which of these other items are already in a specific relationship with the focus item and, by exclusion which ones are not yet related.org.springframework.data.domain.Page<RelationshipRest>RelationshipRestRepository.findByLabel(String label, UUID dsoId, String relatedEntityType, org.springframework.data.domain.Pageable pageable) This method will find all the Relationship objects that a RelationshipType that corresponds to the given Label It's also possible to pass a DSO along to this method with a parameter which will only return Relationship objects that have this DSO as leftItem or rightItem.RelationshipRestRepository.getDomainClass()org.springframework.data.domain.Page<RelationshipRest>ItemRelationshipLinkRepository.getRelationships(jakarta.servlet.http.HttpServletRequest request, UUID itemId, org.springframework.data.domain.Pageable optionalPageable, Projection projection)