Interface GroupServiceLocal

    • Method Detail

      • canChangeEnabled

        boolean canChangeEnabled​(Group group)
        Returns true if the group enabled attribute can be changed. It can be changed if all the users in the group are removed or the group has no users.
      • canManage

        boolean canManage​(BasicGroup group)
        Returns whether the group can be managed by the logged user
      • canView

        boolean canView​(BasicGroup group)
        Returns whether the group can be viewed by the logged user
      • createNetworkAdmins

        AdminGroup createNetworkAdmins​(Network network)
        Creates the network administrators group for the given network
      • findByName

        Group findByName​(String name)
        Find a group by name
      • getAdminGroups

        List<AdminGroup> getAdminGroups()
        Return all enabled admin groups.
      • getBasicUserGroups

        Set<BasicGroup> getBasicUserGroups()
        Returns all enabled groups (including GroupSets) but excluding admin in the system In case groupsets are included, all of the groups contained in that groupset are also automatically included.
      • getGroupsUsingConfiguration

        List<BasicGroup> getGroupsUsingConfiguration​(Configuration configuration)
        Returns all groups which are associated with the given configuration
      • getGroupsUsingProduct

        List<BasicGroup> getGroupsUsingProduct​(Product product)
        Returns all groups which are associated to the given product
      • getSystemAdmins

        AdminGroup getSystemAdmins()
        Returns the default admins group, that is, either global admins if in global mode, or the current network admins otherwise
      • hasUsers

        Boolean hasUsers​(BasicGroup basicGroup)
        returns true if there are users in the basic group