Package jetbrains.buildServer.users.sync
Interface RemoteDataFetcher
-
- All Known Implementing Classes:
MockFetcher
public interface RemoteDataFetcherResponsible for retrieving the data from the remote source (such as LDAP).The clients expect the data to be up-to-date, which means that no
fetchmethods should cache the previous results.Also
fetchmethods are expected to handle I/O and other errors by itself rather than throwing it out. In case of the error,nullshould be returned.- Since:
- 8.0
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
fetchAllRemoteData
@Nullable RemoteData fetchAllRemoteData(@NotNull RemoteDataFetcherOptions options)
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.- Parameters:
options- the options- Returns:
- remote data, if it exists and can be fetched, or
null
-
fetchRemoteUserData
@Nullable RemoteUserData fetchRemoteUserData(@NotNull SUser user)
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.- Parameters:
user- the user- Returns:
- remote data, if it exists and can be fetched, or
null
-
fetchRemoteGroupData
@Nullable RemoteGroupData fetchRemoteGroupData(@NotNull SUserGroup userGroup)
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.- Parameters:
userGroup- the user group- Returns:
- remote data, if it exists and can be fetched, or
null
-
-