mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-16 14:33:09 +00:00
[CST-5587] Fixed compilation errors
This commit is contained in:
@@ -132,7 +132,7 @@ public class OrcidQueueConsumer implements Consumer {
|
||||
*/
|
||||
private void consumeItem(Context context, Item item) throws SQLException {
|
||||
|
||||
String entityType = itemService.getEntityType(item);
|
||||
String entityType = itemService.getEntityTypeLabel(item);
|
||||
if (entityType == null) {
|
||||
return;
|
||||
}
|
||||
@@ -322,7 +322,7 @@ public class OrcidQueueConsumer implements Consumer {
|
||||
}
|
||||
|
||||
private boolean isNotProfileItem(Item ownerItem) {
|
||||
return !getProfileType().equals(itemService.getEntityType(ownerItem));
|
||||
return !getProfileType().equals(itemService.getEntityTypeLabel(ownerItem));
|
||||
}
|
||||
|
||||
private String getMetadataValue(Item item, String metadataField) {
|
||||
|
@@ -56,7 +56,7 @@ public class OrcidEntityFactoryServiceImpl implements OrcidEntityFactoryService
|
||||
}
|
||||
|
||||
private Optional<OrcidEntityType> getOrcidEntityType(Item item) {
|
||||
return Optional.ofNullable(OrcidEntityType.fromEntityType(itemService.getEntityType(item)));
|
||||
return Optional.ofNullable(OrcidEntityType.fromEntityType(itemService.getEntityTypeLabel(item)));
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -93,7 +93,7 @@ public class OrcidQueueServiceImpl implements OrcidQueueService {
|
||||
public OrcidQueue createEntityInsertionRecord(Context context, Item owner, Item entity) throws SQLException {
|
||||
OrcidQueue orcidQueue = new OrcidQueue();
|
||||
orcidQueue.setEntity(entity);
|
||||
orcidQueue.setRecordType(itemService.getEntityType(entity));
|
||||
orcidQueue.setRecordType(itemService.getEntityTypeLabel(entity));
|
||||
orcidQueue.setOwner(owner);
|
||||
orcidQueue.setDescription(getMetadataValue(entity, "dc.title"));
|
||||
orcidQueue.setOperation(OrcidOperation.INSERT);
|
||||
@@ -107,7 +107,7 @@ public class OrcidQueueServiceImpl implements OrcidQueueService {
|
||||
orcidQueue.setOwner(owner);
|
||||
orcidQueue.setEntity(entity);
|
||||
orcidQueue.setPutCode(putCode);
|
||||
orcidQueue.setRecordType(itemService.getEntityType(entity));
|
||||
orcidQueue.setRecordType(itemService.getEntityTypeLabel(entity));
|
||||
orcidQueue.setDescription(getMetadataValue(entity, "dc.title"));
|
||||
orcidQueue.setOperation(OrcidOperation.UPDATE);
|
||||
return orcidQueueDAO.create(context, orcidQueue);
|
||||
@@ -217,7 +217,7 @@ public class OrcidQueueServiceImpl implements OrcidQueueService {
|
||||
|
||||
return findRelationshipsByItem(context, profile).stream()
|
||||
.map(relationship -> getRelatedItem(relationship, profile))
|
||||
.filter(item -> entityType.equals(itemService.getEntityType(item)))
|
||||
.filter(item -> entityType.equals(itemService.getEntityTypeLabel(item)))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
}
|
||||
|
@@ -161,7 +161,7 @@ public class OrcidSynchronizationServiceImpl implements OrcidSynchronizationServ
|
||||
@Override
|
||||
public boolean isSynchronizationEnabled(Item profile, Item item) {
|
||||
|
||||
String entityType = itemService.getEntityType(item);
|
||||
String entityType = itemService.getEntityTypeLabel(item);
|
||||
if (entityType == null) {
|
||||
return false;
|
||||
}
|
||||
|
@@ -1669,7 +1669,7 @@ prevent the generation of resource policy entry values with null dspace_object a
|
||||
|
||||
private void createOrcidQueueRecordsToDeleteOnOrcid(Context context, Item entity) throws SQLException {
|
||||
|
||||
String entityType = getEntityType(entity);
|
||||
String entityType = getEntityTypeLabel(entity);
|
||||
if (researcherProfileService.getProfileType().equals(entityType)) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user