Uses of Class
org.dspace.app.rest.model.RelationshipRest
-
Packages that use RelationshipRest Package Description org.dspace.app.rest org.dspace.app.rest.converter org.dspace.app.rest.model.hateoas org.dspace.app.rest.repository -
-
Uses of RelationshipRest in org.dspace.app.rest
Methods in org.dspace.app.rest that return RelationshipRest Modifier and Type Method Description RelationshipRestRelationshipRestController. updateRelationshipLeft(Integer id, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)Method to change the left item of a relationship with a given item in the bodyRelationshipRestRelationshipRestController. updateRelationshipRight(Integer id, javax.servlet.http.HttpServletResponse response, javax.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 RelationshipRest Modifier and Type Method Description RelationshipRestRelationshipConverter. convert(org.dspace.content.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 Constructor Description RelationshipResource(RelationshipRest data, Utils utils) -
Uses of RelationshipRest in org.dspace.app.rest.repository
Methods in org.dspace.app.rest.repository that return RelationshipRest Modifier and Type Method Description protected RelationshipRestRelationshipRestRepository. createAndReturn(org.dspace.core.Context context, List<String> stringList)RelationshipRestRelationshipRestRepository. findOne(org.dspace.core.Context context, Integer integer)RelationshipRestRelationshipRestRepository. put(org.dspace.core.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-rightprotected RelationshipRestRelationshipRestRepository. put(org.dspace.core.Context context, javax.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)Methods in org.dspace.app.rest.repository that return types with arguments of type RelationshipRest Modifier and Type Method Description org.springframework.data.domain.Page<RelationshipRest>RelationshipRestRepository. findAll(org.dspace.core.Context context, org.springframework.data.domain.Pageable pageable)org.springframework.data.domain.Page<RelationshipRest>RelationshipRestRepository. findByLabel(String label, UUID dsoId, 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.Class<RelationshipRest>RelationshipRestRepository. getDomainClass()org.springframework.data.domain.Page<RelationshipRest>ItemRelationshipLinkRepository. getRelationships(javax.servlet.http.HttpServletRequest request, UUID itemId, org.springframework.data.domain.Pageable optionalPageable, Projection projection)
-