|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SUserGroup
Represents TeamCity-server user group interface.
| Method Summary | |
|---|---|
void |
addSubgroup(UserGroup group)
Adds a subgroup to this group. |
void |
addUser(User user)
Adds a user to this group. |
void |
removeSubgroup(UserGroup group)
Removes a direct subgroup. |
void |
removeUser(User user)
Removes a user from this group. |
void |
setDescription(java.lang.String description)
Sets the group description. |
void |
setName(java.lang.String name)
Sets the group name. |
| Methods inherited from interface jetbrains.buildServer.groups.UserGroup |
|---|
getAllSubgroups, getAllUsers, getDescription, getDirectSubgroups, getDirectUsers, getKey, getName, getParentGroups |
| Methods inherited from interface jetbrains.buildServer.notification.NotificationRulesHolder |
|---|
addNewRule, applyOrder, findConflictingRules, findRuleById, getNotificationRules, getParentRulesHolders, removeRule, setNotificationRules |
| Methods inherited from interface jetbrains.buildServer.serverSide.auth.RolesHolder |
|---|
addRole, getAllParentHolders, getParentHolders, getRoles, getRolesWithScope, getScopes, isSystemAdministratorRoleGranted, isSystemAdministratorRoleGrantedDirectly, isSystemAdministratorRoleInherited, removeRole, removeRole, removeRoles |
| Methods inherited from interface jetbrains.buildServer.serverSide.auth.AuthorityHolder |
|---|
getAssociatedUser, getGlobalPermissions, getPermissionsGrantedForProject, getProjectsPermissions, isPermissionGrantedForAnyProject, isPermissionGrantedForProject, isPermissionGrantedGlobally |
| Method Detail |
|---|
void setName(@NotNull
java.lang.String name)
throws UserGroupException
Note: group name must be unique among all user groups. If name already
exists, an exception is thrown.
The name cannot be empty and cannot exceed 255 characters.
name - the new group name
UserGroupException - if name already exists, or is empty, or is too longUserGroup.getName()
void setDescription(@NotNull
java.lang.String description)
throws UserGroupException
The description cannot exceed 2000 characters.
description - the new description
UserGroupException - if description is too longUserGroup.getDescription()
void addSubgroup(@NotNull
UserGroup group)
throws UserGroupException
User group cycles by inclusion are not permitted. An attempt to create a cycle results in exception.
group - a subgroup to add
UserGroupException - if addition of the subgroup leads to a cycle
void removeSubgroup(@NotNull
UserGroup group)
group - a subgroup to remove
void addUser(@NotNull
User user)
user - the user to add
void removeUser(@NotNull
User user)
throws UserGroupException
The user isn't allowed to remove himself from any group.
user - a user to remove
UserGroupException - if user is the authority holder, trying to remove himself
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||