class CompetitionSetupStakeholderServiceImpl extends BaseTransactionalService implements CompetitionSetupStakeholderService {

    @Override
    public ServiceResult<List<UserResource>> findStakeholders(long competitionId) {

        List<Stakeholder> stakeholders = stakeholderRepository.findStakeholders(competitionId);
        List<UserResource> stakeholderUsers = simpleMap(stakeholders, stakeholder -> userMapper.mapToResource(stakeholder.getUser()));

        return serviceSuccess(stakeholderUsers);
    }

}