Package jetbrains.buildServer.users.sync
Interface Synchronizer
-
public interface Synchronizer
Represents 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 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
.
-
-
-
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
-
-