Hi Dhanushka,

On Tue, May 21, 2013 at 11:45 AM, Danushka Fernando <[email protected]>wrote:

> Hi,
> There is a requirement in creating a database in default mode which means
> when user creates a database with a certain name it should create a db user
> and a role with the same name and those role and user should be attached to
> the database.
> First we tried to do without patching RSSAdmin service. Since we create
> these databases in tenants we can't retrieve the actual username created
> using the exposed data in RSSAdmin service. Because RSSAdmin service append
> some string to the end of the username.
> Now the plan is to patch RSSAdmin to add a new action to the service to do
> the whole thing in the back-end and we will do one service call from the
> jaggery side.
>

I assume what you refer to as adding a new action is, adding a new method
to the RSS Admin Service API to do all the tasks at once. IMO, having a
method to accept all the information on
Database/DatabaseUser/DatabasePrivileges and do all the things within the
scope of a single method does not look right to me. If your only problem is
to retrieve the generated string appended to a particular username, why it
isn't possible to simply add a util function somewhere in RSS client side
and infer the hash value calculated upon a particular tenant domain name to
form the fully qualified name given to a particular database user? Am I
missing something?


>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

Regards,
Prabath
-- 
Prabath Abeysekara
Email: [email protected] <[email protected]>
Mobile: +94774171471

<http://harshana05.blogspot.com/>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to