com.atlassian.greenhopper.service.rapid.view
Class BoardAdminServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.service.rapid.view.BoardAdminServiceImpl
All Implemented Interfaces:
BoardAdminService

@Service
public class BoardAdminServiceImpl
extends java.lang.Object
implements BoardAdminService


Constructor Summary
BoardAdminServiceImpl()
           
 
Method Summary
 java.util.List<BoardAdmin> getBoardAdmins(RapidView view)
          Retrieve a List of BoardAdmins associated with a particular RapidView
 boolean isUserBoardAdmin(RapidView rapidView, com.atlassian.crowd.embedded.api.User user)
          Check whether or not a given User is a Board Admin of a given RapidView.
 ServiceOutcome<java.util.List<BoardAdmin>> setInitialBoardAdmin(RapidView rapidView, com.atlassian.crowd.embedded.api.User user)
          Make the specified User the single initial Board Admin for the RapidView
 ServiceOutcome<java.util.List<BoardAdmin>> updateBoardAdmins(RapidView rapidView, com.atlassian.crowd.embedded.api.User user, java.util.List<BoardAdmin> newBoardAdmins)
          Updates the BoardAdmins associated with a RapidView by replacing the existing BoardAdmins with those found in the new specified list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoardAdminServiceImpl

public BoardAdminServiceImpl()
Method Detail

getBoardAdmins

public java.util.List<BoardAdmin> getBoardAdmins(RapidView view)
Description copied from interface: BoardAdminService
Retrieve a List of BoardAdmins associated with a particular RapidView

Specified by:
getBoardAdmins in interface BoardAdminService
Parameters:
view - The view which you wish to retrieve associated Board Admins for.
Returns:
List containing Board Admins associated with the specifiec RapidView

updateBoardAdmins

public ServiceOutcome<java.util.List<BoardAdmin>> updateBoardAdmins(RapidView rapidView,
                                                                    com.atlassian.crowd.embedded.api.User user,
                                                                    java.util.List<BoardAdmin> newBoardAdmins)
Description copied from interface: BoardAdminService
Updates the BoardAdmins associated with a RapidView by replacing the existing BoardAdmins with those found in the new specified list.

Specified by:
updateBoardAdmins in interface BoardAdminService
Parameters:
rapidView - The RapidView you are updating the BoardAdmins of.
newBoardAdmins - The list of new Board Admins to update with.
Returns:
The updated list of BoardAdmins

isUserBoardAdmin

public boolean isUserBoardAdmin(RapidView rapidView,
                                com.atlassian.crowd.embedded.api.User user)
Description copied from interface: BoardAdminService
Check whether or not a given User is a Board Admin of a given RapidView.

Specified by:
isUserBoardAdmin in interface BoardAdminService
Parameters:
rapidView - The RapidView to check the User against.
user - The User in question.
Returns:
Whether or not the User is a BoardAdmin of the RapidView

setInitialBoardAdmin

public ServiceOutcome<java.util.List<BoardAdmin>> setInitialBoardAdmin(RapidView rapidView,
                                                                       com.atlassian.crowd.embedded.api.User user)
Description copied from interface: BoardAdminService
Make the specified User the single initial Board Admin for the RapidView

Specified by:
setInitialBoardAdmin in interface BoardAdminService
Parameters:
rapidView - The rapid view
user - The user to make the BoardAdmin
Returns:
The "list" containing the new BoardAdmin


Copyright © 2007-2014 Atlassian. All Rights Reserved.