@Override public int countItems(Context context, Community community) throws SQLException { // First we need a list of all collections under this community in the hierarchy List<Collection> collections = communityService.getAllCollections(context, community); // Now, lets count unique items across that list of collections return itemDAO.countItems(context, collections, true, false); }
@Override public int countAllItems(Context context, Community community) throws SQLException { // First we need a list of all collections under this community in the hierarchy List<Collection> collections = communityService.getAllCollections(context, community); // Now, lets count unique items across that list of collections return itemDAO.countItems(context, collections, true, false) + itemDAO.countItems(context, collections, false, true); }
if (dsoCommunity instanceof Community) { Community community = (Community) dsoCommunity; List<Collection> collections = communityService.getAllCollections(context, community);
.getAllCollections(context, community));
Community community = (Community) dso; List<Collection> collections = communityService.getAllCollections(context, community); for (Collection collection : collections) { ArrayList<UUID> items = new ArrayList<>();
for (Collection col : communityService.getAllCollections(context, community)) { if (!RDFUtil.isPublicBoolean(context, col)) { continue;