com.microsoft.tfs.core.clients.teamstore
Class TeamProjectCollectionTeamStore

java.lang.Object
  extended by com.microsoft.tfs.core.clients.teamstore.TeamProjectCollectionTeamStore

public class TeamProjectCollectionTeamStore
extends java.lang.Object

An in-memory cache of team information for a TFSTeamProjectCollection . This service is more high-level and user-centric than TeamService.

Do not construct a TeamProjectCollectionTeamStore directly, use TFSConnection.getClient(Class) to get one.

Since:
TEE-SDK-11.0

Constructor Summary
TeamProjectCollectionTeamStore(TFSTeamProjectCollection teamProjectCollection)
           
 
Method Summary
 TeamConfiguration getTeam(java.lang.String projectUri, com.microsoft.tfs.util.GUID id)
          Gets the corresponding TeamConfiguration object for the project.
 TeamConfiguration getTeam(java.lang.String projectUri, java.lang.String teamName)
          Gets the corresponding TeamConfiguration object for the project.
 TeamConfiguration[] getTeams(java.lang.String projectUri)
          Gets all the corresponding TeamConfiguration objects for the project that the current user belongs to.
 TeamConfiguration[] getTeamsForCurrentUser()
          Gets all the Teams the active user is a member of for the selected project Uris (selected in the 'Initialize' or via the 'GetTeam' methods).
 void initializeTeamCache(ProjectInfo[] infos)
          Initializes the cache with the TeamConfiguration for the specified set of projects.
 void initializeTeamCache(java.lang.String[] projectUris)
          Initializes the cache with the TeamConfiguration for the specified set of projects.
 boolean supportsTeam()
          Property used to determine if the server we are talking to supports the required services.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeamProjectCollectionTeamStore

public TeamProjectCollectionTeamStore(TFSTeamProjectCollection teamProjectCollection)
Method Detail

supportsTeam

public boolean supportsTeam()
Property used to determine if the server we are talking to supports the required services.

Returns:
true if the server supports Teams, false otherwise

initializeTeamCache

public void initializeTeamCache(ProjectInfo[] infos)
Initializes the cache with the TeamConfiguration for the specified set of projects.


initializeTeamCache

public void initializeTeamCache(java.lang.String[] projectUris)
Initializes the cache with the TeamConfiguration for the specified set of projects.


getTeamsForCurrentUser

public TeamConfiguration[] getTeamsForCurrentUser()
Gets all the Teams the active user is a member of for the selected project Uris (selected in the 'Initialize' or via the 'GetTeam' methods).


getTeam

public TeamConfiguration getTeam(java.lang.String projectUri,
                                 java.lang.String teamName)
Gets the corresponding TeamConfiguration object for the project.

Parameters:
projectUri - The team project Uri
teamName - The team name

getTeam

public TeamConfiguration getTeam(java.lang.String projectUri,
                                 com.microsoft.tfs.util.GUID id)
Gets the corresponding TeamConfiguration object for the project.

Parameters:
projectUri - The team project Uri
id - The TeamFoundationIdentity id for the team

getTeams

public TeamConfiguration[] getTeams(java.lang.String projectUri)
Gets all the corresponding TeamConfiguration objects for the project that the current user belongs to.

Parameters:
projectUri - The team project Uri


© 2015 Microsoft. All rights reserved.