Hi Farasath, +1 for storing the content of the questions as the registry resource values. But how are you planning to store the boolean values such as " *isPromoteQuestion*" ?. I think it's better to keep that sort of data as a property value, so the retrieval process will be easy. WDYT ?
Thanks, Kasun. On Sat, Jun 4, 2016 at 12:16 AM, Farasath Ahamed <farasa...@wso2.com> wrote: > 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 > -- Kasun Bandara *Software Engineer* Mobile : +94 (0) 718 338 360 <%2B94%20%280%29%20773%20451194> kas...@wso2.com <thili...@wso2.com>
_______________________________________________ Architecture mailing list Architecture@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture