Interface BoardAdminService
- All Known Implementing Classes:
BoardAdminServiceImpl
public interface BoardAdminService
-
Method Summary
Modifier and TypeMethodDescriptiongetBoardAdmins
(RapidView view) Retrieve a List ofBoardAdmin
s associated with a particularRapidView
com.google.common.collect.Multimap
<RapidView, BoardAdmin> getBoardAdmins
(List<RapidView> views) Retrieve a List ofBoardAdmin
s associated with givenRapidView
sboolean
isUserBoardAdmin
(RapidView rapidView, com.atlassian.jira.user.ApplicationUser user) Check whether a givenApplicationUser
is a Board Admin of a givenRapidView
.setInitialBoardAdmin
(RapidView rapidView, com.atlassian.jira.user.ApplicationUser user) Make the specifiedApplicationUser
the single initial Board Admin for theRapidView
updateBoardAdmins
(RapidView rapidView, com.atlassian.jira.user.ApplicationUser user, List<BoardAdmin> newBoardAdmin) Updates theBoardAdmin
s associated with aRapidView
by replacing the existingBoardAdmin
s with those found in the new specified list.
-
Method Details
-
getBoardAdmins
Retrieve a List ofBoardAdmin
s associated with a particularRapidView
- Parameters:
view
- The view which you wish to retrieve associated Board Admins for.- Returns:
- List containing Board Admins associated with the specific
RapidView
-
getBoardAdmins
Retrieve a List ofBoardAdmin
s associated with givenRapidView
s- Parameters:
views
- The view which you wish to retrieve associated Board Admins for.- Returns:
- Map containing Board Admins associated with each
RapidView
-
updateBoardAdmins
@Nonnull @Transactional ServiceOutcome<List<BoardAdmin>> updateBoardAdmins(RapidView rapidView, com.atlassian.jira.user.ApplicationUser user, List<BoardAdmin> newBoardAdmin) Updates theBoardAdmin
s associated with aRapidView
by replacing the existingBoardAdmin
s with those found in the new specified list.- Parameters:
rapidView
- TheRapidView
you are updating theBoardAdmin
s of.newBoardAdmin
- The list of new Board Admins to update with.- Returns:
- The updated list of
BoardAdmin
s
-
isUserBoardAdmin
@Nonnull boolean isUserBoardAdmin(RapidView rapidView, com.atlassian.jira.user.ApplicationUser user) Check whether a givenApplicationUser
is a Board Admin of a givenRapidView
.- Parameters:
rapidView
- TheRapidView
to check the User against.user
- TheApplicationUser
in question.- Returns:
- Whether the User is a
BoardAdmin
of theRapidView
-
setInitialBoardAdmin
@Nonnull ServiceOutcome<List<BoardAdmin>> setInitialBoardAdmin(RapidView rapidView, com.atlassian.jira.user.ApplicationUser user) Make the specifiedApplicationUser
the single initial Board Admin for theRapidView
- Parameters:
rapidView
- The rapid viewuser
- The user to make theBoardAdmin
- Returns:
- The "list" containing the new
BoardAdmin
-