Search in sources :

Example 1 with PasswordRecoveryExternalNotifyResponse

use of org.wso2.carbon.identity.rest.api.user.recovery.v1.model.PasswordRecoveryExternalNotifyResponse in project identity-api-user by wso2.

the class PasswordRecoveryService method buildPasswordRecoveryExternalResponse.

/**
 * Build PasswordRecoveryExternalNotifyResponse for successful password recovery.
 *
 * @param passwordRecoverDTO {@link PasswordRecoverDTO}PasswordRecoverDTO object
 * @param apiCallsArrayList  List of available API calls
 * @return {@link PasswordRecoveryExternalNotifyResponse} Password recovery external notify response
 */
private PasswordRecoveryExternalNotifyResponse buildPasswordRecoveryExternalResponse(PasswordRecoverDTO passwordRecoverDTO, ArrayList<APICall> apiCallsArrayList) {
    PasswordRecoveryExternalNotifyResponse passwordRecoveryResponse = new PasswordRecoveryExternalNotifyResponse();
    passwordRecoveryResponse.setCode(passwordRecoverDTO.getCode());
    passwordRecoveryResponse.setMessage(passwordRecoverDTO.getMessage());
    passwordRecoveryResponse.setNotificationChannel(passwordRecoverDTO.getNotificationChannel());
    passwordRecoveryResponse.setConfirmationCode(passwordRecoverDTO.getConfirmationCode());
    passwordRecoveryResponse.setResendCode(passwordRecoverDTO.getResendCode());
    passwordRecoveryResponse.setLinks(apiCallsArrayList);
    return passwordRecoveryResponse;
}
Also used : PasswordRecoveryExternalNotifyResponse(org.wso2.carbon.identity.rest.api.user.recovery.v1.model.PasswordRecoveryExternalNotifyResponse)

Aggregations

PasswordRecoveryExternalNotifyResponse (org.wso2.carbon.identity.rest.api.user.recovery.v1.model.PasswordRecoveryExternalNotifyResponse)1