Sometimes waiting for an answer to a query makes you impatient and you read lot of articles/documentations which forces you to try different options(mostly hit and trial
) and in the process you may find answer to your questions yourself. And this is what happened with me
.
Thoughts apart, I found answer to most of the questions I raised in my previous comments. Will post about them point by point
1. BLC documentation which guided me to create custom entity
http://www.broadleafcommerce.com/docs/core/current/tutorials/getting-started-tutorials/extending-customer-for-heat-clinic-tutorial2. Once the above step was done, I ran admin application with "blPU.hibernate.hbm2ddl.auto=update" in admin and to my amusement I could see the two entity(MyAdminUser and MyProduct) created in DB. Now when i clicked "add user" inside "Security>Users" I could see option to create normal user or user of type MyAdminUser. I created MyAdminUser and value of column "store_id" was set to "null" which I think happened because I did not map any store. Then in hunt to look for a way to input Store value, I got to know about multi-tenant feature which is available in enterprise edition.
Now for storing Store related info I am not sure whether I will need to write code as I could see StoreServiceImpl available to read store data from DB.3. I was able to see blc_store table being referenced by previously mentioned new entities.
But I am still not clear how will I map user to their store. Will i need to code it? But for fetch I assume StoreServiceImpl will suffice.4. Created beans mapping in applicationContext-servlet-admin.xml
but not sure whether this is the right place to do so !!!. Also not clear when these beans will be called?