Hi Nirmal,

Oh, I didn't realize that you had to access user-mgt.xml. Sorry about that.
Please go ahead with Dimuthu's suggestion in that case to use UserCoreUtil.

Thanks,
Senaka.

On Sun, Feb 5, 2012 at 9:57 PM, Nirmal Fernando <nir...@wso2.com> wrote:

> Hi Senaka,
>
> On Sat, Feb 4, 2012 at 7:49 PM, Nirmal Fernando <nir...@wso2.com> wrote:
>
>> Hi Senaka,
>>
>> On Sat, Feb 4, 2012 at 5:50 PM, Senaka Fernando <sen...@wso2.com> wrote:
>>
>>> Hi Nirmal, Dimuthu,
>>>
>>> In that case add it to CarbonBaseUtils in carbon.base.
>>>
>>
> There's a problem when using carbon.base. In order to read 'user-mgt.xml',
> as far as I see, I need to use following classes:
>
> RealmConfiguration : user.api
> UserCoreConstants : user.core
> RealmConfigXMLProcessor : user.core
> UserStoreException : user.core
>
> Thus, adding these dependencies to carbon.base arises cyclic dependencies.
>
> So, I think validation should be done at the CarbonUIUtil.
>
> WDYT?
>
>
>
>>
>> Will use it then, thanks!
>>
>>>
>>> The reason for introducing carbon.base is to exactly address the problem
>>> you are expressing, where utils actually depends on some low-level bundles
>>> in carbon, and therefore can't be used by lower-layer bundles such as
>>> user.core. Carbon Base was designed to be the lowest in all of Carbon,
>>> making it possible for any other bundle to use it.
>>>
>>> Thanks,
>>> Senaka.
>>>
>>>
>>> On Sat, Feb 4, 2012 at 4:28 PM, Dimuthu Leelarathne 
>>> <dimut...@wso2.com>wrote:
>>>
>>>> Hi Nirmal,
>>>>
>>>> One more thing. You cannot add a dependency of CarbonUtils to
>>>> User.Core, it will create a cyclic dependency. So I would look at adding it
>>>> to UserCoreUtil and CarbonUIUtil.
>>>>
>>>> thanks,
>>>> dimuthu
>>>>
>>>>
>>>> On Sat, Feb 4, 2012 at 2:55 PM, Nirmal Fernando <nir...@wso2.com>wrote:
>>>>
>>>>>
>>>>>
>>>>> On Sat, Feb 4, 2012 at 2:37 PM, Senaka Fernando <sen...@wso2.com>wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Sat, Feb 4, 2012 at 2:01 PM, Afkham Azeez <az...@wso2.com> wrote:
>>>>>>
>>>>>>> No,  that's not the correct bundle. May be a method in CarbonUtil
>>>>>>> would do
>>>>>>>
>>>>>>
>>>>>> +1. For cross-cutting concerns use CarbonUtil and CarbonUIUtil.
>>>>>>
>>>>>
>>>>> Thanks, will have a look!
>>>>>
>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>> Senaka.
>>>>>>
>>>>>>>  --
>>>>>>> Afkham Azeez
>>>>>>> Sent from my phone
>>>>>>> On Feb 4, 2012 11:49 AM, "Nirmal Fernando" <nir...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> On Mon, Jan 30, 2012 at 9:24 AM, Afkham Azeez <az...@wso2.com>wrote:
>>>>>>>>
>>>>>>>>> Please fix this to do the password requirements validation from a
>>>>>>>>> single place. The length should be the same in all cases.
>>>>>>>>>
>>>>>>>>  Will it be right to do the password validation at
>>>>>>>> "org.wso2.carbon.registry.common.ui" (inside registry component)? or Is
>>>>>>>> there a more suitable place?
>>>>>>>>
>>>>>>>> --
>>>>>>>>> Afkham Azeez
>>>>>>>>> Sent from my phone
>>>>>>>>> On Jan 28, 2012 10:27 AM, "Nirmal Fernando" <nir...@wso2.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> When you create a new domain in Stratos minimum password length
>>>>>>>>>> requirement is 6, but after logged in when you adding a new user 
>>>>>>>>>> minimum
>>>>>>>>>> password length requirement is 5 (which can only be seen in the error
>>>>>>>>>> message pop up, when u enter a <5 character password).
>>>>>>>>>>
>>>>>>>>>> Is this a design decision? If we have this inconsistency isn't it
>>>>>>>>>> better to add a tip mentioning minimum password length requirement 
>>>>>>>>>> when you
>>>>>>>>>> create a new user.
>>>>>>>>>>
>>>>>>>>>> PS: this is related to issue at
>>>>>>>>>> https://wso2.org/jira/browse/CARBON-12290
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>>
>>>>>>>>>> regards,
>>>>>>>>>> Nirmal
>>>>>>>>>>
>>>>>>>>>> Software Engineer, WSO2 Inc.
>>>>>>>>>> mobile: +94715779733
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Carbon-dev mailing list
>>>>>>>>>> Carbon-dev@wso2.org
>>>>>>>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Carbon-dev mailing list
>>>>>>>>> Carbon-dev@wso2.org
>>>>>>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> Thanks & regards,
>>>>>>>> Nirmal
>>>>>>>>
>>>>>>>> Software Engineer- Platform, WSO2 Inc.
>>>>>>>> Mobile: +94715779733
>>>>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Senaka Fernando*
>>>>>> Product Manager - WSO2 Governance Registry;
>>>>>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>>>>>> Member; Apache Software Foundation; http://apache.org
>>>>>>
>>>>>> E-mail: senaka AT wso2.com
>>>>>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>>>>>> Linked-In: http://linkedin.com/in/senakafernando
>>>>>>
>>>>>> *Lean . Enterprise . Middleware
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Thanks & regards,
>>>>> Nirmal
>>>>>
>>>>> Software Engineer- Platform, WSO2 Inc.
>>>>> Mobile: +94715779733
>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>
>>>>> _______________________________________________
>>>>> Carbon-dev mailing list
>>>>> Carbon-dev@wso2.org
>>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Dimuthu Leelarathne
>>>>  Technical Lead
>>>>
>>>> WSO2, Inc. (http://wso2.com)
>>>> email:
>>>> dimut...@wso2.com
>>>>
>>>> Lean . Enterprise . Middleware
>>>>
>>>>
>>>
>>>
>>> --
>>> *Senaka Fernando*
>>> Product Manager - WSO2 Governance Registry;
>>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>>> Member; Apache Software Foundation; http://apache.org
>>>
>>> E-mail: senaka AT wso2.com
>>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>>> Linked-In: http://linkedin.com/in/senakafernando
>>>
>>> *Lean . Enterprise . Middleware
>>>
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Software Engineer- Platform, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Software Engineer- Platform, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>



-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to