mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-09 19:13:18 +00:00
Rename relationship type left and right labels
Renamed the columns 'left_label' and 'right_label' in the table 'relationship_type' to 'leftward_label' and 'rightward_label'. Also renamed all instances of [l|L]eftLabel and [r|R]ightLabel to [l|L]eftwardLabel and [r|R]ightwardLabel, respectively.
This commit is contained in:
@@ -83,8 +83,8 @@ public class EntityServiceImpl implements EntityService {
|
||||
List<Relationship> relationshipList = relationshipService.findAll(context);
|
||||
for (Relationship relationship : relationshipList) {
|
||||
RelationshipType relationshipType = relationship.getRelationshipType();
|
||||
if (StringUtils.equals(relationshipType.getLeftLabel(),label) ||
|
||||
StringUtils.equals(relationshipType.getRightLabel(),label)) {
|
||||
if (StringUtils.equals(relationshipType.getLeftwardLabel(),label) ||
|
||||
StringUtils.equals(relationshipType.getRightwardLabel(),label)) {
|
||||
listToReturn.add(relationship);
|
||||
}
|
||||
}
|
||||
@@ -132,8 +132,8 @@ public class EntityServiceImpl implements EntityService {
|
||||
public List<RelationshipType> getRelationshipTypesByLabel(Context context, String label) throws SQLException {
|
||||
List<RelationshipType> listToReturn = new LinkedList<>();
|
||||
for (RelationshipType relationshipType : relationshipTypeService.findAll(context)) {
|
||||
if (StringUtils.equals(relationshipType.getLeftLabel(),label) ||
|
||||
StringUtils.equals(relationshipType.getRightLabel(),label)) {
|
||||
if (StringUtils.equals(relationshipType.getLeftwardLabel(),label) ||
|
||||
StringUtils.equals(relationshipType.getRightwardLabel(),label)) {
|
||||
listToReturn.add(relationshipType);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user