mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 10:34:25 +00:00
Rename leftwardLabel and rightwardLabel
Renamed the leftwardLabel and rightwardlabel for Relationship to leftwardValue and rightwardValue. Renamed the same values for RelationshipType to leftwardType and rightwardType.
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.getLeftwardLabel(),label) ||
|
||||
StringUtils.equals(relationshipType.getRightwardLabel(),label)) {
|
||||
if (StringUtils.equals(relationshipType.getLeftwardType(),label) ||
|
||||
StringUtils.equals(relationshipType.getRightwardType(),label)) {
|
||||
listToReturn.add(relationship);
|
||||
}
|
||||
}
|
||||
@@ -129,11 +129,11 @@ public class EntityServiceImpl implements EntityService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<RelationshipType> getRelationshipTypesByLabel(Context context, String label) throws SQLException {
|
||||
public List<RelationshipType> getRelationshipTypesByType(Context context, String label) throws SQLException {
|
||||
List<RelationshipType> listToReturn = new LinkedList<>();
|
||||
for (RelationshipType relationshipType : relationshipTypeService.findAll(context)) {
|
||||
if (StringUtils.equals(relationshipType.getLeftwardLabel(),label) ||
|
||||
StringUtils.equals(relationshipType.getRightwardLabel(),label)) {
|
||||
if (StringUtils.equals(relationshipType.getLeftwardType(),label) ||
|
||||
StringUtils.equals(relationshipType.getRightwardType(),label)) {
|
||||
listToReturn.add(relationshipType);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user