91680: Refactor: move entity type getters to itemService

This commit is contained in:
Bruno Roemers
2022-05-24 17:13:01 +02:00
committed by Ben Bosman
parent a028b4130f
commit 3a5766a5d2
7 changed files with 68 additions and 70 deletions

View File

@@ -2753,7 +2753,7 @@ public class RelationshipServiceImplPlaceTest extends AbstractUnitTest {
}
private String getRelationshipTypeStringForEntity(RelationshipType relationshipType, Item item) {
String entityType = relationshipMetadataService.getEntityTypeStringFromMetadata(item);
String entityType = itemService.getEntityTypeLabel(item);
if (StringUtils.equals(entityType, relationshipType.getLeftType().getLabel())) {
return relationshipType.getLeftwardType();