PDA

View Full Version : Grails to create SaaS application



rodrigo
18-02-2011, 04:07 PM
Hi everyone,

This is a general question about how to design a SaaS application. The thing is, if I want to create an application and make grails help me to filter data of one account(for example, a company), so tha I dont have to do every quwry/selection filtering bay that company, ┐is there a simple way? ┐Any grails feature that could help?

All tips are welcome. :)
Thanks!

dave
21-02-2011, 09:25 AM
I find myself having to do exactly what you ask more often than not these days. The term used to describe this scenario is 'multi-tenant'. There are a couple of immediate choices available, firstly the obvious is to require the user to login with both their login id & password along with an additional field to identify the company. You could then modify your querys/filters to also include that company identifier.

There is also an existing plug-in which aims to make this all transparent to you called surprise, the multitenant plugin. http://www.grails.org/plugin/multi-tenant