Package jetbrains.buildServer.users.sync
Interface SynchronizerManager
-
- All Known Implementing Classes:
SynchronizerManagerImpl
public interface SynchronizerManager
Represents a manager of the synchronizers.- Since:
- 8.0
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
- See Also:
Synchronizer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Synchronizer
createOrUpdateSynchronizer(SynchronizerInfo info, RemoteDataFetcher fetcher, SynchronizerOptions options, SynchronizerStatistics statistics, UserRemoteIdProvider userRemoteIdProvider, UserGroupRemoteIdProvider userGroupRemoteIdProvider, Logger logger)
Creates (or updates if already exists) a synchronizer.void
removeSynchronizer(Synchronizer synchronizer)
Removes the synchronizer if it is present in the manager.
-
-
-
Method Detail
-
createOrUpdateSynchronizer
@NotNull Synchronizer createOrUpdateSynchronizer(@NotNull SynchronizerInfo info, @NotNull RemoteDataFetcher fetcher, @NotNull SynchronizerOptions options, @NotNull SynchronizerStatistics statistics, @Nullable UserRemoteIdProvider userRemoteIdProvider, @Nullable UserGroupRemoteIdProvider userGroupRemoteIdProvider, @NotNull Logger logger)
Creates (or updates if already exists) a synchronizer.Update means that the new synchronizer with provided parameters (
info
,fetcher
,options
,statistics
,logger
) will replace the existing one with the same name (seeSynchronizerInfo.getOwnerName()
).- Parameters:
info
- a synchronizer infofetcher
- a remote data fetcheroptions
- synchronizer optionsstatistics
- synchronizer statisticsuserRemoteIdProvider
- user remote id provider; if null, then users are matched by usernamelogger
- a logger- Returns:
- a synchronizer
- Since:
- 9.0
-
removeSynchronizer
void removeSynchronizer(@NotNull Synchronizer synchronizer)
Removes the synchronizer if it is present in the manager.- Parameters:
synchronizer
- the synchronizer to remove
-
-