Class ResponsibilityFunctions
- java.lang.Object
-
- jetbrains.buildServer.web.functions.user.ResponsibilityFunctions
-
public class ResponsibilityFunctions extends Object
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Constructor Summary
Constructors Constructor Description ResponsibilityFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
hasComment(ResponsibilityEntry responsibilityEntry)
Returns whether the responsibility entry has a non-empty comment.static boolean
hasReporter(ResponsibilityEntry responsibilityEntry)
Returns whether the responsibility entry has a reporter user.static boolean
hasResponsible(ResponsibilityEntry responsibilityEntry)
Returns whether the responsibility entry has a responsible user.static boolean
isActive(ResponsibilityEntry responsibilityEntry)
Returns whether the responsibility is active.static boolean
isFixed(ResponsibilityEntry responsibilityEntry)
Returns whether the responsibility is fixed.static boolean
isUserFixed(ResponsibilityEntry responsibilityEntry, User user)
Returns whether specified user fixed the entry.static boolean
isUserResponsible(ResponsibilityEntry responsibilityEntry, User user)
Returns whether specified user is responsible.
-
-
-
Method Detail
-
isActive
public static boolean isActive(@Nullable ResponsibilityEntry responsibilityEntry)
Returns whether the responsibility is active.- Parameters:
responsibilityEntry
- responsibility entry- Returns:
- whether the responsibility is active
-
isFixed
public static boolean isFixed(@Nullable ResponsibilityEntry responsibilityEntry)
Returns whether the responsibility is fixed.- Parameters:
responsibilityEntry
- responsibility entry- Returns:
- whether the responsibility is fixed
-
isUserResponsible
public static boolean isUserResponsible(@Nullable ResponsibilityEntry responsibilityEntry, @NotNull User user)
Returns whether specified user is responsible.- Parameters:
responsibilityEntry
- responsibility entryuser
- the user- Returns:
- whether specified user is responsible
-
isUserFixed
public static boolean isUserFixed(@Nullable ResponsibilityEntry responsibilityEntry, @NotNull User user)
Returns whether specified user fixed the entry.- Parameters:
responsibilityEntry
- responsibility entryuser
- the user- Returns:
- whether specified user fixed the entry
-
hasComment
public static boolean hasComment(@Nullable ResponsibilityEntry responsibilityEntry)
Returns whether the responsibility entry has a non-empty comment.- Parameters:
responsibilityEntry
- responsibility entry- Returns:
- whether the responsibility entry has a non-empty comment
-
hasResponsible
public static boolean hasResponsible(@Nullable ResponsibilityEntry responsibilityEntry)
Returns whether the responsibility entry has a responsible user.- Parameters:
responsibilityEntry
- responsibility entry- Returns:
- whether the responsibility entry has a responsible user
-
hasReporter
public static boolean hasReporter(@Nullable ResponsibilityEntry responsibilityEntry)
Returns whether the responsibility entry has a reporter user.- Parameters:
responsibilityEntry
- responsibility entry- Returns:
- whether the responsibility entry has a reporter user
-
-