public interface UserGroup extends PropertyHolder, jetbrains.buildServer.log.Loggable
Groups can include other groups (subgroups), inheriting the roles and notification rules of subgroups.
A group is not associated with a particular project, but can have permissions associated with the project.
Modifier and Type | Method and Description |
---|---|
boolean |
containsUserDirectly(User user) |
java.util.List<UserGroup> |
getAllSubgroups()
Returns the set of all subgroups included into this group,
directly or through intermediate ones.
|
java.util.List<User> |
getAllUsers()
Returns the set of all users included into this group,
directly or through subgroups.
|
java.lang.String |
getDescription()
Returns a description of this group.
|
java.util.List<UserGroup> |
getDirectSubgroups()
Returns the collection of subgroups that are directly included
into this group.
|
java.util.List<User> |
getDirectUsers()
Returns the collection of users included into this group.
|
java.lang.String |
getKey()
Returns a group key.
|
java.lang.String |
getName()
Returns a displayable name of this group.
|
java.util.List<UserGroup> |
getParentGroups()
Returns the list of direct parent groups, i.e.
|
getBooleanProperty, getProperties, getPropertyValue
@NotNull java.lang.String getKey()
@NotNull java.lang.String getName()
@NotNull java.lang.String getDescription()
@NotNull java.util.List<UserGroup> getDirectSubgroups()
getAllSubgroups()
,
getParentGroups()
@NotNull java.util.List<UserGroup> getAllSubgroups()
getDirectSubgroups()
@NotNull java.util.List<UserGroup> getParentGroups()
getDirectSubgroups()
@NotNull java.util.List<User> getDirectUsers()
getAllUsers()
@NotNull java.util.List<User> getAllUsers()
getDirectUsers()
boolean containsUserDirectly(@NotNull User user)
user
- user to check