Hi, In the current implementation, challenge questions are persisted to the registry as registry resource properties as shown below.
I had a look at the discussion[1] on how persisting email templates for different locale should be done. I am planning to follow a similar approach in storing challenge questions for different locale. The idea explained in [1] is to store the template/question as a registry resource rather than as a registry property. So I will be following a structure similar to shown below to store the challenge questions. So each question will be stored following a */system/config/challenge-questions/<questionSetID>/<questionID>/<locale> *convention as shown above. The first step is to reuse most of the email templates registry persistence code and make it generic (provide an interface) to retrieve any registry resource(eg: email templates, challenge questions, ) based on locale. The next step is to abstract the retrieval of resources logic to support retrieval of resources from a DB, API etc. [1] http://mail.wso2.org/mailarchive/architecture/2015-May/020188.html Thanks, Farasath Ahamed Software Engineer, WSO2 Inc.; http://wso2.com lean.enterprise.middleware
_______________________________________________ Architecture mailing list Architecture@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture