Class PermissionsAdministratorBuilder


  • public class PermissionsAdministratorBuilder
    extends Object
    Builds the various permissions administrators for the permissions actions. It injects the required managers and fields.
    • Constructor Detail

      • PermissionsAdministratorBuilder

        public PermissionsAdministratorBuilder()
    • 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)
      • 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 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