public interface GroupService extends RestService
Modifier and Type | Method and Description |
---|---|
ActionResponse |
addUserToGroup(String groupId,
String userId)
adds an existing user to a group
|
ActionResponse |
checkGroupUser(String groupId,
String userId)
check whether a user belongs to a group
|
Group |
create(Group group)
create a new group
|
Group |
create(String domainId,
String name,
String description)
creates a new group
|
ActionResponse |
delete(String groupId)
delete a group by id
|
Group |
get(String groupId)
gets detailed information about a specified group by id
|
List<? extends Group> |
getByName(String groupName)
get detailed information about groups matching specified by name and domain
|
Group |
getByName(String groupName,
String domainId)
get detailed information about groups matching specified by name and domain
|
List<? extends Group> |
list()
lists groups.
|
List<? extends Role> |
listDomainGroupRoles(String groupId,
String domainId)
list roles for a group on a domain
|
List<? extends User> |
listGroupUsers(String groupId)
lists the users that belong to a group
|
List<? extends Role> |
listProjectGroupRoles(String groupId,
String projectId)
list role for group on a project
|
ActionResponse |
removeUserFromGroup(String groupId,
String userId)
removes a user from a group
|
Group |
update(Group group)
updates an existing group
|
Group get(String groupId)
groupId
- the group idList<? extends Group> getByName(String groupName)
groupName
- the group nameGroup getByName(String groupName, String domainId)
groupName
- the group namedomainId
- the domain idActionResponse delete(String groupId)
groupId
- the group idGroup update(Group group)
group
- the group set to updateGroup create(Group group)
group
- the groupGroup create(String domainId, String name, String description)
domainId
- the domain idname
- the group namedescription
- the descriptionList<? extends User> listGroupUsers(String groupId)
List<? extends Role> listProjectGroupRoles(String groupId, String projectId)
groupId
- the group idprojectId
- the project idList<? extends Role> listDomainGroupRoles(String groupId, String domainId)
groupId
- the group iddomainId
- the domain idActionResponse addUserToGroup(String groupId, String userId)
groupId
- the group iduserId
- the user idActionResponse removeUserFromGroup(String groupId, String userId)
groupId
- the group iduserId
- the user idActionResponse checkGroupUser(String groupId, String userId)
groupId
- the group iduserId
- the user idCopyright © 2017. All rights reserved.