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);
}
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;
}
Aggregations