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 void
blockStateChanged(SUser user)
void
notifyUserChanged(SUser user)
void
notifyUserPermissionsMayHaveChanged(SUser user)
void
notifyUserPropertyChanged(SUser user, PropertyKey propertyKey)
void
notifyUserRolesChanged(SUser user)
void
persistLastLoginTimestamp(long userId, Date timestamp)
Note: login timestamp will be persisted with some delay.void
setBuildTypesOrder(long userId, String projectId, UserImpl.BuildTypesOrder buildTypesOrder)
Sets order of build typesvoid
setPassword(long userId, String password)
void
setProjectsOrder(long userId, List<String> projectsOrder)
Sets order of the projects.void
setProjectsVisibility(long userId, Collection<String> projectIds, boolean isVisible)
Set visibility state for selected projects.void
setVisibleProjects(long userId, Collection<String> visibleProjects)
Sets projects visible for specified uservoid
updateUserAccount(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, EmptyUsernameException
Updates 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 UserNotFoundException
Sets 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 UserNotFoundException
Sets 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 UserNotFoundException
Sets 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 UserNotFoundException
Note: 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)
-
-