Search in sources :

Example 6 with RequestScope

use of org.springframework.web.context.annotation.RequestScope in project workbench by all-of-us.

the class FireCloudConfig method workspacesApi.

@Bean
@RequestScope(proxyMode = ScopedProxyMode.DEFAULT)
public WorkspacesApi workspacesApi(@Qualifier(END_USER_API_CLIENT) ApiClient apiClient) {
    WorkspacesApi api = new WorkspacesApi();
    api.setApiClient(apiClient);
    return api;
}
Also used : WorkspacesApi(org.pmiops.workbench.firecloud.api.WorkspacesApi) RequestScope(org.springframework.web.context.annotation.RequestScope) Bean(org.springframework.context.annotation.Bean)

Example 7 with RequestScope

use of org.springframework.web.context.annotation.RequestScope 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)

Aggregations

Bean (org.springframework.context.annotation.Bean)7 RequestScope (org.springframework.web.context.annotation.RequestScope)7 IOException (java.io.IOException)1 ServerErrorException (org.pmiops.workbench.exceptions.ServerErrorException)1 BillingApi (org.pmiops.workbench.firecloud.api.BillingApi)1 GroupsApi (org.pmiops.workbench.firecloud.api.GroupsApi)1 ProfileApi (org.pmiops.workbench.firecloud.api.ProfileApi)1 WorkspacesApi (org.pmiops.workbench.firecloud.api.WorkspacesApi)1 ClusterApi (org.pmiops.workbench.notebooks.api.ClusterApi)1 NotebooksApi (org.pmiops.workbench.notebooks.api.NotebooksApi)1