Package jetbrains.buildServer.users.sync
Interface Synchronizer
-
- All Known Implementing Classes:
SynchronizerImpl
public interface SynchronizerRepresents the synchronizer of user data, group data and their relationships.- Since:
- 8.0
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
- See Also:
SynchronizerManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
getInfo
@NotNull SynchronizerInfo getInfo()
Returns the corresponding info structure- Returns:
- corresponding info structure
-
syncNow
void syncNow()
Performs the synchronization, updates the statistics. Only one synchronization can happen at a time.
-
syncUserNow
void syncUserNow(@NotNull SUser user)Performs the synchronization of the specifieduser. Doesn't update the statistics. Only one synchronization can happen at a time.- Parameters:
user- the user to synchronize
-
syncUserGroupNow
void syncUserGroupNow(@NotNull SUserGroup userGroup)Performs the synchronization of the specifieduser group. Doesn't update the statistics. Only one synchronization can happen at a time.- Parameters:
userGroup- the user group to synchronize
-
setState
void setState(@NotNull SyncState state)Updates the state- Parameters:
state- new state
-
getState
@NotNull SyncState getState()
Returns the state.- Returns:
- the state
-
-