use of org.wso2.carbon.identity.user.rename.core.dto.UserDTO in project identity-governance by wso2-extensions.
the class ResendCodeApiServiceImplTest method emptyResendCodeRequestDTO.
private ResendCodeRequestDTO emptyResendCodeRequestDTO() {
ResendCodeRequestDTO resendCodeRequestDTO = new ResendCodeRequestDTO();
UserDTO userDTO = new UserDTO();
resendCodeRequestDTO.setUser(userDTO);
List<PropertyDTO> listProperty = new ArrayList<>();
resendCodeRequestDTO.setProperties(listProperty);
return resendCodeRequestDTO;
}
use of org.wso2.carbon.identity.user.rename.core.dto.UserDTO in project product-is by wso2.
the class UserStoreConfigAdminServiceClient method createUserStoreDTO.
/**
* Create UserDTO to simulate UI call
*
* @param className
* @param domainId
* @param properties
* @return
*/
public UserStoreDTO createUserStoreDTO(String className, String domainId, PropertyDTO[] properties) {
UserStoreDTO userStoreDTO = new UserStoreDTO();
userStoreDTO.setClassName(className);
userStoreDTO.setDomainId(domainId);
userStoreDTO.setProperties(properties);
return userStoreDTO;
}
use of org.wso2.carbon.identity.user.rename.core.dto.UserDTO in project product-is by wso2.
the class AbstractUUIDUMTestCase method testAddRemoveUsersOfRole.
public void testAddRemoveUsersOfRole() throws Exception {
UserDTO userDTO = userMgtClient.addUserWithID(user2Username, credential2, new String[0], new ClaimValue[0], defaultProfile);
userMgtClient.addRoleWithID(role3name, new String[] { userDTO.getUserID() }, new PermissionDTO[] {}, false);
String[] newUsers = new String[] { userDTO.getUserID() };
String[] deletedUsers = new String[] { userId };
userMgtClient.updateUserListOfRoleWithID(role3name, newUsers, deletedUsers);
Assert.assertTrue(userNameExists(userMgtClient.getUserListOfRoleWithID(role3name), user1Username), "Getting user added to umRole3 role failed");
Assert.assertFalse(userNameExists(userMgtClient.getUserListOfRoleWithID(role3name), user2Username), "User user2 still exists in the umRole3 role");
// Clean up the modified users of role and test it.
userMgtClient.updateUserListOfRoleWithID(role3name, deletedUsers, newUsers);
Assert.assertTrue(userNameExists(userMgtClient.getUserListOfRoleWithID(role3name), user2Username), "Getting user added to umRole3 role failed");
Assert.assertFalse(userNameExists(userMgtClient.getUserListOfRoleWithID(role3name), user1Username), "User user1 still exists in the umRole3 role");
}
use of org.wso2.carbon.identity.user.rename.core.dto.UserDTO in project product-is by wso2.
the class AbstractUUIDUMTestCase method testAddUser.
public void testAddUser() throws Exception {
UserDTO userDTO = userMgtClient.addUserWithID(user1Username, credential1, new String[0], new ClaimValue[0], defaultProfile);
this.userId = userDTO.getUserID();
Assert.assertNotNull(userDTO);
}
use of org.wso2.carbon.identity.user.rename.core.dto.UserDTO in project product-is by wso2.
the class UUIDUserStoreManagerService method getUserDTOListFromUser.
private UserDTO[] getUserDTOListFromUser(List<User> userListWithID) {
UserDTO[] userDTOS = new UserDTO[userListWithID.size()];
int i = 0;
for (User user : userListWithID) {
userDTOS[i] = getUserDTO(user);
i++;
}
return userDTOS;
}
Aggregations