use of org.wso2.carbon.identity.rest.api.user.recovery.v1.model.PasswordRecoveryInternalNotifyResponse in project identity-api-user by wso2.
the class PasswordRecoveryService method buildPasswordRecoveryInternalResponse.
/**
* Build PasswordRecoveryInternalNotifyResponse for successful password recovery.
*
* @param passwordRecoverDTO {@link PasswordRecoverDTO}PasswordRecoverDTO object
* @param apiCallsArrayList List of available API calls
* @return {@link PasswordRecoveryInternalNotifyResponse}
*/
private PasswordRecoveryInternalNotifyResponse buildPasswordRecoveryInternalResponse(PasswordRecoverDTO passwordRecoverDTO, ArrayList<APICall> apiCallsArrayList) {
PasswordRecoveryInternalNotifyResponse passwordRecoveryResponse = new PasswordRecoveryInternalNotifyResponse();
passwordRecoveryResponse.setCode(passwordRecoverDTO.getCode());
passwordRecoveryResponse.setMessage(passwordRecoverDTO.getMessage());
passwordRecoveryResponse.setNotificationChannel(passwordRecoverDTO.getNotificationChannel());
passwordRecoveryResponse.setLinks(apiCallsArrayList);
passwordRecoveryResponse.setResendCode(passwordRecoverDTO.getResendCode());
return passwordRecoveryResponse;
}
Aggregations