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 from
administrator in order to configure this user store. You should override
the method 'getDefaultUserStoreProperties' method and define these.

Other than that this looks fine.

[1] -
https://docs.wso2.com/display/IS500/Writing+a+Custom+User+Store+Manager

Thanks,
Pushpalanka.
-- 
Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
Mobile: +94779716248
Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka


On Wed, Oct 15, 2014 at 5:38 PM, Shani Ranasinghe <sh...@wso2.com> wrote:

> 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 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
>>>   read_repair_chance=0.000000 AND
>>>   gc_grace_seconds=0 AND
>>>   default_validation=blob AND
>>>   min_compaction_threshold=4 AND
>>>   max_compaction_threshold=32 AND
>>>   replicate_on_write='false' AND
>>>   compaction_strategy_class='SizeTieredCompactionStrategy' AND
>>>   compression_parameters:sstable_compression='SnappyCompressor';
>>>
>>> CREATE TABLE UM_USER_ROLE (
>>>   KEY blob PRIMARY KEY
>>> ) WITH
>>>   comment='' AND
>>>   comparator=blob AND
>>>   read_repair_chance=0.000000 AND
>>>   gc_grace_seconds=0 AND
>>>   default_validation=blob AND
>>>   min_compaction_threshold=4 AND
>>>   max_compaction_threshold=32 AND
>>>   replicate_on_write='false' AND
>>>   compaction_strategy_class='SizeTieredCompactionStrategy' AND
>>>   compression_parameters:sstable_compression='SnappyCompressor';
>>>
>>> CREATE TABLE UM_ROLE_USER_INDEX (
>>>   KEY blob PRIMARY KEY
>>> ) WITH
>>>   comment='' AND
>>>   comparator=blob AND
>>>   read_repair_chance=0.000000 AND
>>>   gc_grace_seconds=0 AND
>>>   default_validation=blob AND
>>>   min_compaction_threshold=4 AND
>>>   max_compaction_threshold=32 AND
>>>   replicate_on_write='false' AND
>>>   compaction_strategy_class='SizeTieredCompactionStrategy' AND
>>>   compression_parameters:sstable_compression='SnappyCompressor';
>>>
>>> CREATE TABLE UM_ROLE (
>>>   KEY blob PRIMARY KEY
>>> ) WITH
>>>   comment='' AND
>>>   comparator=blob AND
>>>   read_repair_chance=0.000000 AND
>>>   gc_grace_seconds=0 AND
>>>   default_validation=blob AND
>>>   min_compaction_threshold=4 AND
>>>   max_compaction_threshold=32 AND
>>>   replicate_on_write='false' AND
>>>   compaction_strategy_class='SizeTieredCompactionStrategy' AND
>>>   compression_parameters:sstable_compression='SnappyCompressor';
>>>
>>> CREATE TABLE UM_USER_ATTRIBUTE (
>>>   KEY blob PRIMARY KEY
>>> ) WITH
>>>   comment='' AND
>>>   comparator=blob AND
>>>   read_repair_chance=0.000000 AND
>>>   gc_grace_seconds=0 AND
>>>   default_validation=blob AND
>>>   min_compaction_threshold=4 AND
>>>   max_compaction_threshold=32 AND
>>>   replicate_on_write='false' AND
>>>   compaction_strategy_class='SizeTieredCompactionStrategy' AND
>>>   compression_parameters:sstable_compression='SnappyCompressor';
>>>
>>>
>>> On Wed, Oct 15, 2014 at 2:15 PM, Deependra Ariyadewa <d...@wso2.com>
>>> wrote:
>>>
>>>> @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.
>>>>>
>>>>> Cheers,
>>>>> Prabath
>>>>>
>>>>> On Wed, Oct 15, 2014 at 12:32 PM, Shani Ranasinghe <sh...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> 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 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 Ranasinghe <sh...@wso2.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Attached herewith is the CassandraUserStoreManager.java which I
>>>>>>>> have implemented for Carbon 4.2.0.
>>>>>>>>
>>>>>>>> Would appreciate if I could get someone from the IS team and a
>>>>>>>> cassandra expert to review the code.
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Thanks and Regards
>>>>>>>> *,Shani Ranasinghe*
>>>>>>>> Software Engineer
>>>>>>>> WSO2 Inc.; http://wso2.com
>>>>>>>> lean.enterprise.middleware
>>>>>>>>
>>>>>>>> mobile: +94 77 2273555
>>>>>>>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Thanks and Regards
>>>>>>> *,Shani Ranasinghe*
>>>>>>> Software Engineer
>>>>>>> WSO2 Inc.; http://wso2.com
>>>>>>> lean.enterprise.middleware
>>>>>>>
>>>>>>> mobile: +94 77 2273555
>>>>>>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thanks and Regards
>>>>>> *,Shani Ranasinghe*
>>>>>> Software Engineer
>>>>>> WSO2 Inc.; http://wso2.com
>>>>>> lean.enterprise.middleware
>>>>>>
>>>>>> mobile: +94 77 2273555
>>>>>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Prabath Abeysekara
>>>>> Associate Technical Lead, Data TG.
>>>>> WSO2 Inc.
>>>>> Email: praba...@wso2.com
>>>>> Mobile: +94774171471
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Deependra Ariyadewa
>>>> WSO2, Inc. http://wso2.com/ http://wso2.org
>>>>
>>>> email d...@wso2.com; cell +94 71 403 5996 ;
>>>> Blog http://risenfall.wordpress.com/
>>>> PGP info: KeyID: 'DC627E6F'
>>>>
>>>> *WSO2 - Lean . Enterprise . Middleware*
>>>>
>>>
>>>
>>>
>>> --
>>> Thanks and Regards
>>> *,Shani Ranasinghe*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 77 2273555
>>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>>
>>
>>
>>
>> --
>> Thanks and Regards
>> *,Shani Ranasinghe*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 2273555
>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>
>
>
>
> --
> Thanks and Regards
> *,Shani Ranasinghe*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273555
> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to