Class UserGroupSubgroupUpdater


  • public class UserGroupSubgroupUpdater
    extends Object
    Represents a database updater for subgroups of user groups.
    Author:
    Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
    • Constructor Detail

      • UserGroupSubgroupUpdater

        public UserGroupSubgroupUpdater​(@NotNull
                                        SQLRunnerEx sqlRunner)
    • Method Detail

      • addSubgroup

        public void addSubgroup​(@NotNull
                                UserGroup hostgroup,
                                @NotNull
                                UserGroup subgroup)
      • removeSubgroup

        public void removeSubgroup​(@NotNull
                                   UserGroup hostgroup,
                                   @NotNull
                                   UserGroup subgroup)
      • removeGroupEverywhere

        public void removeGroupEverywhere​(@NotNull
                                          UserGroup group)
      • getSubgroups

        @NotNull
        public List<String> getSubgroups​(@NotNull
                                         String hostgroupCode)
      • getParentGroups

        @NotNull
        public List<String> getParentGroups​(@NotNull
                                            String subgroupCode)
      • getAllGroupsAndSubgroups

        @NotNull
        public List<Pair<String,​String>> getAllGroupsAndSubgroups()
      • clearCaches

        public void clearCaches​(@Nullable
                                UserGroup hostgroup,
                                @Nullable
                                UserGroup subgroup)