Search in sources :

Example 1 with ProfileApi

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

the class FireCloudServiceImpl method registerUser.

@Override
public void registerUser(String contactEmail, String firstName, String lastName) throws ApiException {
    ProfileApi profileApi = profileApiProvider.get();
    Profile profile = new Profile();
    profile.setContactEmail(contactEmail);
    profile.setFirstName(firstName);
    profile.setLastName(lastName);
    // TODO: make these fields not required in Firecloud and stop passing them in, or prompt for
    // them (RW-29)
    profile.setTitle("None");
    profile.setInstitute("None");
    profile.setInstitutionalProgram("None");
    profile.setProgramLocationCity("None");
    profile.setProgramLocationState("None");
    profile.setProgramLocationCountry("None");
    profile.setPi("None");
    profile.setNonProfitStatus("None");
    profileApi.setProfile(profile);
}
Also used : ProfileApi(org.pmiops.workbench.firecloud.api.ProfileApi) Profile(org.pmiops.workbench.firecloud.model.Profile)

Example 2 with ProfileApi

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

the class FireCloudConfig method profileApi.

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

Aggregations

ProfileApi (org.pmiops.workbench.firecloud.api.ProfileApi)2 Profile (org.pmiops.workbench.firecloud.model.Profile)1 Bean (org.springframework.context.annotation.Bean)1 RequestScope (org.springframework.web.context.annotation.RequestScope)1