use of org.wso2.carbon.identity.user.store.configuration.stub.dto.PropertyDTO in project identity-governance by wso2-extensions.
the class RecoveryUtil method getProperties.
public static Property[] getProperties(List<PropertyDTO> propertyDTOs) {
if (propertyDTOs == null) {
return new Property[0];
}
Property[] properties = new Property[propertyDTOs.size()];
for (int i = 0; i < propertyDTOs.size(); i++) {
Property property = new Property(propertyDTOs.get(i).getKey(), propertyDTOs.get(i).getValue());
properties[i] = property;
}
return properties;
}
use of org.wso2.carbon.identity.user.store.configuration.stub.dto.PropertyDTO in project identity-governance by wso2-extensions.
the class ResendCodeApiServiceImplTest method duplicateScenarioResendCodeRequestDTO.
private ResendCodeRequestDTO duplicateScenarioResendCodeRequestDTO() {
ResendCodeRequestDTO resendCodeRequestDTO = new ResendCodeRequestDTO();
resendCodeRequestDTO.setUser(buildUserDTO());
List<PropertyDTO> listProperty = new ArrayList<>();
listProperty.add(recoveryScenarioPropertyDTO());
listProperty.add(recoveryScenarioPropertyDTO());
resendCodeRequestDTO.setProperties(listProperty);
return resendCodeRequestDTO;
}
use of org.wso2.carbon.identity.user.store.configuration.stub.dto.PropertyDTO in project identity-governance by wso2-extensions.
the class ResendCodeApiServiceImplTest method recoveryScenarioResendCodeRequestDTO.
private ResendCodeRequestDTO recoveryScenarioResendCodeRequestDTO() {
ResendCodeRequestDTO resendCodeRequestDTO = new ResendCodeRequestDTO();
resendCodeRequestDTO.setUser(buildUserDTO());
List<PropertyDTO> listProperty = new ArrayList<>();
listProperty.add(recoveryScenarioPropertyDTO());
resendCodeRequestDTO.setProperties(listProperty);
return resendCodeRequestDTO;
}
use of org.wso2.carbon.identity.user.store.configuration.stub.dto.PropertyDTO in project identity-governance by wso2-extensions.
the class ResendCodeApiServiceImplTest method resendCodeRequestDTO.
private ResendCodeRequestDTO resendCodeRequestDTO() {
ResendCodeRequestDTO resendCodeRequestDTO = new ResendCodeRequestDTO();
resendCodeRequestDTO.setUser(buildUserDTO());
List<PropertyDTO> listProperty = new ArrayList<>();
listProperty.add(buildPropertyDTO());
resendCodeRequestDTO.setProperties(listProperty);
return resendCodeRequestDTO;
}
use of org.wso2.carbon.identity.user.store.configuration.stub.dto.PropertyDTO in project identity-governance by wso2-extensions.
the class ResendCodeApiServiceImplTest method multipleResendCodeRequestDTO.
private ResendCodeRequestDTO multipleResendCodeRequestDTO() {
ResendCodeRequestDTO resendCodeRequestDTO = new ResendCodeRequestDTO();
resendCodeRequestDTO.setUser(buildUserDTO());
List<PropertyDTO> listProperty = new ArrayList<>();
listProperty.add(buildPropertyDTO());
listProperty.add(buildPropertyDTO());
resendCodeRequestDTO.setProperties(listProperty);
return resendCodeRequestDTO;
}
Aggregations