Class PermissionsAdministratorBuilder
- java.lang.Object
-
- com.atlassian.confluence.security.administrators.PermissionsAdministratorBuilder
-
public class PermissionsAdministratorBuilder extends Object
Builds the various permissions administrators for the permissions actions. It injects the required managers and fields.
-
-
Constructor Summary
Constructors Constructor Description PermissionsAdministratorBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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
setGroupResolver(GroupResolver groupResolver)
void
setSearchEntitiesManager(SearchEntitiesManager searchEntitiesManager)
Deprecated.since 5.9.void
setSetSpacePermissionChecker(SetSpacePermissionChecker setSpacePermissionChecker)
void
setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
void
setUserChecker(UserChecker userChecker)
void
setUserResolver(ConfluenceUserResolver userResolver)
-
-
-
Method Detail
-
setSetSpacePermissionChecker
public void setSetSpacePermissionChecker(SetSpacePermissionChecker setSpacePermissionChecker)
-
setSearchEntitiesManager
@Deprecated public void setSearchEntitiesManager(SearchEntitiesManager searchEntitiesManager)
Deprecated.since 5.9. No longer used.
-
setSpacePermissionManager
public void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
-
setUserChecker
public void setUserChecker(UserChecker userChecker)
-
setUserResolver
public void setUserResolver(ConfluenceUserResolver userResolver)
- Since:
- 7.17
-
setGroupResolver
public void setGroupResolver(GroupResolver groupResolver)
- Since:
- 7.17
-
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 administeruser
- current logged in userusersToAdd
- list of users to add permissions togroupsToAdd
- 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 userusersToAdd
- list of users to add permissions togroupsToAdd
- 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
-
-