public interface GroupsService
| 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.
|
void addUserToGroup(String userName, String parentName) throws IOException, DatabricksRestException
userName - 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 requestvoid addGroupToGroup(String groupName, String parentName) throws IOException, DatabricksRestException
groupName - 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 requestString createGroup(String groupName) throws IOException, DatabricksRestException
groupName - the groupName to be createdIOException - other connection errorsDatabricksRestException - any errors with the requestPrincipalNameDTO[] listMembers(String groupName) throws IOException, DatabricksRestException
groupName - the groupName whose members we want to retrieveIOException - other connection errorsDatabricksRestException - any errors with the requestString[] listGroups() throws IOException, DatabricksRestException
IOException - other connection errorsDatabricksRestException - any errors with the requestString[] listParentsOfUser(String userName) throws IOException, DatabricksRestException
userName - name of the userIOException - other connection errorsDatabricksRestException - any errors with the requestString[] listParentsOfGroup(String groupName) throws IOException, DatabricksRestException
groupName - name of the groupIOException - other connection errorsDatabricksRestException - any errors with the requestvoid removeUserFromGroup(String userName, String parentName) throws IOException, DatabricksRestException
userName - name of the userparentName - name of parent groupIOException - other connection errorsDatabricksRestException - any errors with the requestvoid removeGroupFromGroup(String groupName, String parentName) throws IOException, DatabricksRestException
groupName - name of the groupparentName - name of parent groupIOException - other connection errorsDatabricksRestException - any errors with the requestvoid deleteGroup(String groupName) throws IOException, DatabricksRestException
groupName - name of the group to be deletedIOException - other connection errorsDatabricksRestException - any errors with the requestboolean groupExists(String groupName) throws IOException, DatabricksRestException
groupName - name to checkIOException - other connection errorsDatabricksRestException - any errors with the requestCopyright © 2023. All rights reserved.