kCreateOperation, kDeleteOperation, kReadOperation, kWriteOperation| Modifier and Type | Method and Description |
|---|---|
void |
addUserToGroup(String groupId,
String userId)
Add a user to a given group
|
G |
createGroup(String groupDesc)
Create a group
|
G |
createGroup(String groupId,
String groupDesc)
Create a group with a given group ID
|
Collection<String> |
getAllGroups()
Get all group IDs in this db.
|
Set<String> |
getUsersGroups(String userId)
Find out which groups a user is a member of.
|
Set<String> |
getUsersInGroup(String groupId)
Get the set of user IDs in a particular group.
|
void |
removeUserFromGroup(String groupId,
String userId)
Remove a user from a given group
|
G createGroup(String groupDesc) throws IamGroupExists, IamSvcException
groupDesc - the group descriptionIamGroupExists - if the group already existsIamSvcException - when the call cannot be completed due to a service errorG createGroup(String groupId, String groupDesc) throws IamGroupExists, IamSvcException
groupId - a group IDgroupDesc - a group descriptionIamGroupExists - if the group already existsIamSvcException - when the call cannot be completed due to a service errorvoid addUserToGroup(String groupId, String userId) throws IamSvcException, IamIdentityDoesNotExist, IamGroupDoesNotExist
groupId - a group IDuserId - a user IDIamSvcException - when the call cannot be completed due to a service errorIamIdentityDoesNotExist - when the identity doesn't existIamGroupDoesNotExist - if the group does not existvoid removeUserFromGroup(String groupId, String userId) throws IamSvcException, IamIdentityDoesNotExist, IamGroupDoesNotExist
groupId - a group IDuserId - a user IDIamSvcException - when the call cannot be completed due to a service errorIamIdentityDoesNotExist - when the identity doesn't existIamGroupDoesNotExist - if the group does not existSet<String> getUsersGroups(String userId) throws IamSvcException, IamIdentityDoesNotExist
userId - a user IDIamSvcException - when the call cannot be completed due to a service errorIamIdentityDoesNotExist - when the identity doesn't existSet<String> getUsersInGroup(String groupId) throws IamSvcException, IamGroupDoesNotExist
groupId - a group IDIamSvcException - when the call cannot be completed due to a service errorIamGroupDoesNotExist - when the identity doesn't existCollection<String> getAllGroups() throws IamSvcException
IamSvcException - when the call cannot be completed due to a service errorCopyright © 2021 continual.io. All rights reserved.