Item counters refactor. Removing unnecessary code.

This commit is contained in:
damian
2023-05-12 12:29:22 +02:00
parent 0231af5867
commit 1cc6fb2f58
9 changed files with 21 additions and 27 deletions

View File

@@ -713,8 +713,6 @@ public class CommunityServiceImpl extends DSpaceObjectServiceImpl<Community> imp
@Override
public int getArchivedItems(Community community) throws ItemCountException {
//TODO load ItemCounter on bean creation
Context context = new Context();
return new ItemCounter(context).getCount(community);
return ItemCounter.getInstance().getCount(community);
}
}