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 RemoteData
fetchAllRemoteData(RemoteDataFetcherOptions options)
Fetches and returns the remote data provided the options to fetch.RemoteGroupData
fetchRemoteGroupData(SUserGroup userGroup)
Fetches and returns the remote data for the specifieduser group
.RemoteUserData
fetchRemoteUserData(SUser user)
Fetches and returns the remote data for the specifieduser
.void
setGroupData(List<RemoteGroupData> groupData)
void
setUserData(List<RemoteUserData> userData)
-
-
-
Method Detail
-
fetchAllRemoteData
@NotNull public RemoteData fetchAllRemoteData(@NotNull RemoteDataFetcherOptions options)
Description copied from interface:RemoteDataFetcher
Fetches 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:
fetchAllRemoteData
in 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:RemoteDataFetcher
Fetches 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:
fetchRemoteUserData
in 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:RemoteDataFetcher
Fetches 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:
fetchRemoteGroupData
in 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)
-
-