public class ScimServiceImpl extends DatabricksService implements ScimService
client, mapper| Constructor and Description |
|---|
ScimServiceImpl(DatabricksRestClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
addUsersToGroup(long groupId,
long[] userIds)
Update a group in Databricks by adding new members.
|
long |
createGroup(GroupDTO group)
Creates a group in the Databricks workspace.
|
long |
createUser(UserDTO userDTO)
Create a user in the Databricks workspace.
|
void |
deleteGroup(long id)
Removes a group from the workspace.
|
void |
deleteUser(long id)
Inactivates an user.
|
void |
editUser(UserDTO userDTO)
Updates an user.
|
GroupDTO |
getGroup(long id)
Gets a group by id.
|
UserDTO |
getUser(long id)
Gets an user by id.
|
ListResponseDTO<GroupDTO> |
listGroups()
Retrieve a list of groups associated with a Databricks workspace.
|
ListResponseDTO<GroupDTO> |
listGroups(String filters)
Retrieve a list of groups associated with a Databricks workspace.
|
ListResponseDTO<UserDTO> |
listUsers()
Retrieve a list of users associated with a Databricks workspace.
|
ListResponseDTO<UserDTO> |
listUsers(String filters)
Retrieve a list of users associated with a Databricks workspace.
|
void |
removeUsersFromGroup(long groupId,
long[] userIds)
Update a group in Databricks by removing members.
|
public ScimServiceImpl(DatabricksRestClient client)
public UserDTO getUser(long id) throws IOException, DatabricksRestException
ScimServicegetUser in interface ScimServiceid - user idIOException - any other errorsDatabricksRestException - any errors with requestpublic void deleteUser(long id)
throws DatabricksRestException
ScimServicedeleteUser in interface ScimServiceid - user idDatabricksRestException - any errors with requestpublic ListResponseDTO<UserDTO> listUsers() throws IOException, DatabricksRestException
ScimServicelistUsers in interface ScimServiceIOException - any other errorsDatabricksRestException - any errors with requestpublic ListResponseDTO<UserDTO> listUsers(String filters) throws IOException, DatabricksRestException
ScimServicelistUsers in interface ScimServicefilters - query filters, can be null @see https://docs.databricks.com/dev-tools/api/latest/scim.html#scim-filtersIOException - any other errorsDatabricksRestException - any errors with requestpublic long createUser(UserDTO userDTO) throws IOException, DatabricksRestException
ScimServicecreateUser in interface ScimServiceuserDTO - POJO representing an userIOException - any other errorsDatabricksRestException - any errors with requestpublic void editUser(UserDTO userDTO) throws IOException, DatabricksRestException
ScimServiceeditUser in interface ScimServiceuserDTO - POJO representing an userIOException - any other errorsDatabricksRestException - any errors with requestpublic GroupDTO getGroup(long id) throws IOException, DatabricksRestException
ScimServicegetGroup in interface ScimServiceid - the group idIOException - any other errorsDatabricksRestException - any errors with requestpublic void deleteGroup(long id)
throws DatabricksRestException
ScimServicedeleteGroup in interface ScimServiceid - group idDatabricksRestException - any errors with requestpublic ListResponseDTO<GroupDTO> listGroups() throws IOException, DatabricksRestException
ScimServicelistGroups in interface ScimServiceIOException - any other errorsDatabricksRestException - any errors with requestpublic ListResponseDTO<GroupDTO> listGroups(String filters) throws IOException, DatabricksRestException
ScimServicelistGroups in interface ScimServicefilters - query filters, can be null @see https://docs.databricks.com/dev-tools/api/latest/scim.html#scim-filtersIOException - any other errorsDatabricksRestException - any errors with requestpublic long createGroup(GroupDTO group) throws IOException, DatabricksRestException
ScimServicecreateGroup in interface ScimServicegroup - POJO representing an groupIOException - any other errorsDatabricksRestException - any errors with requestpublic void addUsersToGroup(long groupId,
long[] userIds)
throws IOException,
DatabricksRestException
ScimServiceaddUsersToGroup in interface ScimServicegroupId - group iduserIds - user idsIOException - any other errorsDatabricksRestException - any errors with requestpublic void removeUsersFromGroup(long groupId,
long[] userIds)
throws IOException,
DatabricksRestException
ScimServiceremoveUsersFromGroup in interface ScimServicegroupId - group iduserIds - user idsIOException - any other errorsDatabricksRestException - any errors with requestCopyright © 2023. All rights reserved.