Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Shani Ranasinghe
[adding dev@] Just to add some context, the user store supports limited functionality. They are In super tenant mode - add/edit/delete user - add/edit/delete role - attach user to role - attach role to user - view users - view roles On Wed, Oct 15, 2014 at 12:22 PM, Shani

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Shani Ranasinghe
Hi Prabath, Actually this is quite urgent as this needs to be shared to two customers. Hence shared the code in this manner. I just scheduled the code review for today. On Wed, Oct 15, 2014 at 12:26 PM, Shani Ranasinghe sh...@wso2.com wrote: [adding dev@] Just to add some context, the user

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Prabath Abeysekera
If that's the case please get Deep/Bhathiya to do a quick review on the Cassandra related aspects of this. We can probably go for a much organized code review later. Cheers, Prabath On Wed, Oct 15, 2014 at 12:32 PM, Shani Ranasinghe sh...@wso2.com wrote: Hi Prabath, Actually this is quite

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Shani Ranasinghe
Hi Prabath, Sure will reschedule the formal code review for tomorrow then. On Wed, Oct 15, 2014 at 12:37 PM, Prabath Abeysekera praba...@wso2.com wrote: If that's the case please get Deep/Bhathiya to do a quick review on the Cassandra related aspects of this. We can probably go for a much

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Prabath Abeysekera
Great. Thanks! On Wed, Oct 15, 2014 at 1:15 PM, Shani Ranasinghe sh...@wso2.com wrote: Hi Prabath, Sure will reschedule the formal code review for tomorrow then. On Wed, Oct 15, 2014 at 12:37 PM, Prabath Abeysekera praba...@wso2.com wrote: If that's the case please get Deep/Bhathiya to do

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Deependra Ariyadewa
@Shani Please share the user mgt schema. On Wed, Oct 15, 2014 at 12:37 PM, Prabath Abeysekera praba...@wso2.com wrote: If that's the case please get Deep/Bhathiya to do a quick review on the Cassandra related aspects of this. We can probably go for a much organized code review later.

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Shani Ranasinghe
Please find the keyspace schema for the user store. CREATE TABLE UM_USER ( KEY blob PRIMARY KEY ) WITH comment='' AND comparator=blob AND read_repair_chance=0.00 AND gc_grace_seconds=0 AND default_validation=blob AND min_compaction_threshold=4 AND max_compaction_threshold=32

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Shani Ranasinghe
Hi, I have also attached the full source of the jar. On Wed, Oct 15, 2014 at 2:17 PM, Shani Ranasinghe sh...@wso2.com wrote: Please find the keyspace schema for the user store. CREATE TABLE UM_USER ( KEY blob PRIMARY KEY ) WITH comment='' AND comparator=blob AND

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Shani Ranasinghe
Hi All, I have made some improvements to the cassandra queries in the class. Attached is the modified version. Basically I got rid of RangeSliceQueries and used other types of queries in instances when I could. On Wed, Oct 15, 2014 at 2:20 PM, Shani Ranasinghe sh...@wso2.com wrote: Hi, I have

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Shani Ranasinghe
Hi, The Schema Structure is as follows. UM_USER_ATTRIBUTE is not used (claim handling is not supported in this version of the user store), but the column family is created. CF Name Description Composite key columns example UM_USER Stores users userName,tenantID e.g(�user5��-1234�)

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Pushpalanka Jayawardhana
Hi Shani, Ideally custom user store manager should be get appeared in the User Store Configuration UI of the Mgt-console. For this you should properly pack it into an OSGI bundle. You can refer [1] to capture how to do this. Please also note that we should define what are expected properties

Re: [Dev] Cassandra User Store Manager - Code review

2014-10-15 Thread Deependra Ariyadewa
It looks batch operations are atomic after Cassandra 1.2 but not isolated. http://www.datastax.com/dev/blog/atomic-batches-in-cassandra-1-2 On Wed, Oct 15, 2014 at 6:17 PM, Shani Ranasinghe sh...@wso2.com wrote: Hi, The Schema Structure is as follows. UM_USER_ATTRIBUTE is not used (claim