com.atlassian.confluence.security.administrators
Class PermissionsAdministratorBuilder

java.lang.Object
  extended by com.atlassian.confluence.security.administrators.PermissionsAdministratorBuilder

public class PermissionsAdministratorBuilder
extends Object

Builds the various permisssions administrators for the permissions actions. It injects the required managers and fields.


Constructor Summary
PermissionsAdministratorBuilder()
           
 
Method Summary
 EditPermissionsAdministrator buildEditGlobalPermissionAdministrator(com.atlassian.user.User user)
           
 EditPermissionsAdministrator buildEditGlobalPermissionAdministrator(com.atlassian.user.User user, List<String> usersToAdd, List<String> groupsToAdd)
          Returns a global edit permissions administrator and populates its fields.
 EditPermissionsAdministrator buildEditSpaceAdministrator(Space space, com.atlassian.user.User user, List<String> usersToAdd, List<String> groupsToAdd)
          Returns a space edit permissions administrator and populates its fields.
 PermissionsAdministrator buildGlobalPermissionAdministrator()
          Returns a global permissions administrator (for viewiing) and populates its fields.
 PermissionsAdministrator buildSpacePermissionAdministrator(Space space)
          Returns a space permissions administrator (for viewiing) and populates its fields.
 void setSearchEntitiesManager(SearchEntitiesManager searchEntitiesManager)
           
 void setSetSpacePermissionChecker(SetSpacePermissionChecker setSpacePermissionChecker)
           
 void setSettingsManager(SettingsManager settingsManager)
           
 void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionsAdministratorBuilder

public PermissionsAdministratorBuilder()
Method Detail

setSettingsManager

public void setSettingsManager(SettingsManager settingsManager)

setSetSpacePermissionChecker

public void setSetSpacePermissionChecker(SetSpacePermissionChecker setSpacePermissionChecker)

setSearchEntitiesManager

public void setSearchEntitiesManager(SearchEntitiesManager searchEntitiesManager)

setSpacePermissionManager

public void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)

buildEditSpaceAdministrator

public EditPermissionsAdministrator buildEditSpaceAdministrator(Space space,
                                                                com.atlassian.user.User user,
                                                                List<String> usersToAdd,
                                                                List<String> groupsToAdd)
Returns a space edit permissions administrator and populates its fields.

Parameters:
space - space to administer
user - current logged in user
usersToAdd - list of users to add permissions to
groupsToAdd - list of groups to add permissions to
Returns:
space edit permissions administrator

buildEditGlobalPermissionAdministrator

public EditPermissionsAdministrator buildEditGlobalPermissionAdministrator(com.atlassian.user.User user,
                                                                           List<String> usersToAdd,
                                                                           List<String> groupsToAdd)
Returns a global edit permissions administrator and populates its fields.

Parameters:
user - current logged in user
usersToAdd - list of users to add permissions to
groupsToAdd - list of groups to add permissions to
Returns:
space edit permissions administrator

buildEditGlobalPermissionAdministrator

public EditPermissionsAdministrator buildEditGlobalPermissionAdministrator(com.atlassian.user.User user)

buildGlobalPermissionAdministrator

public PermissionsAdministrator buildGlobalPermissionAdministrator()
Returns a global permissions administrator (for viewiing) and populates its fields.

Returns:
global permissions administrator

buildSpacePermissionAdministrator

public PermissionsAdministrator buildSpacePermissionAdministrator(Space space)
Returns a space permissions administrator (for viewiing) and populates its fields.

Parameters:
space - space to administer
Returns:
space permissions administrator


Copyright © 2003-2011 Atlassian. All Rights Reserved.