Package jetbrains.buildServer.users
Interface UserUpdate
-
- All Superinterfaces:
PropertyUpdater<Long>,RolesUpdate<Long>
- All Known Implementing Classes:
FeatureProviderUserUpdate,SecuredUserModel,UserModelImpl
public interface UserUpdate extends RolesUpdate<Long>, PropertyUpdater<Long>
- Author:
- Sergey.Anchipolevsky Date: 17.09.2007
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidblockStateChanged(SUser user)voidnotifyUserChanged(SUser user)voidnotifyUserPermissionsMayHaveChanged(SUser user)voidnotifyUserPropertyChanged(SUser user, PropertyKey propertyKey)voidnotifyUserRolesChanged(SUser user)voidpersistLastLoginTimestamp(long userId, Date timestamp)Note: login timestamp will be persisted with some delay.voidsetBuildTypesOrder(long userId, String projectId, UserImpl.BuildTypesOrder buildTypesOrder)Sets order of build typesvoidsetPassword(long userId, String password)voidsetProjectsOrder(long userId, List<String> projectsOrder)Sets order of the projects.voidsetProjectsVisibility(long userId, Collection<String> projectIds, boolean isVisible)Set visibility state for selected projects.voidsetVisibleProjects(long userId, Collection<String> visibleProjects)Sets projects visible for specified uservoidupdateUserAccount(long userId, String username, String name, String email)Updates user with specified id and sets his/her username and name.-
Methods inherited from interface jetbrains.buildServer.users.impl.PropertyUpdater
deleteProperty, setProperties, setProperty
-
Methods inherited from interface jetbrains.buildServer.users.RolesUpdate
addRole, removeRole, removeRole, removeRole, removeRoles
-
-
-
-
Method Detail
-
updateUserAccount
void updateUserAccount(long userId, String username, String name, String email) throws UserNotFoundException, DuplicateUserAccountException, EmptyUsernameExceptionUpdates user with specified id and sets his/her username and name.- Parameters:
userId- user idusername- usernamename- full name of a useremail-- Throws:
UserNotFoundException- if specified user no longer exists in the modelDuplicateUserAccountException- if a new username name already assigned to another userEmptyUsernameException- if username is an empty string
-
setPassword
void setPassword(long userId, String password) throws UserNotFoundException- Throws:
UserNotFoundException
-
setProjectsOrder
void setProjectsOrder(long userId, List<String> projectsOrder) throws UserNotFoundExceptionSets order of the projects.- Parameters:
userId- id of a userprojectsOrder- identificators of all projects in the order specified by user. The order will be reset to default (system) if null or empty.- Throws:
UserNotFoundException- if specified user no longer exists
-
setVisibleProjects
void setVisibleProjects(long userId, Collection<String> visibleProjects) throws UserNotFoundExceptionSets projects visible for specified user- Parameters:
userId- id of a uservisibleProjects- collection of identifiers of visible projects- Throws:
UserNotFoundException- if specified user no longer exists
-
setBuildTypesOrder
void setBuildTypesOrder(long userId, @NotNull String projectId, @Nullable UserImpl.BuildTypesOrder buildTypesOrder) throws UserNotFoundExceptionSets order of build types- Parameters:
userId-projectId-buildTypesOrder- build type internal ids- Throws:
UserNotFoundException
-
setProjectsVisibility
void setProjectsVisibility(long userId, @NotNull Collection<String> projectIds, boolean isVisible)Set visibility state for selected projects. Doesn't affect other projects nor project order.- Parameters:
userId-projectIds-isVisible-
-
persistLastLoginTimestamp
void persistLastLoginTimestamp(long userId, Date timestamp) throws UserNotFoundExceptionNote: login timestamp will be persisted with some delay.- Parameters:
userId- user idtimestamp- timestamp- Throws:
UserNotFoundException
-
notifyUserChanged
void notifyUserChanged(@NotNull SUser user)
-
notifyUserPropertyChanged
void notifyUserPropertyChanged(@NotNull SUser user, @NotNull PropertyKey propertyKey)
-
notifyUserRolesChanged
void notifyUserRolesChanged(@NotNull SUser user)
-
notifyUserPermissionsMayHaveChanged
void notifyUserPermissionsMayHaveChanged(@NotNull SUser user)
-
blockStateChanged
void blockStateChanged(@NotNull SUser user)
-
-