Uses of Class
org.dspace.content.Relationship
Packages that use Relationship
Package
Description
Provides an API for reading and manipulating content in the DSpace system.
-
Uses of Relationship in org.dspace.content
Fields in org.dspace.content with type parameters of type RelationshipModifier and TypeFieldDescriptionstatic jakarta.persistence.metamodel.EntityType<Relationship>Relationship_.class_static jakarta.persistence.metamodel.SingularAttribute<Relationship,Integer> Relationship_.idstatic jakarta.persistence.metamodel.SingularAttribute<Relationship,Relationship.LatestVersionStatus> Relationship_.latestVersionStatusstatic jakarta.persistence.metamodel.SingularAttribute<Relationship,Item> Relationship_.leftItemstatic jakarta.persistence.metamodel.SingularAttribute<Relationship,Integer> Relationship_.leftPlacestatic jakarta.persistence.metamodel.SingularAttribute<Relationship,String> Relationship_.leftwardValuestatic jakarta.persistence.metamodel.SingularAttribute<Relationship,RelationshipType> Relationship_.relationshipTypestatic jakarta.persistence.metamodel.SingularAttribute<Relationship,Item> Relationship_.rightItemstatic jakarta.persistence.metamodel.SingularAttribute<Relationship,Integer> Relationship_.rightPlacestatic jakarta.persistence.metamodel.SingularAttribute<Relationship,String> Relationship_.rightwardValueMethods in org.dspace.content that return RelationshipModifier and TypeMethodDescriptionRelationshipServiceImpl.create(Context c, Item leftItem, Item rightItem, RelationshipType relationshipType, int leftPlace, int rightPlace) RelationshipServiceImpl.create(Context c, Item leftItem, Item rightItem, RelationshipType relationshipType, int leftPlace, int rightPlace, String leftwardValue, String rightwardValue) RelationshipServiceImpl.create(Context c, Item leftItem, Item rightItem, RelationshipType relationshipType, int leftPlace, int rightPlace, String leftwardValue, String rightwardValue, Relationship.LatestVersionStatus latestVersionStatus) RelationshipServiceImpl.create(Context context, Relationship relationship) RelationshipServiceImpl.move(Context context, Relationship relationship, Integer newLeftPlace, Integer newRightPlace) RelationshipServiceImpl.move(Context context, Relationship relationship, Item newLeftItem, Item newRightItem) Methods in org.dspace.content that return types with arguments of type RelationshipModifier and TypeMethodDescriptionRelationshipServiceImpl.findByItem(Context context, Item item) RelationshipServiceImpl.findByItem(Context context, Item item, Integer limit, Integer offset, boolean excludeTilted) RelationshipServiceImpl.findByItem(Context context, Item item, Integer limit, Integer offset, boolean excludeTilted, boolean excludeNonLatest) RelationshipServiceImpl.findByItemAndRelationshipType(Context context, Item item, RelationshipType relationshipType) RelationshipServiceImpl.findByItemAndRelationshipType(Context context, Item item, RelationshipType relationshipType, boolean isLeft) RelationshipServiceImpl.findByItemAndRelationshipType(Context context, Item item, RelationshipType relationshipType, boolean isLeft, int limit, int offset) RelationshipServiceImpl.findByItemAndRelationshipType(Context context, Item item, RelationshipType relationshipType, boolean isLeft, int limit, int offset, boolean excludeNonLatest) RelationshipServiceImpl.findByItemAndRelationshipType(Context context, Item item, RelationshipType relationshipType, int limit, int offset) RelationshipServiceImpl.findByItemAndRelationshipType(Context context, Item item, RelationshipType relationshipType, int limit, int offset, boolean excludeNonLatest) RelationshipServiceImpl.findByItemRelationshipTypeAndRelatedList(Context context, UUID focusUUID, RelationshipType relationshipType, List<UUID> items, boolean isLeft, int offset, int limit) RelationshipServiceImpl.findByRelationshipType(Context context, RelationshipType relationshipType) RelationshipServiceImpl.findByRelationshipType(Context context, RelationshipType relationshipType, Integer limit, Integer offset) RelationshipServiceImpl.findByTypeName(Context context, String typeName) RelationshipServiceImpl.findByTypeName(Context context, String typeName, Integer limit, Integer offset) EntityServiceImpl.getLeftRelations(Context context, Entity entity) EntityServiceImpl.getRelationsByTypeName(Context context, String typeName) EntityServiceImpl.getRelationsByTypeName(Context context, String typeName, Integer limit, Integer offset) Entity.getRelationships()Standard getter for the list of relationships for the Item in this Entity objectEntityServiceImpl.getRightRelations(Context context, Entity entity) Methods in org.dspace.content with parameters of type RelationshipModifier and TypeMethodDescriptionRelationshipServiceImpl.create(Context context, Relationship relationship) voidRelationshipServiceImpl.delete(Context context, Relationship relationship) voidRelationshipServiceImpl.delete(Context context, Relationship relationship, boolean copyToLeftItem, boolean copyToRightItem) RelationshipMetadataService.findRelationshipMetadataValueForItemRelationship(Context context, Item item, String entityType, Relationship relationship, boolean enableVirtualMetadata) Retrieves the list of RelationshipMetadataValue objects specific to only one Relationship of the item.RelationshipMetadataServiceImpl.findRelationshipMetadataValueForItemRelationship(Context context, Item item, String entityType, Relationship relationship, boolean enableVirtualMetadata) voidRelationshipServiceImpl.forceDelete(Context context, Relationship relationship, boolean copyToLeftItem, boolean copyToRightItem) RelationshipServiceImpl.move(Context context, Relationship relationship, Integer newLeftPlace, Integer newRightPlace) RelationshipServiceImpl.move(Context context, Relationship relationship, Item newLeftItem, Item newRightItem) voidRelationshipServiceImpl.update(Context context, Relationship relationship) Method parameters in org.dspace.content with type arguments of type RelationshipModifier and TypeMethodDescriptionvoidEntity.setRelationships(List<Relationship> relationships) Standard setter for the list of relationships for the Item in this Entity objectvoidRelationshipServiceImpl.update(Context context, List<Relationship> relationships) Constructor parameters in org.dspace.content with type arguments of type RelationshipModifierConstructorDescriptionEntity(Item item, List<Relationship> relationshipList) constructor for the Entity object -
Uses of Relationship in org.dspace.content.dao
Methods in org.dspace.content.dao that return types with arguments of type RelationshipModifier and TypeMethodDescriptionRelationshipDAO.findByItem(Context context, Item item, boolean excludeTilted, boolean excludeNonLatest) This method returns a list of Relationship objects that have the given Item object as a leftItem or a rightItemRelationshipDAO.findByItem(Context context, Item item, Integer limit, Integer offset, boolean excludeTilted, boolean excludeNonLatest) This method returns a list of Relationship objects that have the given Item object as a leftItem or a rightItemRelationshipDAO.findByItemAndRelationshipType(Context context, Item item, RelationshipType relationshipType, boolean isLeft, Integer limit, Integer offset, boolean excludeNonLatest) This method returns a list of Relationship objects for the given RelationshipType object.RelationshipDAO.findByItemAndRelationshipType(Context context, Item item, RelationshipType relationshipType, Integer limit, Integer offset, boolean excludeNonLatest) This method returns a list of Relationship objects for the given RelationshipType object.RelationshipDAO.findByItemAndRelationshipTypeAndList(Context context, UUID focusUUID, RelationshipType relationshipType, List<UUID> items, boolean isLeft, int offset, int limit) This method is used to retrieve relationships that match focusItem on the one hand and matches list of related items elsewhere.RelationshipDAO.findByRelationshipType(Context context, RelationshipType relationshipType) This method returns a list of Relationship objects for the given RelationshipType object.RelationshipDAO.findByRelationshipType(Context context, RelationshipType relationshipType, Integer limit, Integer offset) This method returns a list of Relationship objects for the given RelationshipType object.RelationshipDAO.findByTypeName(Context context, String typeName) This method returns a list of Relationship objects for the given typeNameRelationshipDAO.findByTypeName(Context context, String typeName, Integer limit, Integer offset) This method returns a list of Relationship objects for the given typeName -
Uses of Relationship in org.dspace.content.dao.impl
Methods in org.dspace.content.dao.impl that return types with arguments of type RelationshipModifier and TypeMethodDescriptionRelationshipDAOImpl.findByItem(Context context, Item item, boolean excludeTilted, boolean excludeNonLatest) RelationshipDAOImpl.findByItem(Context context, Item item, Integer limit, Integer offset, boolean excludeTilted, boolean excludeNonLatest) RelationshipDAOImpl.findByItemAndRelationshipType(Context context, Item item, RelationshipType relationshipType, boolean isLeft, Integer limit, Integer offset, boolean excludeNonLatest) RelationshipDAOImpl.findByItemAndRelationshipType(Context context, Item item, RelationshipType relationshipType, Integer limit, Integer offset, boolean excludeNonLatest) RelationshipDAOImpl.findByItemAndRelationshipTypeAndList(Context context, UUID focusUUID, RelationshipType relationshipType, List<UUID> items, boolean isLeft, int offset, int limit) RelationshipDAOImpl.findByRelationshipType(Context context, RelationshipType relationshipType) RelationshipDAOImpl.findByRelationshipType(Context context, RelationshipType relationshipType, Integer limit, Integer offset) RelationshipDAOImpl.findByTypeName(Context context, String typeName) RelationshipDAOImpl.findByTypeName(Context context, String typeName, Integer limit, Integer offset) Method parameters in org.dspace.content.dao.impl with type arguments of type RelationshipModifier and TypeMethodDescriptionprotected jakarta.persistence.criteria.PredicateRelationshipDAOImpl.getLeftItemPredicate(jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder, jakarta.persistence.criteria.Root<Relationship> relationshipRoot, Item item, boolean excludeTilted, boolean excludeNonLatest) Get the predicate for a criteria query that selects relationships by their left item.protected jakarta.persistence.criteria.PredicateRelationshipDAOImpl.getRightItemPredicate(jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder, jakarta.persistence.criteria.Root<Relationship> relationshipRoot, Item item, boolean excludeTilted, boolean excludeNonLatest) Get the predicate for a criteria query that selects relationships by their right item. -
Uses of Relationship in org.dspace.content.service
Methods in org.dspace.content.service that return RelationshipModifier and TypeMethodDescriptionRelationshipService.create(Context c, Item leftItem, Item rightItem, RelationshipType relationshipType, int leftPlace, int rightPlace) This method is used to construct a Relationship object with all it's variables, except the leftward label, rightward label and latest version statusRelationshipService.create(Context c, Item leftItem, Item rightItem, RelationshipType relationshipType, int leftPlace, int rightPlace, String leftwardValue, String rightwardValue) This method is used to construct a Relationship object with all it's variables, except the latest version statusRelationshipService.create(Context c, Item leftItem, Item rightItem, RelationshipType relationshipType, int leftPlace, int rightPlace, String leftwardValue, String rightwardValue, Relationship.LatestVersionStatus latestVersionStatus) This method is used to construct a Relationship object with all it's variablesRelationshipService.create(Context context, Relationship relationship) This method creates a relationship object in the database equal to the given relationship param if this is a valid relationshipRelationshipService.move(Context context, Relationship relationship, Integer newLeftPlace, Integer newRightPlace) Move the given relationship to a new leftPlace and/or rightPlace.RelationshipService.move(Context context, Relationship relationship, Item newLeftItem, Item newRightItem) Move the given relationship to a new leftItem and/or rightItem.Methods in org.dspace.content.service that return types with arguments of type RelationshipModifier and TypeMethodDescriptionRetrieves the full list of relationships currently in the systemRetrieves the full list of relationships currently in the systemRelationshipService.findByItem(Context context, Item item) Retrieves the list of Relationships currently in the system for which the given Item is either a leftItem or a rightItem objectRelationshipService.findByItem(Context context, Item item, Integer limit, Integer offset, boolean excludeTilted) Retrieves the list of Relationships currently in the system for which the given Item is either a leftItem or a rightItem objectRelationshipService.findByItem(Context context, Item item, Integer limit, Integer offset, boolean excludeTilted, boolean excludeNonLatest) Retrieves the list of Relationships currently in the system for which the given Item is either a leftItem or a rightItem objectRelationshipService.findByItemAndRelationshipType(Context context, Item item, RelationshipType relationshipType) This method returns a list of Relationships for which the leftItem or rightItem is equal to the given Item object and for which the RelationshipType object is equal to the relationshipType property NOTE: tilted relationships are NEVER excluded when fetching one relationship typeRelationshipService.findByItemAndRelationshipType(Context context, Item item, RelationshipType relationshipType, boolean isLeft, int limit, int offset) This method returns a list of Relationships for which the leftItem or rightItem is equal to the given Item object and for which the RelationshipType object is equal to the relationshipType property NOTE: tilted relationships are NEVER excluded when fetching one relationship typeRelationshipService.findByItemAndRelationshipType(Context context, Item item, RelationshipType relationshipType, boolean isLeft, int limit, int offset, boolean excludeNonLatest) This method returns a list of Relationships for which the leftItem or rightItem is equal to the given Item object and for which the RelationshipType object is equal to the relationshipType property NOTE: tilted relationships are NEVER excluded when fetching one relationship typeRelationshipService.findByItemAndRelationshipType(Context context, Item item, RelationshipType relationshipType, int limit, int offset) This method returns a list of Relationships for which the leftItem or rightItem is equal to the given Item object and for which the RelationshipType object is equal to the relationshipType property NOTE: tilted relationships are NEVER excluded when fetching one relationship typeRelationshipService.findByItemAndRelationshipType(Context context, Item item, RelationshipType relationshipType, int limit, int offset, boolean excludeNonLatest) This method returns a list of Relationships for which the leftItem or rightItem is equal to the given Item object and for which the RelationshipType object is equal to the relationshipType property NOTE: tilted relationships are NEVER excluded when fetching one relationship typeRelationshipService.findByItemRelationshipTypeAndRelatedList(Context context, UUID focusUUID, RelationshipType relationshipType, List<UUID> items, boolean isLeft, int offset, int limit) This method is used to retrieve relationships that match focusItem on the one hand and matches list of related items elsewhere.RelationshipService.findByRelationshipType(Context context, RelationshipType relationshipType) This method returns a list of Relationship objects for which the relationshipType property is equal to the given RelationshipType object NOTE: tilted relationships are NEVER excluded when fetching one relationship typeRelationshipService.findByRelationshipType(Context context, RelationshipType relationshipType, Integer limit, Integer offset) This method returns a list of Relationship objects for which the relationshipType property is equal to the given RelationshipType object NOTE: tilted relationships are NEVER excluded when fetching one relationship typeRelationshipService.findByTypeName(Context context, String typeName) This method returns a list of Relationship objects for the given typeNameRelationshipService.findByTypeName(Context context, String typeName, Integer limit, Integer offset) This method returns a list of Relationship objects for the given typeNameEntityService.getLeftRelations(Context context, Entity entity) Retrieves the list of relationships, which are attached to the Entity object that is passed along, where the left item object of each relationship is equal to the Item object of the Entity object that is passed alongEntityService.getRelationsByTypeName(Context context, String typeName) Retrieves the list of relationships for which their relationshiptype has a left or right label that is equal to the passed along label StringEntityService.getRelationsByTypeName(Context context, String typeName, Integer limit, Integer offset) Retrieves the list of relationships for which their relationshiptype has a left or right label that is equal to the passed along label StringEntityService.getRightRelations(Context context, Entity entity) Retrieves the list of relationships, which are attached to the Entity object that is passed along, where the right item object of each relationship is equal to the Item object of the Entity object that is passed alongMethods in org.dspace.content.service with parameters of type RelationshipModifier and TypeMethodDescriptionRelationshipService.create(Context context, Relationship relationship) This method creates a relationship object in the database equal to the given relationship param if this is a valid relationshipvoidRelationshipService.delete(Context context, Relationship relationship, boolean copyToLeftItem, boolean copyToRightItem) This method is used to delete a Relationship whilst given the possibility to copy the Virtual Metadata created by this relationship to the left and/or right itemvoidRelationshipService.forceDelete(Context context, Relationship relationship, boolean copyToLeftItem, boolean copyToRightItem) This method is used to delete a Relationship whilst given the possibility to copy the Virtual Metadata created by this relationship to the left and/or right item.RelationshipService.move(Context context, Relationship relationship, Integer newLeftPlace, Integer newRightPlace) Move the given relationship to a new leftPlace and/or rightPlace.RelationshipService.move(Context context, Relationship relationship, Item newLeftItem, Item newRightItem) Move the given relationship to a new leftItem and/or rightItem. -
Uses of Relationship in org.dspace.versioning
Methods in org.dspace.versioning that return RelationshipModifier and TypeMethodDescriptionprotected RelationshipVersioningConsumer.getMatchingRelationship(Item latestItem, boolean isLeft, Relationship previousItemRelationship, List<Relationship> relationships) From a list of relationships, find the relationship with the correct relationship type and items.protected RelationshipVersioningConsumer.getMatchingRelationship(Item expectedLeftItem, RelationshipType expectedRelationshipType, Item expectedRightItem, List<Relationship> relationships) Find the relationship with the given left item, relation type and right item, from a list of relationships.Methods in org.dspace.versioning that return types with arguments of type RelationshipModifier and TypeMethodDescriptionprotected List<Relationship>VersioningConsumer.getAllRelationships(Context ctx, Item item, RelationshipType relationshipType) Get all relationships of the given type linked to the given item.Methods in org.dspace.versioning with parameters of type RelationshipModifier and TypeMethodDescriptionprotected RelationshipVersioningConsumer.getMatchingRelationship(Item latestItem, boolean isLeft, Relationship previousItemRelationship, List<Relationship> relationships) From a list of relationships, find the relationship with the correct relationship type and items.protected voidVersioningConsumer.reindexRelationship(Context ctx, RelationshipVersioningUtils.LatestVersionStatusChangelog changelog, Relationship relationship) If thelatestVersionStatusof the relationship has changed, an "item modified" event should be fired for both the left and right item of the relationship.Method parameters in org.dspace.versioning with type arguments of type RelationshipModifier and TypeMethodDescriptionprotected RelationshipVersioningConsumer.getMatchingRelationship(Item latestItem, boolean isLeft, Relationship previousItemRelationship, List<Relationship> relationships) From a list of relationships, find the relationship with the correct relationship type and items.protected RelationshipVersioningConsumer.getMatchingRelationship(Item expectedLeftItem, RelationshipType expectedRelationshipType, Item expectedRightItem, List<Relationship> relationships) Find the relationship with the given left item, relation type and right item, from a list of relationships. -
Uses of Relationship in org.dspace.versioning.utils
Methods in org.dspace.versioning.utils with parameters of type RelationshipModifier and TypeMethodDescriptionRelationshipVersioningUtils.updateLatestVersionStatus(Relationship relationship, boolean updateLeftSide, boolean isLatest) UpdatelatestVersionStatusof the given relationship.