Package jetbrains.buildServer.users.sync
Class MockFetcher
- java.lang.Object
-
- jetbrains.buildServer.users.sync.MockFetcher
-
- All Implemented Interfaces:
RemoteDataFetcher
public class MockFetcher extends Object implements RemoteDataFetcher
- Since:
- 8.0
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Constructor Summary
Constructors Constructor Description MockFetcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteDatafetchAllRemoteData(RemoteDataFetcherOptions options)Fetches and returns the remote data provided the options to fetch.RemoteGroupDatafetchRemoteGroupData(SUserGroup userGroup)Fetches and returns the remote data for the specifieduser group.RemoteUserDatafetchRemoteUserData(SUser user)Fetches and returns the remote data for the specifieduser.voidsetGroupData(List<RemoteGroupData> groupData)voidsetUserData(List<RemoteUserData> userData)
-
-
-
Method Detail
-
fetchAllRemoteData
@NotNull public RemoteData fetchAllRemoteData(@NotNull RemoteDataFetcherOptions options)
Description copied from interface:RemoteDataFetcherFetches and returns the remote data provided the options to fetch. Method doesn't cache any results (hence can be slow, but always up-to-date) and doesn't throw.- Specified by:
fetchAllRemoteDatain interfaceRemoteDataFetcher- Parameters:
options- the options- Returns:
- remote data, if it exists and can be fetched, or
null
-
fetchRemoteUserData
@Nullable public RemoteUserData fetchRemoteUserData(@NotNull SUser user)
Description copied from interface:RemoteDataFetcherFetches and returns the remote data for the specifieduser. Method doesn't cache any results (hence can be slow, but always up-to-date) and doesn't throw.- Specified by:
fetchRemoteUserDatain interfaceRemoteDataFetcher- Parameters:
user- the user- Returns:
- remote data, if it exists and can be fetched, or
null
-
fetchRemoteGroupData
@Nullable public RemoteGroupData fetchRemoteGroupData(@NotNull SUserGroup userGroup)
Description copied from interface:RemoteDataFetcherFetches and returns the remote data for the specifieduser group. Method doesn't cache any results (hence can be slow, but always up-to-date) and doesn't throw.- Specified by:
fetchRemoteGroupDatain interfaceRemoteDataFetcher- Parameters:
userGroup- the user group- Returns:
- remote data, if it exists and can be fetched, or
null
-
setUserData
public void setUserData(@Nullable List<RemoteUserData> userData)
-
setGroupData
public void setGroupData(@Nullable List<RemoteGroupData> groupData)
-
-