com.microsoft.tfs.core.clients.favorites
Class FavoritesStoreFactory

java.lang.Object
  extended by com.microsoft.tfs.core.clients.favorites.FavoritesStoreFactory

public abstract class FavoritesStoreFactory
extends java.lang.Object

Exposes IFavoritesStore implementations to consumers.

Only supports IdentityFavoritesStore implementations from TFS 2010 servers and newer. No local store is availble.

Since:
TFS-SDK-11.0

Constructor Summary
FavoritesStoreFactory()
           
 
Method Summary
static IFavoritesStore create(TFSTeamProjectCollection connection, ProjectInfo currentProject, TeamConfiguration currentTeam, java.lang.String featureScope, boolean isPersonal)
          Creates a Favorites store using Identity Service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FavoritesStoreFactory

public FavoritesStoreFactory()
Method Detail

create

public static IFavoritesStore create(TFSTeamProjectCollection connection,
                                     ProjectInfo currentProject,
                                     TeamConfiguration currentTeam,
                                     java.lang.String featureScope,
                                     boolean isPersonal)
Creates a Favorites store using Identity Service.

Parameters:
connection - a TFSTeamProjectCollection (must not be null)
currentTeam - the current TFS 2012 team or null if there is none or the results should not be scoped to a team
currentProject - the current team project or null if there is none (the method will return null when this is null)
featureScope - the feature scope (must not be null or empty)
Returns:
an IFavoritesStore if currentProject was not null and the favorites store is available from the server, null otherwise


© 2015 Microsoft. All rights reserved.