Search in sources :

Example 1 with Profile

use of org.pmiops.workbench.firecloud.model.Profile 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)

Aggregations

ProfileApi (org.pmiops.workbench.firecloud.api.ProfileApi)1 Profile (org.pmiops.workbench.firecloud.model.Profile)1