Search in sources :

Example 6 with PropertyDTO

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;
}
Also used : Property(org.wso2.carbon.identity.recovery.model.Property)

Example 7 with PropertyDTO

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;
}
Also used : ArrayList(java.util.ArrayList) ResendCodeRequestDTO(org.wso2.carbon.identity.user.endpoint.dto.ResendCodeRequestDTO) PropertyDTO(org.wso2.carbon.identity.user.endpoint.dto.PropertyDTO)

Example 8 with PropertyDTO

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;
}
Also used : ArrayList(java.util.ArrayList) ResendCodeRequestDTO(org.wso2.carbon.identity.user.endpoint.dto.ResendCodeRequestDTO) PropertyDTO(org.wso2.carbon.identity.user.endpoint.dto.PropertyDTO)

Example 9 with PropertyDTO

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;
}
Also used : ArrayList(java.util.ArrayList) ResendCodeRequestDTO(org.wso2.carbon.identity.user.endpoint.dto.ResendCodeRequestDTO) PropertyDTO(org.wso2.carbon.identity.user.endpoint.dto.PropertyDTO)

Example 10 with PropertyDTO

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;
}
Also used : ArrayList(java.util.ArrayList) ResendCodeRequestDTO(org.wso2.carbon.identity.user.endpoint.dto.ResendCodeRequestDTO) PropertyDTO(org.wso2.carbon.identity.user.endpoint.dto.PropertyDTO)

Aggregations

ArrayList (java.util.ArrayList)23 PropertyDTO (org.wso2.carbon.identity.user.endpoint.dto.PropertyDTO)18 PropertyDTO (org.wso2.carbon.identity.user.store.configuration.dto.PropertyDTO)10 PropertyDTO (org.wso2.carbon.identity.user.store.configuration.stub.dto.PropertyDTO)10 UserStoreDTO (org.wso2.carbon.identity.user.store.configuration.stub.dto.UserStoreDTO)9 File (java.io.File)7 Test (org.testng.annotations.Test)7 H2DataBaseManager (org.wso2.carbon.automation.test.utils.dbutils.H2DataBaseManager)6 ResendCodeRequestDTO (org.wso2.carbon.identity.user.endpoint.dto.ResendCodeRequestDTO)6 ISIntegrationTest (org.wso2.identity.integration.common.utils.ISIntegrationTest)6 Property (org.wso2.carbon.user.api.Property)5 AddUserStorePropertiesRes (org.wso2.carbon.identity.api.server.userstore.v1.model.AddUserStorePropertiesRes)3 PropertyDTO (org.wso2.carbon.identity.recovery.endpoint.dto.PropertyDTO)3 ErrorDTO (org.wso2.carbon.identity.user.endpoint.dto.ErrorDTO)3 UserStoreDTO (org.wso2.carbon.identity.user.store.configuration.dto.UserStoreDTO)3 JDBCUserStoreManager (org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager)3 PublisherDataHolder (org.wso2.carbon.identity.entitlement.stub.dto.PublisherDataHolder)2 PublisherPropertyDTO (org.wso2.carbon.identity.entitlement.stub.dto.PublisherPropertyDTO)2 IdentityRecoveryException (org.wso2.carbon.identity.recovery.IdentityRecoveryException)2 NotificationResponseBean (org.wso2.carbon.identity.recovery.bean.NotificationResponseBean)2