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 void
addError(String message, Throwable e)
SynchronizerInfo
getInfo()
Returns the corresponding info structureSyncState
getState()
Returns the state.void
setState(SyncState state)
Updates the statevoid
syncNow()
Performs the synchronization, updates the statistics.void
syncUserGroupNow(SUserGroup userGroup)
Performs the synchronization of the specifieduser group
.void
syncUserNow(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:Synchronizer
Returns the corresponding info structure- Specified by:
getInfo
in interfaceSynchronizer
- Returns:
- corresponding info structure
-
syncNow
public void syncNow()
Description copied from interface:Synchronizer
Performs the synchronization, updates the statistics. Only one synchronization can happen at a time.- Specified by:
syncNow
in interfaceSynchronizer
-
syncUserNow
public void syncUserNow(@NotNull SUser user)
Description copied from interface:Synchronizer
Performs the synchronization of the specifieduser
. Doesn't update the statistics. Only one synchronization can happen at a time.- Specified by:
syncUserNow
in interfaceSynchronizer
- Parameters:
user
- the user to synchronize
-
syncUserGroupNow
public void syncUserGroupNow(@NotNull SUserGroup userGroup)
Description copied from interface:Synchronizer
Performs the synchronization of the specifieduser group
. Doesn't update the statistics. Only one synchronization can happen at a time.- Specified by:
syncUserGroupNow
in interfaceSynchronizer
- Parameters:
userGroup
- the user group to synchronize
-
setState
public void setState(@NotNull SyncState state)
Description copied from interface:Synchronizer
Updates the state- Specified by:
setState
in interfaceSynchronizer
- Parameters:
state
- new state
-
getState
@NotNull public SyncState getState()
Description copied from interface:Synchronizer
Returns the state.- Specified by:
getState
in interfaceSynchronizer
- Returns:
- the state
-
-