[MRM-773] -added the constraints for getting the different versions of a specific artifact -added the whenGathered field in beginScan(..) of RepositoryContentConsumer interface and updated all implementing consumers