Class UserFunctions
- java.lang.Object
-
- jetbrains.buildServer.web.functions.user.UserFunctions
-
public class UserFunctions extends Object
Various user related functions
-
-
Constructor Summary
Constructors Constructor Description UserFunctions(UserModel userModel)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanbooleanPropertyValue(User user, String propName)Returns value of boolean property from the specified user profile.static List<SUser>getAllUsers()Returns all users registered in the system, sorted by their namesstatic StringgetPreferredTheme(User user)Returns user's preferred theme (dark, light or auto)static StringgetPropertyValue(User user, String propName)Returns string value of property from the specified user profile.static booleanisGuestUser(User user)Returns true if specified user is the guest user
-
-
-
Constructor Detail
-
UserFunctions
public UserFunctions(UserModel userModel)
-
-
Method Detail
-
booleanPropertyValue
public static boolean booleanPropertyValue(@NotNull User user, @NotNull String propName)Returns value of boolean property from the specified user profile.- Parameters:
user- userpropName- name of the property- Returns:
- see above
-
getPropertyValue
public static String getPropertyValue(@NotNull User user, @NotNull String propName)
Returns string value of property from the specified user profile.- Parameters:
user- userpropName- name of the property- Returns:
- see above
-
getAllUsers
public static List<SUser> getAllUsers()
Returns all users registered in the system, sorted by their names- Returns:
- see above
-
isGuestUser
public static boolean isGuestUser(@NotNull User user)Returns true if specified user is the guest user- Parameters:
user- user of interest- Returns:
- see above
-
-