class RepositoryUserProjectService implements PageableUserProjectService {

    @Override
    public Page<Project> searchProjectsForUserPaginated(String query, User user, Pageable pageable) {
        if(userService.userIsManager(user)) {
            return managerSearchService.searchProjects(query, pageable,null);
        } else {
            var userLob = userService.getUserData(user).getLob();
            return staffSearchService.searchProjects(query, pageable, userLob);
        }
    }

    @Autowired public  RepositoryUserProjectService(ProjectRepository projectRepo,
                                        UserService userService,
                                        @Qualifier("managerSearchService") HibernateSearchService managerSearchService,
                                        @Qualifier("staffSearchService") HibernateSearchService staffSearchService,
                                        ProjectBoardConfigurationProperties properties);

}