calls this in ItemService:
override def contributorsForOrg(orgId: ObjectId): Seq[String] = {
val readableCollectionIds = orgCollectionService
.getCollections(orgId, Permission.Read)
.fold(_ => Seq.empty, c => c)
.map(_.id)
.filterNot(_ == archiveConfig.contentCollectionId)
.map(_.toString)
logger.trace(ds(readableCollectionIds))
val filter = baseQuery ++ MongoDBObject(
Keys.collectionId -> MongoDBObject("$in" -> readableCollectionIds))
//TODO: RF - include versioned content?
logger.trace(ds(filter))
dao.distinct("contributorDetails.contributor", filter).map(_.toString)
}
calls this in
ItemService: