Merge pull request #8303 from atmire/fix-getname-issues-main

Overwrite getName usage in applicable services & missing log statements
This commit is contained in:
Tim Donohue
2022-06-03 16:53:49 -05:00
committed by GitHub
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)." log.info("Full text is larger than the configured limit (discovery.solr.fulltext.charLimit)."
+ " Only the first {} characters were indexed.", charLimit); + " Only the first {} characters were indexed.", charLimit);
} else { } else {
log.error("Tika parsing error. Could not index full text.", saxe);
throw new IOException("Tika parsing error. Could not index full text.", saxe); throw new IOException("Tika parsing error. Could not index full text.", saxe);
} }
} catch (TikaException ex) { } 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); 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 { public int countTotal(Context context) throws SQLException {
return ePersonDAO.countRows(context); 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 { final MetadataField metadataField) throws SQLException {
return groupDAO.findByMetadataField(context, searchValue, metadataField); return groupDAO.findByMetadataField(context, searchValue, metadataField);
} }
@Override
public String getName(Group dso) {
return dso.getName();
}
} }