Package jetbrains.buildServer.users.sync
Class SynchronizerImpl
- java.lang.Object
-
- jetbrains.buildServer.users.sync.SynchronizerImpl
-
- All Implemented Interfaces:
Synchronizer
public class SynchronizerImpl extends Object implements Synchronizer
- Since:
- 8.0
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Constructor Summary
Constructors Constructor Description SynchronizerImpl(SynchronizerInfo info, ActiveSynchronizersProvider provider, RemoteDataFetcher fetcher, SynchronizerOptions options, SynchronizerStatistics statistics, Logger logger, UserRemoteIdProvider userRemoteIdProvider, UserGroupRemoteIdProvider userGroupRemoteIdProvider, UserModel userModel, UserGroupManager userGroupManager, ServerResponsibility serverResponsibility)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddError(String message, Throwable e)SynchronizerInfogetInfo()Returns the corresponding info structureSyncStategetState()Returns the state.voidsetState(SyncState state)Updates the statevoidsyncNow()Performs the synchronization, updates the statistics.voidsyncUserGroupNow(SUserGroup userGroup)Performs the synchronization of the specifieduser group.voidsyncUserNow(SUser user)Performs the synchronization of the specifieduser.
-
-
-
Constructor Detail
-
SynchronizerImpl
public SynchronizerImpl(@NotNull SynchronizerInfo info, @NotNull ActiveSynchronizersProvider provider, @NotNull RemoteDataFetcher fetcher, @NotNull SynchronizerOptions options, @NotNull SynchronizerStatistics statistics, @NotNull Logger logger, @Nullable UserRemoteIdProvider userRemoteIdProvider, @Nullable UserGroupRemoteIdProvider userGroupRemoteIdProvider, @NotNull UserModel userModel, @NotNull UserGroupManager userGroupManager, @NotNull ServerResponsibility serverResponsibility)
-
-
Method Detail
-
getInfo
@NotNull public SynchronizerInfo getInfo()
Description copied from interface:SynchronizerReturns the corresponding info structure- Specified by:
getInfoin interfaceSynchronizer- Returns:
- corresponding info structure
-
syncNow
public void syncNow()
Description copied from interface:SynchronizerPerforms the synchronization, updates the statistics. Only one synchronization can happen at a time.- Specified by:
syncNowin interfaceSynchronizer
-
syncUserNow
public void syncUserNow(@NotNull SUser user)Description copied from interface:SynchronizerPerforms the synchronization of the specifieduser. Doesn't update the statistics. Only one synchronization can happen at a time.- Specified by:
syncUserNowin interfaceSynchronizer- Parameters:
user- the user to synchronize
-
syncUserGroupNow
public void syncUserGroupNow(@NotNull SUserGroup userGroup)Description copied from interface:SynchronizerPerforms the synchronization of the specifieduser group. Doesn't update the statistics. Only one synchronization can happen at a time.- Specified by:
syncUserGroupNowin interfaceSynchronizer- Parameters:
userGroup- the user group to synchronize
-
setState
public void setState(@NotNull SyncState state)Description copied from interface:SynchronizerUpdates the state- Specified by:
setStatein interfaceSynchronizer- Parameters:
state- new state
-
getState
@NotNull public SyncState getState()
Description copied from interface:SynchronizerReturns the state.- Specified by:
getStatein interfaceSynchronizer- Returns:
- the state
-
-