Retrieves the team information for a given collectorId, teamName, pageable

@param collectorId, teamName, pageable

@return teams
486632
@Override
    public Page<Team> getTeamByCollectorWithFilter(ObjectId collectorId, String teamName, Pageable pageable) {
        Page<Team> teams = teamRepository.findAllByCollectorIdAndNameContainingIgnoreCase(collectorId,teamName,pageable);
        return teams;
    }
115658
public CollectionRequest<Project> findByTeam(String team) {
    
        String path = String.format("/teams/%s/projects", team);
        return new CollectionRequest<Project>(this, Project.class, path, "GET");
    }
369811
private Set<Scope> getScopeList(ObjectId collectorId) {
        Set<Scope> projects = new HashSet<>();
        if(featureSettings.isCollectorItemOnlyUpdate()){
            for(FeatureBoard featureBoard: enabledFeatureBoards(collectorId)){
                Scope scope = projectRepository.findByCollectorIdAndPId(collectorId, featureBoard.getProjectId());
                if(scope != null){
                    projects.add(scope);
                }
            }
        }else {
            projects = new HashSet<>(projectRepository.findByCollectorId(collectorId));
        }
        return projects;
    }
502950
def to_team(team):
        
        from sevenbridges.models.team import Team
        if not team:
            raise SbgError('Team is required!')
        elif isinstance(team, Team):
            return team.id
        elif isinstance(team, six.string_types):
            return team
        else:
            raise SbgError('Invalid team parameter!')
933359
@RequestMapping(value = "/team", method = GET, produces = APPLICATION_JSON_VALUE)
    public List<Team> allTeams() {
        return Lists.newArrayList(this.teamService.getAllTeams());
    }
966012
public EndOfGameStats getTeamEndOfGameStats(TeamId teamId, long gameId) {
        return client.sendRpcAndWait(SERVICE, "getTeamEndOfGameStats", teamId, gameId);
    }
1105711
public CollectionRequest<Team> users(String team) {
    
        String path = String.format("/teams/%s/users", team);
        return new CollectionRequest<Team>(this, Team.class, path, "GET");
    }
905290
def get_project_collection(self, collection_id):
        
        route_values = {}
        if collection_id is not None:
            route_values['collectionId'] = self._serialize.url('collection_id', collection_id, 'str')
        response = self._send(http_method='GET',
                              location_id='8031090f-ef1d-4af6-85fc-698cd75d42bf',
                              version='5.1-preview.2',
                              route_values=route_values)
        return self._deserialize('TeamProjectCollection', response)
732186
protected function getTeam($t)
    {
        $teamInfo = (array)$t;
        $team = new Team();
        $fields = array_keys($teamInfo);
        foreach ($fields as $field) {
            // I hope, that API-response will be changed and players_ids, leagues_ids will become arrays
            if (preg_match('/^player_\d+_account_id$/', $field)) {
                $team->addPlayerId($teamInfo[$field]);
                continue;
            }
            if (preg_match('/^league_id_\d+$/', $field)) {
                $team->addLeagueId($teamInfo[$field]);
                continue;
            }
            $team->set($field, (string)$teamInfo[$field]);
        }
        return $team;
    }
1359632
def get_players(self, team):
        
        team_id = self.__get_team_id(team)
        self.logger.debug(f'Getting players of team {team_id}.')
        return self._request('teams', team_id, 'players')
240888
public function index($teamId)
    {
        $team = Team::findOrFail($teamId);
        $this->authorize('view', $team);
        return $this->respondRelatedAddresses($teamId, 'address');
    }
366179
public function getTeamMembers($teamId)
    {
        $team = $this->sugarBean->getBean('Teams', $teamId);
        $users = $team->get_team_members();

        foreach ($users as $key => $user) {
            $users[$key] = $user->fetched_row;
        }

        return $users;
    }
964192
def team(self, team_id):
        
        json = None
        if int(team_id) > 0:
            url = self._build_url('teams', str(team_id))
            json = self._json(self._get(url), 200)
        return Team(json, self._session) if json else None
1211519
def get_event_teams(self, id, **data):
        
        
        return self.get("/events/{0}/teams/".format(id), data=data)
89299
public function team()
    {
        $teams = $this->rec->teams();
        foreach ($teams as $team) {
            if ($team->index() === $this->teamIndex) {
                return $team;
            }
        }
    }
724926
public ItemRequest<Team> findById(String team) {
    
        String path = String.format("/teams/%s", team);
        return new ItemRequest<Team>(this, Team.class, path, "GET");
    }
160392
public function updateMappingTeam(int $teamId): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/admin/ldap/teams/:team_id/mapping', (string)$teamId),
            Request::METHOD_PATCH);
    }