Search in sources :

Example 1 with GroupsApi

use of org.pmiops.workbench.firecloud.api.GroupsApi in project workbench by all-of-us.

the class FireCloudServiceImpl method removeUserFromGroup.

@Override
public void removeUserFromGroup(String email, String groupName) throws ApiException {
    GroupsApi groupsApi = groupsApiProvider.get();
    groupsApi.removeUserFromGroup(groupName, "member", email);
}
Also used : GroupsApi(org.pmiops.workbench.firecloud.api.GroupsApi)

Example 2 with GroupsApi

use of org.pmiops.workbench.firecloud.api.GroupsApi in project workbench by all-of-us.

the class FireCloudConfig method groupsApi.

@Bean
@RequestScope(proxyMode = ScopedProxyMode.DEFAULT)
public GroupsApi groupsApi(@Qualifier(ALL_OF_US_API_CLIENT) ApiClient apiClient) {
    // Group/Auth Domain creation and addition are made by the AllOfUs service account
    GroupsApi api = new GroupsApi();
    api.setApiClient(apiClient);
    return api;
}
Also used : GroupsApi(org.pmiops.workbench.firecloud.api.GroupsApi) RequestScope(org.springframework.web.context.annotation.RequestScope) Bean(org.springframework.context.annotation.Bean)

Example 3 with GroupsApi

use of org.pmiops.workbench.firecloud.api.GroupsApi in project workbench by all-of-us.

the class FireCloudServiceImpl method addUserToGroup.

@Override
public void addUserToGroup(String email, String groupName) throws ApiException {
    GroupsApi groupsApi = groupsApiProvider.get();
    groupsApi.addUserToGroup(groupName, "member", email);
}
Also used : GroupsApi(org.pmiops.workbench.firecloud.api.GroupsApi)

Aggregations

GroupsApi (org.pmiops.workbench.firecloud.api.GroupsApi)3 Bean (org.springframework.context.annotation.Bean)1 RequestScope (org.springframework.web.context.annotation.RequestScope)1