public class GroupsServiceImpl extends DatabricksService implements GroupsService
client, mapper| Constructor and Description |
|---|
GroupsServiceImpl(DatabricksRestClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupToGroup(String groupName,
String parentName)
Adds a group to a group.
|
void |
addUserToGroup(String userName,
String parentName)
Adds a user to a group.
|
String |
createGroup(String groupName)
Creates a new group.
|
void |
deleteGroup(String groupName)
Removes a group from this organization.
|
boolean |
groupExists(String groupName)
Check to see if a group exists with a given name.
|
String[] |
listGroups()
Returns all the groups in an organization.
|
PrincipalNameDTO[] |
listMembers(String groupName)
Returns all of the members of a particular group.
|
String[] |
listParentsOfGroup(String groupName)
Retrieves all groups in which a given group is a member.
|
String[] |
listParentsOfUser(String userName)
Retrieves all groups in which a given user is a member.
|
void |
removeGroupFromGroup(String groupName,
String parentName)
Removes a group from a group.
|
void |
removeUserFromGroup(String userName,
String parentName)
Removes a user from a group.
|
public GroupsServiceImpl(DatabricksRestClient client)
public void addUserToGroup(String userName, String parentName) throws IOException, DatabricksRestException
GroupsServiceaddUserToGroup in interface GroupsServiceuserName - the userName to be addedparentName - name of the parent group to which the new member will be addedIOException - other connection errorsDatabricksRestException - any errors with the requestpublic void addGroupToGroup(String groupName, String parentName) throws IOException, DatabricksRestException
GroupsServiceaddGroupToGroup in interface GroupsServicegroupName - the groupName to be addedparentName - name of the parent group to which the new member will be addedIOException - other connection errorsDatabricksRestException - any errors with the requestpublic String createGroup(String groupName) throws IOException, DatabricksRestException
GroupsServicecreateGroup in interface GroupsServicegroupName - the groupName to be createdIOException - other connection errorsDatabricksRestException - any errors with the requestpublic PrincipalNameDTO[] listMembers(String groupName) throws IOException, DatabricksRestException
GroupsServicelistMembers in interface GroupsServicegroupName - the groupName whose members we want to retrieveIOException - other connection errorsDatabricksRestException - any errors with the requestpublic String[] listGroups() throws IOException, DatabricksRestException
GroupsServicelistGroups in interface GroupsServiceIOException - other connection errorsDatabricksRestException - any errors with the requestpublic String[] listParentsOfUser(String userName) throws IOException, DatabricksRestException
GroupsServicelistParentsOfUser in interface GroupsServiceuserName - name of the userIOException - other connection errorsDatabricksRestException - any errors with the requestpublic String[] listParentsOfGroup(String groupName) throws IOException, DatabricksRestException
GroupsServicelistParentsOfGroup in interface GroupsServicegroupName - name of the groupIOException - other connection errorsDatabricksRestException - any errors with the requestpublic void removeUserFromGroup(String userName, String parentName) throws IOException, DatabricksRestException
GroupsServiceremoveUserFromGroup in interface GroupsServiceuserName - name of the userparentName - name of parent groupIOException - other connection errorsDatabricksRestException - any errors with the requestpublic void removeGroupFromGroup(String groupName, String parentName) throws IOException, DatabricksRestException
GroupsServiceremoveGroupFromGroup in interface GroupsServicegroupName - name of the groupparentName - name of parent groupIOException - other connection errorsDatabricksRestException - any errors with the requestpublic void deleteGroup(String groupName) throws IOException, DatabricksRestException
GroupsServicedeleteGroup in interface GroupsServicegroupName - name of the group to be deletedIOException - other connection errorsDatabricksRestException - any errors with the requestpublic boolean groupExists(String groupName) throws IOException, DatabricksRestException
GroupsServicegroupExists in interface GroupsServicegroupName - name to checkIOException - other connection errorsDatabricksRestException - any errors with the requestCopyright © 2023. All rights reserved.