Class BoardAdminServiceImpl
java.lang.Object
com.atlassian.greenhopper.service.rapid.view.BoardAdminServiceImpl
- All Implemented Interfaces:
BoardAdminService
-
Constructor Summary
ConstructorsConstructorDescriptionBoardAdminServiceImpl
(com.atlassian.jira.security.groups.GroupManager groupManager, RapidViewPermissionService rapidViewPermissionService, BoardAdminManager boardAdminManager) -
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 or not a givenUser
is a Board Admin of a givenRapidView
.setInitialBoardAdmin
(RapidView rapidView, com.atlassian.jira.user.ApplicationUser user) Make the specifiedUser
the single initial Board Admin for theRapidView
updateBoardAdmins
(RapidView rapidView, com.atlassian.jira.user.ApplicationUser user, List<BoardAdmin> newBoardAdmins) Updates theBoardAdmin
s associated with aRapidView
by replacing the existingBoardAdmin
s with those found in the new specified list.
-
Constructor Details
-
BoardAdminServiceImpl
@Autowired public BoardAdminServiceImpl(com.atlassian.jira.security.groups.GroupManager groupManager, RapidViewPermissionService rapidViewPermissionService, BoardAdminManager boardAdminManager)
-
-
Method Details
-
getBoardAdmins
Description copied from interface:BoardAdminService
Retrieve a List ofBoardAdmin
s associated with a particularRapidView
- Specified by:
getBoardAdmins
in interfaceBoardAdminService
- Parameters:
view
- The view which you wish to retrieve associated Board Admins for.- Returns:
- List containing Board Admins associated with the specific
RapidView
-
getBoardAdmins
public com.google.common.collect.Multimap<RapidView,BoardAdmin> getBoardAdmins(List<RapidView> views) Description copied from interface:BoardAdminService
Retrieve a List ofBoardAdmin
s associated with givenRapidView
s- Specified by:
getBoardAdmins
in interfaceBoardAdminService
- Parameters:
views
- The view which you wish to retrieve associated Board Admins for.- Returns:
- Map containing Board Admins associated with each
RapidView
-
updateBoardAdmins
@Nonnull public ServiceOutcome<List<BoardAdmin>> updateBoardAdmins(RapidView rapidView, com.atlassian.jira.user.ApplicationUser user, List<BoardAdmin> newBoardAdmins) Description copied from interface:BoardAdminService
Updates theBoardAdmin
s associated with aRapidView
by replacing the existingBoardAdmin
s with those found in the new specified list.- Specified by:
updateBoardAdmins
in interfaceBoardAdminService
- Parameters:
rapidView
- TheRapidView
you are updating theBoardAdmin
s of.newBoardAdmins
- The list of new Board Admins to update with.- Returns:
- The updated list of
BoardAdmin
s
-
isUserBoardAdmin
@Nonnull public boolean isUserBoardAdmin(RapidView rapidView, com.atlassian.jira.user.ApplicationUser user) Description copied from interface:BoardAdminService
Check whether or not a givenUser
is a Board Admin of a givenRapidView
.- Specified by:
isUserBoardAdmin
in interfaceBoardAdminService
- Parameters:
rapidView
- TheRapidView
to check the User against.user
- TheUser
in question.- Returns:
- Whether or not the User is a
BoardAdmin
of theRapidView
-
setInitialBoardAdmin
@Nonnull public ServiceOutcome<List<BoardAdmin>> setInitialBoardAdmin(RapidView rapidView, com.atlassian.jira.user.ApplicationUser user) Description copied from interface:BoardAdminService
Make the specifiedUser
the single initial Board Admin for theRapidView
- Specified by:
setInitialBoardAdmin
in interfaceBoardAdminService
- Parameters:
rapidView
- The rapid viewuser
- The user to make theBoardAdmin
- Returns:
- The "list" containing the new
BoardAdmin
-