Class DeletedUserGroup
- java.lang.Object
-
- jetbrains.buildServer.groups.impl.DeletedUserGroup
-
- All Implemented Interfaces:
UserGroup
,Loggable
,PropertyHolder
public class DeletedUserGroup extends Object implements UserGroup
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsUserDirectly(User user)
String
describe(boolean verbose)
List<UserGroup>
getAllSubgroups()
Returns the set of all subgroups included into this group, directly or through intermediate ones.List<User>
getAllUsers()
Returns the set of all users included into this group, directly or through subgroups.boolean
getBooleanProperty(PropertyKey propertyKey)
Returns value of the boolean propertyString
getDescription()
Returns a description of this group.List<UserGroup>
getDirectSubgroups()
Returns the collection of subgroups that are directly included into this group.List<User>
getDirectUsers()
Returns the collection of users included into this group.String
getKey()
Returns a group key.String
getName()
Returns a displayable name of this group.List<UserGroup>
getParentGroups()
Returns the list of direct parent groups, i.e.Map<PropertyKey,String>
getProperties()
Returns map of the propertiesString
getPropertyValue(PropertyKey propertyKey)
Returns value of the property with specified key
-
-
-
Method Detail
-
getKey
@NotNull public String getKey()
Description copied from interface:UserGroup
Returns a group key. The key is fixed, unique among all groups.
-
getName
@NotNull public String getName()
Description copied from interface:UserGroup
Returns a displayable name of this group. The name is unique among all groups, but in contrast with group key is modifiable.
-
getDescription
@NotNull public String getDescription()
Description copied from interface:UserGroup
Returns a description of this group.- Specified by:
getDescription
in interfaceUserGroup
- Returns:
- group description
-
getDirectSubgroups
@NotNull public List<UserGroup> getDirectSubgroups()
Description copied from interface:UserGroup
Returns the collection of subgroups that are directly included into this group.- Specified by:
getDirectSubgroups
in interfaceUserGroup
- Returns:
- list of direct subgroups
- See Also:
UserGroup.getAllSubgroups()
,UserGroup.getParentGroups()
-
getAllSubgroups
@NotNull public List<UserGroup> getAllSubgroups()
Description copied from interface:UserGroup
Returns the set of all subgroups included into this group, directly or through intermediate ones.- Specified by:
getAllSubgroups
in interfaceUserGroup
- Returns:
- list of all subgroups
- See Also:
UserGroup.getDirectSubgroups()
-
getParentGroups
@NotNull public List<UserGroup> getParentGroups()
Description copied from interface:UserGroup
Returns the list of direct parent groups, i.e. groups that contain this groups as a subgroup.- Specified by:
getParentGroups
in interfaceUserGroup
- Returns:
- list of direct parents
- See Also:
UserGroup.getDirectSubgroups()
-
getDirectUsers
@NotNull public List<User> getDirectUsers()
Description copied from interface:UserGroup
Returns the collection of users included into this group. This method ignores the subgroups.- Specified by:
getDirectUsers
in interfaceUserGroup
- Returns:
- list of users
- See Also:
UserGroup.getAllUsers()
-
getAllUsers
@NotNull public List<User> getAllUsers()
Description copied from interface:UserGroup
Returns the set of all users included into this group, directly or through subgroups.- Specified by:
getAllUsers
in interfaceUserGroup
- Returns:
- list of all users
- See Also:
UserGroup.getDirectUsers()
-
containsUserDirectly
public boolean containsUserDirectly(@NotNull User user)
- Specified by:
containsUserDirectly
in interfaceUserGroup
- Parameters:
user
- user to check- Returns:
- true if this group contains user directly (user is returned by getDirectUsers)
-
describe
@NotNull public String describe(boolean verbose)
-
getPropertyValue
@Nullable public String getPropertyValue(PropertyKey propertyKey)
Description copied from interface:PropertyHolder
Returns value of the property with specified key- Specified by:
getPropertyValue
in interfacePropertyHolder
- Parameters:
propertyKey
- value of the property with specified key- Returns:
- value of the property with specified key
-
getBooleanProperty
public boolean getBooleanProperty(PropertyKey propertyKey)
Description copied from interface:PropertyHolder
Returns value of the boolean property- Specified by:
getBooleanProperty
in interfacePropertyHolder
- Parameters:
propertyKey
- property key- Returns:
- value
-
getProperties
@NotNull public Map<PropertyKey,String> getProperties()
Description copied from interface:PropertyHolder
Returns map of the properties- Specified by:
getProperties
in interfacePropertyHolder
- Returns:
- map of the properties
-
-