class AssetGroupTargetDetailsServiceImpl implements AssetGroupTargetDetailsService, Constants {

	@Override
	public List<TargetTypeRuleDetails> getTargetTypesByAssetGroupName(String assetGroupName) {
		AssetGroupDetails assetGroupDetails = assetGroupService.findByGroupName(assetGroupName);
		List<AssetGroupTargetDetails> allAssetGroupTargetDetails = assetGroupTargetDetailsRepository.findByGroupId(assetGroupDetails.getGroupId());
		List<TargetTypeRuleDetails> allStudentsDetails = allAssetGroupTargetDetails.parallelStream().map(fetchTargetTypeRuleDetails).collect(Collectors.toList());
		return allStudentsDetails;
	}

}