Overwrite getName usage in applicable services

- Added two useful log statements
This commit is contained in:
Jens Vannerum
2022-05-24 14:31:59 +02:00
parent 4e04dfd8d5
commit 177d4424db
3 changed files with 12 additions and 0 deletions

View File

@@ -113,9 +113,11 @@ public abstract class IndexFactoryImpl<T extends IndexableObject, S> implements
log.info("Full text is larger than the configured limit (discovery.solr.fulltext.charLimit)."
+ " Only the first {} characters were indexed.", charLimit);
} else {
log.error("Tika parsing error. Could not index full text.", saxe);
throw new IOException("Tika parsing error. Could not index full text.", saxe);
}
} catch (TikaException ex) {
log.error("Tika parsing error. Could not index full text.", ex);
throw new IOException("Tika parsing error. Could not index full text.", ex);
}

View File

@@ -569,4 +569,9 @@ public class EPersonServiceImpl extends DSpaceObjectServiceImpl<EPerson> impleme
public int countTotal(Context context) throws SQLException {
return ePersonDAO.countRows(context);
}
@Override
public String getName(EPerson dso) {
return dso.getName();
}
}

View File

@@ -829,4 +829,9 @@ public class GroupServiceImpl extends DSpaceObjectServiceImpl<Group> implements
final MetadataField metadataField) throws SQLException {
return groupDAO.findByMetadataField(context, searchValue, metadataField);
}
@Override
public String getName(Group dso) {
return dso.getName();
}
}