Search in sources :

Example 1 with SelfRegistrationUserDTO

use of org.wso2.carbon.identity.user.endpoint.dto.SelfRegistrationUserDTO in project identity-governance by wso2-extensions.

the class UtilsTest method buildSelfRegistrationUserDTO.

private SelfRegistrationUserDTO buildSelfRegistrationUserDTO() {
    SelfRegistrationUserDTO userDTO = new SelfRegistrationUserDTO();
    userDTO.setTenantDomain("testTenant");
    userDTO.setUsername("testUser");
    userDTO.setRealm("testRealm");
    return userDTO;
}
Also used : SelfRegistrationUserDTO(org.wso2.carbon.identity.user.endpoint.dto.SelfRegistrationUserDTO)

Example 2 with SelfRegistrationUserDTO

use of org.wso2.carbon.identity.user.endpoint.dto.SelfRegistrationUserDTO in project identity-governance by wso2-extensions.

the class MeApiServiceImplTest method buildSelfRegistartion.

private SelfRegistrationUserDTO buildSelfRegistartion() {
    SelfRegistrationUserDTO selfRegistrationUserDTO = new SelfRegistrationUserDTO();
    selfRegistrationUserDTO.setUsername("TestUser");
    selfRegistrationUserDTO.setRealm(null);
    selfRegistrationUserDTO.setTenantDomain("TestTenantDomain");
    selfRegistrationUserDTO.setPassword("TestPassword");
    return selfRegistrationUserDTO;
}
Also used : SelfRegistrationUserDTO(org.wso2.carbon.identity.user.endpoint.dto.SelfRegistrationUserDTO)

Example 3 with SelfRegistrationUserDTO

use of org.wso2.carbon.identity.user.endpoint.dto.SelfRegistrationUserDTO in project identity-governance by wso2-extensions.

the class Utils method getUser.

public static User getUser(SelfRegistrationUserDTO userDTO) {
    User user = new User();
    user.setTenantDomain(userDTO.getTenantDomain());
    user.setUserStoreDomain(userDTO.getRealm());
    user.setUserName(userDTO.getUsername());
    return user;
}
Also used : User(org.wso2.carbon.identity.application.common.model.User)

Aggregations

SelfRegistrationUserDTO (org.wso2.carbon.identity.user.endpoint.dto.SelfRegistrationUserDTO)2 User (org.wso2.carbon.identity.application.common.model.User)1