Re: [Dev] Fwd: [IS] Customize user creation form with a date picker widget

2016-12-23 Thread Hanen Ben Rhouma
Yes your understanding is right Chamila, ideally I want this custom
attribute since the creation but I'm still working on that, so for the time
being I'm concentrated on the edit form.

Ok. I'll put the jar under patches and will retest.

Thanks.

Regards,
Hanen

On Fri, Dec 23, 2016 at 3:12 PM, Chamila Wijayarathna <
cdwijayarat...@gmail.com> wrote:

> Hi Hanen,
>
> This is my understanding about your requirement. You are trying to get
> "publicHolidays" attribute from per user, where each user/admin (I'm not
> clear whether user or admin does this operation) can update this attribute
> in user profile update page (or is it at user creation time?).
>
> You have added a new claim for this and in the profile update page, you
> need to use a jquery date picker to this field. You have updated profile
> edit page. where you consider above claim specially and use date picker
> there.
>
> If this is what you are trying to do, I think what you have done is okay.
> Without replacing the jar in plugins folder, you can create a patch
> folder at repository/cpmponents/patches folder at put your jar their. This
> is the recommended way.  must be the highest number in the folder. If
> your patches folder is empty, use 0001.
>
> Regards!
> Chamila
>
> On Sat, Dec 24, 2016 at 1:00 AM, Hanen Ben Rhouma 
> wrote:
>
>> I have attached the JSP file. Mainly I'm trying to use date picker
>> whenever the form field id corresponds to the Claim URI "
>> http://wso2.org/claims/publicHolidays;.
>> For this I added jquery and jquery-ui and created a javascript function:
>>
>>
>> $( function() { $( "#http://wso2.org/claims/publicHolidays;
>> ).datepicker(); } );
>>
>> The idea is to display the date picker whenever the user is trying to
>> fill the field Working Holidays.
>>
>>
>>
>>
>> Regards,
>> Hanen
>>
>> On Fri, Dec 23, 2016 at 2:47 PM, Chamila Wijayarathna <
>> cdwijayarat...@gmail.com> wrote:
>>
>>> What are the changes you are planning to include in front end?
>>>
>>> On Sat, Dec 24, 2016 at 12:41 AM, Hanen Ben Rhouma 
>>> wrote:
>>>
 Actually, I did create a CustomUserStoreManager inheriting from
 ReadWriteLDAPUserStoreManager and overrode its method doAuthenticate, I
 packaged it as an OSGi bundle and put it under dropins, it's working fine.
 I was just looking for a conceptually more adequate solution but as I can
 see it's almost the same thing. I agree doPreAuthenticate makes more sense
 but it's going to take me the same effort to generate another working
 bundle. Although for the front part I need to change the creation form
 which corresponds to the component 
 org.wso2.carbon.identity.user.profile.ui_5.6.34.
 For this I need to recompile the plugin and replace it. Please correct me
 if I'm wrong.

 Regards,
 Hanen

 On Fri, Dec 23, 2016 at 1:50 PM, Chamila Wijayarathna <
 cdwijayarat...@gmail.com> wrote:

> Hi Hanen,
>
> If you only need the changes we discussed above about authentication
> and no changes for any functionality in identity.mgt component, I think it
> would be better to add your logic as a new component with a new
> implementation of UserStoreEventListener rather than changing identity.mgt
> component. [1] contains a sample component I wrote sometimes back, if you
> need an idea about how to write a carbon component. If you only need
> authentication functionality, your component only need to have pom,
> serviceComponent class and listener implementation. After creating the
> component, you can add the har file to repository/component/dropins folder
> and OSGI will automatically pick it.
>
> Hope that helps!
> Chamila
>
> [1]. https://github.com/wso2/product-is/tree/master/modules/
> samples/workflow/handler/service-provider
>
> On Fri, Dec 23, 2016 at 11:35 PM, Hanen Ben Rhouma  > wrote:
>
>> Thanks Chamila,
>>
>> I think I need then to override IdentityMgtEventListener which is
>> within the jar org.wso2.carbon.identity.mgt_5.6.34.
>>
>> Do I have to use a patch ? If so, do I need to ckeck out the source
>> code of org.wso2.carbon.identity.mgt_5.6.34, change it and deploy a
>> new jar which I need to put within patches directory?
>>
>>
>>
>> Regards,
>> Hanen
>>
>> On Fri, Dec 23, 2016 at 12:49 PM, Chamila Wijayarathna <
>> cdwijayarat...@gmail.com> wrote:
>>
>>> Hi Hanen,
>>>
>>> If you need to check only working hours and public holidays while
>>> authentication, you can implement that by implementing a
>>> UserStoreEventListener [1]. You can implement doPreAuthenticate method 
>>> in
>>> your listener implementation and check your time and holiday related 
>>> logic
>>> there, and fail authentication if login time is not withing a permitted
>>> time period. You'll 

Re: [Dev] Fwd: [IS] Customize user creation form with a date picker widget

2016-12-23 Thread Chamila Wijayarathna
Hi Hanen,

This is my understanding about your requirement. You are trying to get
"publicHolidays" attribute from per user, where each user/admin (I'm not
clear whether user or admin does this operation) can update this attribute
in user profile update page (or is it at user creation time?).

You have added a new claim for this and in the profile update page, you
need to use a jquery date picker to this field. You have updated profile
edit page. where you consider above claim specially and use date picker
there.

If this is what you are trying to do, I think what you have done is okay.
Without replacing the jar in plugins folder, you can create a patch
folder at repository/cpmponents/patches folder at put your jar their. This
is the recommended way.  must be the highest number in the folder. If
your patches folder is empty, use 0001.

Regards!
Chamila

On Sat, Dec 24, 2016 at 1:00 AM, Hanen Ben Rhouma 
wrote:

> I have attached the JSP file. Mainly I'm trying to use date picker
> whenever the form field id corresponds to the Claim URI "
> http://wso2.org/claims/publicHolidays;.
> For this I added jquery and jquery-ui and created a javascript function:
>
>
> $( function() { $( "#http://wso2.org/claims/publicHolidays;
> ).datepicker(); } );
>
> The idea is to display the date picker whenever the user is trying to fill
> the field Working Holidays.
>
>
>
>
> Regards,
> Hanen
>
> On Fri, Dec 23, 2016 at 2:47 PM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> What are the changes you are planning to include in front end?
>>
>> On Sat, Dec 24, 2016 at 12:41 AM, Hanen Ben Rhouma 
>> wrote:
>>
>>> Actually, I did create a CustomUserStoreManager inheriting from
>>> ReadWriteLDAPUserStoreManager and overrode its method doAuthenticate, I
>>> packaged it as an OSGi bundle and put it under dropins, it's working fine.
>>> I was just looking for a conceptually more adequate solution but as I can
>>> see it's almost the same thing. I agree doPreAuthenticate makes more sense
>>> but it's going to take me the same effort to generate another working
>>> bundle. Although for the front part I need to change the creation form
>>> which corresponds to the component 
>>> org.wso2.carbon.identity.user.profile.ui_5.6.34.
>>> For this I need to recompile the plugin and replace it. Please correct me
>>> if I'm wrong.
>>>
>>> Regards,
>>> Hanen
>>>
>>> On Fri, Dec 23, 2016 at 1:50 PM, Chamila Wijayarathna <
>>> cdwijayarat...@gmail.com> wrote:
>>>
 Hi Hanen,

 If you only need the changes we discussed above about authentication
 and no changes for any functionality in identity.mgt component, I think it
 would be better to add your logic as a new component with a new
 implementation of UserStoreEventListener rather than changing identity.mgt
 component. [1] contains a sample component I wrote sometimes back, if you
 need an idea about how to write a carbon component. If you only need
 authentication functionality, your component only need to have pom,
 serviceComponent class and listener implementation. After creating the
 component, you can add the har file to repository/component/dropins folder
 and OSGI will automatically pick it.

 Hope that helps!
 Chamila

 [1]. https://github.com/wso2/product-is/tree/master/modules/
 samples/workflow/handler/service-provider

 On Fri, Dec 23, 2016 at 11:35 PM, Hanen Ben Rhouma 
 wrote:

> Thanks Chamila,
>
> I think I need then to override IdentityMgtEventListener which is
> within the jar org.wso2.carbon.identity.mgt_5.6.34.
>
> Do I have to use a patch ? If so, do I need to ckeck out the source
> code of org.wso2.carbon.identity.mgt_5.6.34, change it and deploy a
> new jar which I need to put within patches directory?
>
>
>
> Regards,
> Hanen
>
> On Fri, Dec 23, 2016 at 12:49 PM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Hanen,
>>
>> If you need to check only working hours and public holidays while
>> authentication, you can implement that by implementing a
>> UserStoreEventListener [1]. You can implement doPreAuthenticate method in
>> your listener implementation and check your time and holiday related 
>> logic
>> there, and fail authentication if login time is not withing a permitted
>> time period. You'll have to save your public holiday list in some
>> datasource accessible to this listener.
>>
>> However, I'm not sure how much effort you'll have to put, if you are
>> going to set the public holiday list at tenant creation time.
>>
>> [1]. https://docs.wso2.com/display/IS510/User+Store+Listeners
>>
>> On Fri, Dec 23, 2016 at 10:36 PM, Hanen Ben Rhouma <
>> hanen...@gmail.com> wrote:
>>
>>> Thanks Chamila,
>>>
>>> Let's say it's custom and 

Re: [Dev] Fwd: [IS] Customize user creation form with a date picker widget

2016-12-23 Thread Hanen Ben Rhouma
I have attached the JSP file. Mainly I'm trying to use date picker whenever
the form field id corresponds to the Claim URI "
http://wso2.org/claims/publicHolidays;.
For this I added jquery and jquery-ui and created a javascript function:


$( function() { $( "#http://wso2.org/claims/publicHolidays; ).datepicker();
} );

The idea is to display the date picker whenever the user is trying to fill
the field Working Holidays.




Regards,
Hanen

On Fri, Dec 23, 2016 at 2:47 PM, Chamila Wijayarathna <
cdwijayarat...@gmail.com> wrote:

> What are the changes you are planning to include in front end?
>
> On Sat, Dec 24, 2016 at 12:41 AM, Hanen Ben Rhouma 
> wrote:
>
>> Actually, I did create a CustomUserStoreManager inheriting from
>> ReadWriteLDAPUserStoreManager and overrode its method doAuthenticate, I
>> packaged it as an OSGi bundle and put it under dropins, it's working fine.
>> I was just looking for a conceptually more adequate solution but as I can
>> see it's almost the same thing. I agree doPreAuthenticate makes more sense
>> but it's going to take me the same effort to generate another working
>> bundle. Although for the front part I need to change the creation form
>> which corresponds to the component 
>> org.wso2.carbon.identity.user.profile.ui_5.6.34.
>> For this I need to recompile the plugin and replace it. Please correct me
>> if I'm wrong.
>>
>> Regards,
>> Hanen
>>
>> On Fri, Dec 23, 2016 at 1:50 PM, Chamila Wijayarathna <
>> cdwijayarat...@gmail.com> wrote:
>>
>>> Hi Hanen,
>>>
>>> If you only need the changes we discussed above about authentication and
>>> no changes for any functionality in identity.mgt component, I think it
>>> would be better to add your logic as a new component with a new
>>> implementation of UserStoreEventListener rather than changing identity.mgt
>>> component. [1] contains a sample component I wrote sometimes back, if you
>>> need an idea about how to write a carbon component. If you only need
>>> authentication functionality, your component only need to have pom,
>>> serviceComponent class and listener implementation. After creating the
>>> component, you can add the har file to repository/component/dropins folder
>>> and OSGI will automatically pick it.
>>>
>>> Hope that helps!
>>> Chamila
>>>
>>> [1]. https://github.com/wso2/product-is/tree/master/modules/
>>> samples/workflow/handler/service-provider
>>>
>>> On Fri, Dec 23, 2016 at 11:35 PM, Hanen Ben Rhouma 
>>> wrote:
>>>
 Thanks Chamila,

 I think I need then to override IdentityMgtEventListener which is
 within the jar org.wso2.carbon.identity.mgt_5.6.34.

 Do I have to use a patch ? If so, do I need to ckeck out the source
 code of org.wso2.carbon.identity.mgt_5.6.34, change it and deploy a
 new jar which I need to put within patches directory?



 Regards,
 Hanen

 On Fri, Dec 23, 2016 at 12:49 PM, Chamila Wijayarathna <
 cdwijayarat...@gmail.com> wrote:

> Hi Hanen,
>
> If you need to check only working hours and public holidays while
> authentication, you can implement that by implementing a
> UserStoreEventListener [1]. You can implement doPreAuthenticate method in
> your listener implementation and check your time and holiday related logic
> there, and fail authentication if login time is not withing a permitted
> time period. You'll have to save your public holiday list in some
> datasource accessible to this listener.
>
> However, I'm not sure how much effort you'll have to put, if you are
> going to set the public holiday list at tenant creation time.
>
> [1]. https://docs.wso2.com/display/IS510/User+Store+Listeners
>
> On Fri, Dec 23, 2016 at 10:36 PM, Hanen Ben Rhouma  > wrote:
>
>> Thanks Chamila,
>>
>> Let's say it's custom and inherits from
>> LDAPReadWriteUserStoreManager, what are the methods I need to override?
>>
>> Regards,
>> Hanen
>>
>> On Fri, Dec 23, 2016 at 11:25 AM, Chamila Wijayarathna <
>> cdwijayarat...@gmail.com> wrote:
>>
>>> Hi Henen,
>>>
>>> As per my understanding, in this scenario, you'll have to implement
>>> a custom user store manager to extend authentication facilitate your 
>>> custom
>>> need, In that case you should be able to save this list of holidays in a
>>> datasource which is accessible by your custom user store manager.
>>>
>>>
>>> On Fri, Dec 23, 2016 at 9:16 PM, Hanen Ben Rhouma <
>>> hanen...@gmail.com> wrote:
>>>
 Yes it's per tenant but this attribute is taken into account for
 each user authentication request.



 Regards,
 Hanen




 On Fri, Dec 23, 2016 at 10:53 AM, Chamila Wijayarathna <
 cdwijayarat...@gmail.com> wrote:

> Hi Hanen,
>

Re: [Dev] Fwd: [IS] Customize user creation form with a date picker widget

2016-12-23 Thread Chamila Wijayarathna
What are the changes you are planning to include in front end?

On Sat, Dec 24, 2016 at 12:41 AM, Hanen Ben Rhouma 
wrote:

> Actually, I did create a CustomUserStoreManager inheriting from
> ReadWriteLDAPUserStoreManager and overrode its method doAuthenticate, I
> packaged it as an OSGi bundle and put it under dropins, it's working fine.
> I was just looking for a conceptually more adequate solution but as I can
> see it's almost the same thing. I agree doPreAuthenticate makes more sense
> but it's going to take me the same effort to generate another working
> bundle. Although for the front part I need to change the creation form
> which corresponds to the component org.wso2.carbon.
> identity.user.profile.ui_5.6.34. For this I need to recompile the plugin
> and replace it. Please correct me if I'm wrong.
>
> Regards,
> Hanen
>
> On Fri, Dec 23, 2016 at 1:50 PM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Hanen,
>>
>> If you only need the changes we discussed above about authentication and
>> no changes for any functionality in identity.mgt component, I think it
>> would be better to add your logic as a new component with a new
>> implementation of UserStoreEventListener rather than changing identity.mgt
>> component. [1] contains a sample component I wrote sometimes back, if you
>> need an idea about how to write a carbon component. If you only need
>> authentication functionality, your component only need to have pom,
>> serviceComponent class and listener implementation. After creating the
>> component, you can add the har file to repository/component/dropins folder
>> and OSGI will automatically pick it.
>>
>> Hope that helps!
>> Chamila
>>
>> [1]. https://github.com/wso2/product-is/tree/master/modules/
>> samples/workflow/handler/service-provider
>>
>> On Fri, Dec 23, 2016 at 11:35 PM, Hanen Ben Rhouma 
>> wrote:
>>
>>> Thanks Chamila,
>>>
>>> I think I need then to override IdentityMgtEventListener which is
>>> within the jar org.wso2.carbon.identity.mgt_5.6.34.
>>>
>>> Do I have to use a patch ? If so, do I need to ckeck out the source code
>>> of org.wso2.carbon.identity.mgt_5.6.34, change it and deploy a new jar
>>> which I need to put within patches directory?
>>>
>>>
>>>
>>> Regards,
>>> Hanen
>>>
>>> On Fri, Dec 23, 2016 at 12:49 PM, Chamila Wijayarathna <
>>> cdwijayarat...@gmail.com> wrote:
>>>
 Hi Hanen,

 If you need to check only working hours and public holidays while
 authentication, you can implement that by implementing a
 UserStoreEventListener [1]. You can implement doPreAuthenticate method in
 your listener implementation and check your time and holiday related logic
 there, and fail authentication if login time is not withing a permitted
 time period. You'll have to save your public holiday list in some
 datasource accessible to this listener.

 However, I'm not sure how much effort you'll have to put, if you are
 going to set the public holiday list at tenant creation time.

 [1]. https://docs.wso2.com/display/IS510/User+Store+Listeners

 On Fri, Dec 23, 2016 at 10:36 PM, Hanen Ben Rhouma 
 wrote:

> Thanks Chamila,
>
> Let's say it's custom and inherits from LDAPReadWriteUserStoreManager,
> what are the methods I need to override?
>
> Regards,
> Hanen
>
> On Fri, Dec 23, 2016 at 11:25 AM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Henen,
>>
>> As per my understanding, in this scenario, you'll have to implement a
>> custom user store manager to extend authentication facilitate your custom
>> need, In that case you should be able to save this list of holidays in a
>> datasource which is accessible by your custom user store manager.
>>
>>
>> On Fri, Dec 23, 2016 at 9:16 PM, Hanen Ben Rhouma > > wrote:
>>
>>> Yes it's per tenant but this attribute is taken into account for
>>> each user authentication request.
>>>
>>>
>>>
>>> Regards,
>>> Hanen
>>>
>>>
>>>
>>>
>>> On Fri, Dec 23, 2016 at 10:53 AM, Chamila Wijayarathna <
>>> cdwijayarat...@gmail.com> wrote:
>>>
 Hi Hanen,

 What is the purpose of getting list of publicHolidays in user
 creation form? Public Holidays attribute is not per user thing, is it?


 On Fri, Dec 23, 2016 at 8:48 PM, Hanen Ben Rhouma <
 hanen...@gmail.com> wrote:

> Hello,
>
> Is it possible to store in an external  LDAP an attribute
> representing publicHolidays which is a list of dates, the idea is to 
> have a
> custom attribute within the user creation form which accepts comma
> separated dates through a date picker widget.
>
> Do you think it's feasible within WSO2 IS?

Re: [Dev] Fwd: [IS] Customize user creation form with a date picker widget

2016-12-23 Thread Hanen Ben Rhouma
Actually, I did create a CustomUserStoreManager inheriting from
ReadWriteLDAPUserStoreManager and overrode its method doAuthenticate, I
packaged it as an OSGi bundle and put it under dropins, it's working fine.
I was just looking for a conceptually more adequate solution but as I can
see it's almost the same thing. I agree doPreAuthenticate makes more sense
but it's going to take me the same effort to generate another working
bundle. Although for the front part I need to change the creation form
which corresponds to the
component org.wso2.carbon.identity.user.profile.ui_5.6.34. For this I need
to recompile the plugin and replace it. Please correct me if I'm wrong.

Regards,
Hanen

On Fri, Dec 23, 2016 at 1:50 PM, Chamila Wijayarathna <
cdwijayarat...@gmail.com> wrote:

> Hi Hanen,
>
> If you only need the changes we discussed above about authentication and
> no changes for any functionality in identity.mgt component, I think it
> would be better to add your logic as a new component with a new
> implementation of UserStoreEventListener rather than changing identity.mgt
> component. [1] contains a sample component I wrote sometimes back, if you
> need an idea about how to write a carbon component. If you only need
> authentication functionality, your component only need to have pom,
> serviceComponent class and listener implementation. After creating the
> component, you can add the har file to repository/component/dropins folder
> and OSGI will automatically pick it.
>
> Hope that helps!
> Chamila
>
> [1]. https://github.com/wso2/product-is/tree/master/
> modules/samples/workflow/handler/service-provider
>
> On Fri, Dec 23, 2016 at 11:35 PM, Hanen Ben Rhouma 
> wrote:
>
>> Thanks Chamila,
>>
>> I think I need then to override IdentityMgtEventListener which is within
>> the jar org.wso2.carbon.identity.mgt_5.6.34.
>>
>> Do I have to use a patch ? If so, do I need to ckeck out the source code
>> of org.wso2.carbon.identity.mgt_5.6.34, change it and deploy a new jar
>> which I need to put within patches directory?
>>
>>
>>
>> Regards,
>> Hanen
>>
>> On Fri, Dec 23, 2016 at 12:49 PM, Chamila Wijayarathna <
>> cdwijayarat...@gmail.com> wrote:
>>
>>> Hi Hanen,
>>>
>>> If you need to check only working hours and public holidays while
>>> authentication, you can implement that by implementing a
>>> UserStoreEventListener [1]. You can implement doPreAuthenticate method in
>>> your listener implementation and check your time and holiday related logic
>>> there, and fail authentication if login time is not withing a permitted
>>> time period. You'll have to save your public holiday list in some
>>> datasource accessible to this listener.
>>>
>>> However, I'm not sure how much effort you'll have to put, if you are
>>> going to set the public holiday list at tenant creation time.
>>>
>>> [1]. https://docs.wso2.com/display/IS510/User+Store+Listeners
>>>
>>> On Fri, Dec 23, 2016 at 10:36 PM, Hanen Ben Rhouma 
>>> wrote:
>>>
 Thanks Chamila,

 Let's say it's custom and inherits from LDAPReadWriteUserStoreManager,
 what are the methods I need to override?

 Regards,
 Hanen

 On Fri, Dec 23, 2016 at 11:25 AM, Chamila Wijayarathna <
 cdwijayarat...@gmail.com> wrote:

> Hi Henen,
>
> As per my understanding, in this scenario, you'll have to implement a
> custom user store manager to extend authentication facilitate your custom
> need, In that case you should be able to save this list of holidays in a
> datasource which is accessible by your custom user store manager.
>
>
> On Fri, Dec 23, 2016 at 9:16 PM, Hanen Ben Rhouma 
> wrote:
>
>> Yes it's per tenant but this attribute is taken into account for each
>> user authentication request.
>>
>>
>>
>> Regards,
>> Hanen
>>
>>
>>
>>
>> On Fri, Dec 23, 2016 at 10:53 AM, Chamila Wijayarathna <
>> cdwijayarat...@gmail.com> wrote:
>>
>>> Hi Hanen,
>>>
>>> What is the purpose of getting list of publicHolidays in user
>>> creation form? Public Holidays attribute is not per user thing, is it?
>>>
>>>
>>> On Fri, Dec 23, 2016 at 8:48 PM, Hanen Ben Rhouma <
>>> hanen...@gmail.com> wrote:
>>>
 Hello,

 Is it possible to store in an external  LDAP an attribute
 representing publicHolidays which is a list of dates, the idea is to 
 have a
 custom attribute within the user creation form which accepts comma
 separated dates through a date picker widget.

 Do you think it's feasible within WSO2 IS?


 Regards,
 Hanen

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Chamila Dilshan 

Re: [Dev] Fwd: [IS] Customize user creation form with a date picker widget

2016-12-23 Thread Chamila Wijayarathna
Hi Hanen,

If you only need the changes we discussed above about authentication and no
changes for any functionality in identity.mgt component, I think it would
be better to add your logic as a new component with a new implementation of
UserStoreEventListener rather than changing identity.mgt component. [1]
contains a sample component I wrote sometimes back, if you need an idea
about how to write a carbon component. If you only need authentication
functionality, your component only need to have pom, serviceComponent class
and listener implementation. After creating the component, you can add the
har file to repository/component/dropins folder and OSGI will automatically
pick it.

Hope that helps!
Chamila

[1].
https://github.com/wso2/product-is/tree/master/modules/samples/workflow/handler/service-provider

On Fri, Dec 23, 2016 at 11:35 PM, Hanen Ben Rhouma 
wrote:

> Thanks Chamila,
>
> I think I need then to override IdentityMgtEventListener which is within
> the jar org.wso2.carbon.identity.mgt_5.6.34.
>
> Do I have to use a patch ? If so, do I need to ckeck out the source code
> of org.wso2.carbon.identity.mgt_5.6.34, change it and deploy a new jar
> which I need to put within patches directory?
>
>
>
> Regards,
> Hanen
>
> On Fri, Dec 23, 2016 at 12:49 PM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Hanen,
>>
>> If you need to check only working hours and public holidays while
>> authentication, you can implement that by implementing a
>> UserStoreEventListener [1]. You can implement doPreAuthenticate method in
>> your listener implementation and check your time and holiday related logic
>> there, and fail authentication if login time is not withing a permitted
>> time period. You'll have to save your public holiday list in some
>> datasource accessible to this listener.
>>
>> However, I'm not sure how much effort you'll have to put, if you are
>> going to set the public holiday list at tenant creation time.
>>
>> [1]. https://docs.wso2.com/display/IS510/User+Store+Listeners
>>
>> On Fri, Dec 23, 2016 at 10:36 PM, Hanen Ben Rhouma 
>> wrote:
>>
>>> Thanks Chamila,
>>>
>>> Let's say it's custom and inherits from LDAPReadWriteUserStoreManager,
>>> what are the methods I need to override?
>>>
>>> Regards,
>>> Hanen
>>>
>>> On Fri, Dec 23, 2016 at 11:25 AM, Chamila Wijayarathna <
>>> cdwijayarat...@gmail.com> wrote:
>>>
 Hi Henen,

 As per my understanding, in this scenario, you'll have to implement a
 custom user store manager to extend authentication facilitate your custom
 need, In that case you should be able to save this list of holidays in a
 datasource which is accessible by your custom user store manager.


 On Fri, Dec 23, 2016 at 9:16 PM, Hanen Ben Rhouma 
 wrote:

> Yes it's per tenant but this attribute is taken into account for each
> user authentication request.
>
>
>
> Regards,
> Hanen
>
>
>
>
> On Fri, Dec 23, 2016 at 10:53 AM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Hanen,
>>
>> What is the purpose of getting list of publicHolidays in user
>> creation form? Public Holidays attribute is not per user thing, is it?
>>
>>
>> On Fri, Dec 23, 2016 at 8:48 PM, Hanen Ben Rhouma > > wrote:
>>
>>> Hello,
>>>
>>> Is it possible to store in an external  LDAP an attribute
>>> representing publicHolidays which is a list of dates, the idea is to 
>>> have a
>>> custom attribute within the user creation form which accepts comma
>>> separated dates through a date picker widget.
>>>
>>> Do you think it's feasible within WSO2 IS?
>>>
>>>
>>> Regards,
>>> Hanen
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Chamila Dilshan Wijayarathna,
>> PhD Research Student
>> The University of New South Wales (UNSW Canberra)
>> Australian Centre for Cyber Security
>> Australian Defence Force Academy
>> PO Box 7916, Canberra BA ACT 2610
>> Australia
>> Mobile:(+61)416895795 <+61%20416%20895%20795>
>>
>>
>


 --
 Chamila Dilshan Wijayarathna,
 PhD Research Student
 The University of New South Wales (UNSW Canberra)
 Australian Centre for Cyber Security
 Australian Defence Force Academy
 PO Box 7916, Canberra BA ACT 2610
 Australia
 Mobile:(+61)416895795 <+61%20416%20895%20795>


>>>
>>
>>
>> --
>> Chamila Dilshan Wijayarathna,
>> PhD Research Student
>> The University of New South Wales (UNSW Canberra)
>> Australian Centre for Cyber Security
>> Australian Defence Force Academy
>> PO Box 7916, Canberra BA ACT 2610
>> Australia
>> Mobile:(+61)416895795 

[Dev] Fwd: [IS] Customize user creation form with a date picker widget

2016-12-23 Thread Hanen Ben Rhouma
Thanks Chamila,

I think I need then to override IdentityMgtEventListener which is within
the jar org.wso2.carbon.identity.mgt_5.6.34.

Do I have to use a patch ? If so, do I need to ckeck out the source code of
org.wso2.carbon.identity.mgt_5.6.34, change it and deploy a new jar which I
need to put within patches directory?



Regards,
Hanen

On Fri, Dec 23, 2016 at 12:49 PM, Chamila Wijayarathna <
cdwijayarat...@gmail.com> wrote:

> Hi Hanen,
>
> If you need to check only working hours and public holidays while
> authentication, you can implement that by implementing a
> UserStoreEventListener [1]. You can implement doPreAuthenticate method in
> your listener implementation and check your time and holiday related logic
> there, and fail authentication if login time is not withing a permitted
> time period. You'll have to save your public holiday list in some
> datasource accessible to this listener.
>
> However, I'm not sure how much effort you'll have to put, if you are going
> to set the public holiday list at tenant creation time.
>
> [1]. https://docs.wso2.com/display/IS510/User+Store+Listeners
>
> On Fri, Dec 23, 2016 at 10:36 PM, Hanen Ben Rhouma 
> wrote:
>
>> Thanks Chamila,
>>
>> Let's say it's custom and inherits from LDAPReadWriteUserStoreManager,
>> what are the methods I need to override?
>>
>> Regards,
>> Hanen
>>
>> On Fri, Dec 23, 2016 at 11:25 AM, Chamila Wijayarathna <
>> cdwijayarat...@gmail.com> wrote:
>>
>>> Hi Henen,
>>>
>>> As per my understanding, in this scenario, you'll have to implement a
>>> custom user store manager to extend authentication facilitate your custom
>>> need, In that case you should be able to save this list of holidays in a
>>> datasource which is accessible by your custom user store manager.
>>>
>>>
>>> On Fri, Dec 23, 2016 at 9:16 PM, Hanen Ben Rhouma 
>>> wrote:
>>>
 Yes it's per tenant but this attribute is taken into account for each
 user authentication request.



 Regards,
 Hanen




 On Fri, Dec 23, 2016 at 10:53 AM, Chamila Wijayarathna <
 cdwijayarat...@gmail.com> wrote:

> Hi Hanen,
>
> What is the purpose of getting list of publicHolidays in user creation
> form? Public Holidays attribute is not per user thing, is it?
>
>
> On Fri, Dec 23, 2016 at 8:48 PM, Hanen Ben Rhouma 
> wrote:
>
>> Hello,
>>
>> Is it possible to store in an external  LDAP an attribute
>> representing publicHolidays which is a list of dates, the idea is to 
>> have a
>> custom attribute within the user creation form which accepts comma
>> separated dates through a date picker widget.
>>
>> Do you think it's feasible within WSO2 IS?
>>
>>
>> Regards,
>> Hanen
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chamila Dilshan Wijayarathna,
> PhD Research Student
> The University of New South Wales (UNSW Canberra)
> Australian Centre for Cyber Security
> Australian Defence Force Academy
> PO Box 7916, Canberra BA ACT 2610
> Australia
> Mobile:(+61)416895795 <+61%20416%20895%20795>
>
>

>>>
>>>
>>> --
>>> Chamila Dilshan Wijayarathna,
>>> PhD Research Student
>>> The University of New South Wales (UNSW Canberra)
>>> Australian Centre for Cyber Security
>>> Australian Defence Force Academy
>>> PO Box 7916, Canberra BA ACT 2610
>>> Australia
>>> Mobile:(+61)416895795 <+61%20416%20895%20795>
>>>
>>>
>>
>
>
> --
> Chamila Dilshan Wijayarathna,
> PhD Research Student
> The University of New South Wales (UNSW Canberra)
> Australian Centre for Cyber Security
> Australian Defence Force Academy
> PO Box 7916, Canberra BA ACT 2610
> Australia
> Mobile:(+61)416895795 <+61%20416%20895%20795>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Few UUF improvements

2016-12-23 Thread SajithAR Ariyarathna
You can put the "route.js" into a fragment (e.g. "router" fragment} and
include that fragment where ever you need, in a fragment or a page.
"router" fragment's HBS will look like this:

{{js "js/router.js"}}


In fact, instead of including the fragment in every place you can push the
"router" fragment into a zone (e.g. "contents") through bindings.

Regarding issue #14; we can do it and I have added that to UUF milestone
plan.

Thanks.

On Fri, Dec 23, 2016 at 4:48 PM, Chanaka Jayasena  wrote:

> Hi,
>
> Right now in APIM publisher implementation, we have a common client side
> javascript file (route.js) which we want share between a fragment
> "globalNavigation" and a page. This page is not including the above
> fragment. So we are keeping the route.js file in applications "public/js"
> folder.
>
> We include the route.js file from the fragment as follows.
>
> {{js "../../../components/root/base/js/route.js"}}
>
> Is there a better way to do this?
>
> FYI the {{js "js/route.js"}} is referring to the fragments public/js
> folder.
>
> 
> Regarding the PR https://github.com/wso2/carbon-uuf-common/pull/12
>
> UUFClient.renderFragment method will be more useful if it can inject
> content in to a element in dom by providing a css selector or the object
> itself in the method calls parameter list. It make more sense to provide
> the above instead of the zone.
>
> I have created the following git issue https://github.com/wso2/
> carbon-uuf-common/issues/14
>
> thanks,
> Chanaka
>
>
> --
> Chanaka Jayasena
> Associate Tech Lead,
> email: chan...@wso2.com; cell: +94 77 4464006 <+94%2077%20446%204006>
> blog: http://chanaka3d.blogspot.com
>



-- 
Sajith Janaprasad Ariyarathna
Software Engineer; WSO2, Inc.;  http://wso2.com/

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Reading config.yaml file from client side

2016-12-23 Thread Chanaka Jayasena
Hi Sajith,

Created an issue in carbon-uuf repo
https://github.com/wso2/carbon-uuf/issues/101.

thanks,
Chanaka

On Fri, Dec 23, 2016 at 4:28 PM, SajithAR Ariyarathna 
wrote:

> Most of the time, cliet-side JSs are executed after DOM is fully loaded
> (means in the document.ready() function). That's why 'sendToClient' puts
> the variable in the bottom-js position.
> So, if you are dong DOM manipulations in your JSs, please do them in
> document.ready().
>
> Anyway, I think "sendToClient' should give the option to push a variable
> to the 'head JS'. Can you create an issue for this in carbon-uuf repo?
>
> Thanks.
>
> On Fri, Dec 23, 2016 at 3:34 PM, Chanaka Jayasena 
> wrote:
>
>> Hi,
>>
>> The "sendToClient" method is injecting the variables to the "js"
>> placeholder in the layout. We have the "js" placeholder near the end of the
>> page. When we try to access a variable from a js method that is defined
>> before the sendToClient variable injections, it is giving errors. We can
>> workaround this problem by wrapping our method calls inside document ready
>> method.
>>
>>  But as an improvement to the "sendToClient"  method can we injection the
>> variables to the header section of the page without depending on the
>> placeholder. If that is not possible then prepending to the headJs will
>> make the variables available to all the other scripts.
>>
>> thanks,
>> Chanaka
>>
>>
>>
>> On Mon, Dec 19, 2016 at 1:42 PM, Chanaka Jayasena 
>> wrote:
>>
>>> Hi Shan,
>>>
>>> Cool thing..  Thanks for the info.
>>>
>>> Regards,
>>> Chanaka
>>>
>>> On Mon, Dec 19, 2016 at 1:33 PM, Shan Mahanama  wrote:
>>>
 Hi Chanaka,

 We can send the app context from the server side to client side using 
 *sendToClient
 *function. You can use *sendToClient* function inside the *onRequest*
 function like this.

 function onRequest(env) {
 sendToClient("contextPath", env.contextPath);
 }


 Then the *contextPath* variable will be added at the end of the html body 
 like below and then you can get the app context in the client side using 
 *contextPath* variable.

 var contextPath="/test";

 Thanks,
 Shan.


 On Mon, Dec 19, 2016 at 12:08 PM, Chanaka Jayasena 
 wrote:

> Hi guys,
>
> We are doing the routing from the client side. So we want to read the
> app context from javascript. Is there a nice way to do this without adding
> a  var context = '{{@config.context}}'; ?
>
> It the @config is available in the client side it will be a nice
> feature addition to UUF.
>
> thanks,
> Chanaka
>
> --
> Chanaka Jayasena
> Associate Tech Lead,
> email: chan...@wso2.com; cell: +94 77 4464006 <+94%2077%20446%204006>
> blog: http://chanaka3d.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Shan Mahanama

 Software Engineer, WSO2 Inc. http://wso2.com
 
 Email: sh...@wso2.com
 Mobile: +94 71 2000 498



>>>
>>>
>>> --
>>> Chanaka Jayasena
>>> Associate Tech Lead,
>>> email: chan...@wso2.com; cell: +94 77 4464006 <+94%2077%20446%204006>
>>> blog: http://chanaka3d.blogspot.com
>>>
>>
>>
>>
>> --
>> Chanaka Jayasena
>> Associate Tech Lead,
>> email: chan...@wso2.com; cell: +94 77 4464006 <+94%2077%20446%204006>
>> blog: http://chanaka3d.blogspot.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sajith Janaprasad Ariyarathna
> Software Engineer; WSO2, Inc.;  http://wso2.com/
> 
>



-- 
Chanaka Jayasena
Associate Tech Lead,
email: chan...@wso2.com; cell: +94 77 4464006
blog: http://chanaka3d.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Few UUF improvements

2016-12-23 Thread Chanaka Jayasena
Hi,

Right now in APIM publisher implementation, we have a common client side
javascript file (route.js) which we want share between a fragment
"globalNavigation" and a page. This page is not including the above
fragment. So we are keeping the route.js file in applications "public/js"
folder.

We include the route.js file from the fragment as follows.

{{js "../../../components/root/base/js/route.js"}}

Is there a better way to do this?

FYI the {{js "js/route.js"}} is referring to the fragments public/js folder.


Regarding the PR https://github.com/wso2/carbon-uuf-common/pull/12

UUFClient.renderFragment method will be more useful if it can inject
content in to a element in dom by providing a css selector or the object
itself in the method calls parameter list. It make more sense to provide
the above instead of the zone.

I have created the following git issue
https://github.com/wso2/carbon-uuf-common/issues/14

thanks,
Chanaka


-- 
Chanaka Jayasena
Associate Tech Lead,
email: chan...@wso2.com; cell: +94 77 4464006
blog: http://chanaka3d.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Reading config.yaml file from client side

2016-12-23 Thread SajithAR Ariyarathna
Most of the time, cliet-side JSs are executed after DOM is fully loaded
(means in the document.ready() function). That's why 'sendToClient' puts
the variable in the bottom-js position.
So, if you are dong DOM manipulations in your JSs, please do them in
document.ready().

Anyway, I think "sendToClient' should give the option to push a variable to
the 'head JS'. Can you create an issue for this in carbon-uuf repo?

Thanks.

On Fri, Dec 23, 2016 at 3:34 PM, Chanaka Jayasena  wrote:

> Hi,
>
> The "sendToClient" method is injecting the variables to the "js"
> placeholder in the layout. We have the "js" placeholder near the end of the
> page. When we try to access a variable from a js method that is defined
> before the sendToClient variable injections, it is giving errors. We can
> workaround this problem by wrapping our method calls inside document ready
> method.
>
>  But as an improvement to the "sendToClient"  method can we injection the
> variables to the header section of the page without depending on the
> placeholder. If that is not possible then prepending to the headJs will
> make the variables available to all the other scripts.
>
> thanks,
> Chanaka
>
>
>
> On Mon, Dec 19, 2016 at 1:42 PM, Chanaka Jayasena 
> wrote:
>
>> Hi Shan,
>>
>> Cool thing..  Thanks for the info.
>>
>> Regards,
>> Chanaka
>>
>> On Mon, Dec 19, 2016 at 1:33 PM, Shan Mahanama  wrote:
>>
>>> Hi Chanaka,
>>>
>>> We can send the app context from the server side to client side using 
>>> *sendToClient
>>> *function. You can use *sendToClient* function inside the *onRequest*
>>> function like this.
>>>
>>> function onRequest(env) {
>>> sendToClient("contextPath", env.contextPath);
>>> }
>>>
>>>
>>> Then the *contextPath* variable will be added at the end of the html body 
>>> like below and then you can get the app context in the client side using 
>>> *contextPath* variable.
>>>
>>> var contextPath="/test";
>>>
>>> Thanks,
>>> Shan.
>>>
>>>
>>> On Mon, Dec 19, 2016 at 12:08 PM, Chanaka Jayasena 
>>> wrote:
>>>
 Hi guys,

 We are doing the routing from the client side. So we want to read the
 app context from javascript. Is there a nice way to do this without adding
 a  var context = '{{@config.context}}'; ?

 It the @config is available in the client side it will be a nice
 feature addition to UUF.

 thanks,
 Chanaka

 --
 Chanaka Jayasena
 Associate Tech Lead,
 email: chan...@wso2.com; cell: +94 77 4464006 <+94%2077%20446%204006>
 blog: http://chanaka3d.blogspot.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Shan Mahanama
>>>
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> 
>>> Email: sh...@wso2.com
>>> Mobile: +94 71 2000 498
>>>
>>>
>>>
>>
>>
>> --
>> Chanaka Jayasena
>> Associate Tech Lead,
>> email: chan...@wso2.com; cell: +94 77 4464006 <+94%2077%20446%204006>
>> blog: http://chanaka3d.blogspot.com
>>
>
>
>
> --
> Chanaka Jayasena
> Associate Tech Lead,
> email: chan...@wso2.com; cell: +94 77 4464006 <+94%2077%20446%204006>
> blog: http://chanaka3d.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sajith Janaprasad Ariyarathna
Software Engineer; WSO2, Inc.;  http://wso2.com/

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Customize user creation form with a date picker widget

2016-12-23 Thread Chamila Wijayarathna
Hi Henen,

As per my understanding, in this scenario, you'll have to implement a
custom user store manager to extend authentication facilitate your custom
need, In that case you should be able to save this list of holidays in a
datasource which is accessible by your custom user store manager.


On Fri, Dec 23, 2016 at 9:16 PM, Hanen Ben Rhouma 
wrote:

> Yes it's per tenant but this attribute is taken into account for each user
> authentication request.
>
>
>
> Regards,
> Hanen
>
>
>
>
> On Fri, Dec 23, 2016 at 10:53 AM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Hanen,
>>
>> What is the purpose of getting list of publicHolidays in user creation
>> form? Public Holidays attribute is not per user thing, is it?
>>
>>
>> On Fri, Dec 23, 2016 at 8:48 PM, Hanen Ben Rhouma 
>> wrote:
>>
>>> Hello,
>>>
>>> Is it possible to store in an external  LDAP an attribute representing
>>> publicHolidays which is a list of dates, the idea is to have a custom
>>> attribute within the user creation form which accepts comma separated dates
>>> through a date picker widget.
>>>
>>> Do you think it's feasible within WSO2 IS?
>>>
>>>
>>> Regards,
>>> Hanen
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Chamila Dilshan Wijayarathna,
>> PhD Research Student
>> The University of New South Wales (UNSW Canberra)
>> Australian Centre for Cyber Security
>> Australian Defence Force Academy
>> PO Box 7916, Canberra BA ACT 2610
>> Australia
>> Mobile:(+61)416895795 <+61%20416%20895%20795>
>>
>>
>


-- 
Chamila Dilshan Wijayarathna,
PhD Research Student
The University of New South Wales (UNSW Canberra)
Australian Centre for Cyber Security
Australian Defence Force Academy
PO Box 7916, Canberra BA ACT 2610
Australia
Mobile:(+61)416895795
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Customize user creation form with a date picker widget

2016-12-23 Thread Hanen Ben Rhouma
Yes it's per tenant but this attribute is taken into account for each user
authentication request.



Regards,
Hanen



On Fri, Dec 23, 2016 at 10:53 AM, Chamila Wijayarathna <
cdwijayarat...@gmail.com> wrote:

> Hi Hanen,
>
> What is the purpose of getting list of publicHolidays in user creation
> form? Public Holidays attribute is not per user thing, is it?
>
>
> On Fri, Dec 23, 2016 at 8:48 PM, Hanen Ben Rhouma 
> wrote:
>
>> Hello,
>>
>> Is it possible to store in an external  LDAP an attribute representing
>> publicHolidays which is a list of dates, the idea is to have a custom
>> attribute within the user creation form which accepts comma separated dates
>> through a date picker widget.
>>
>> Do you think it's feasible within WSO2 IS?
>>
>>
>> Regards,
>> Hanen
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chamila Dilshan Wijayarathna,
> PhD Research Student
> The University of New South Wales (UNSW Canberra)
> Australian Centre for Cyber Security
> Australian Defence Force Academy
> PO Box 7916, Canberra BA ACT 2610
> Australia
> Mobile:(+61)416895795 <+61%20416%20895%20795>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Password Policy by tenant

2016-12-23 Thread Koné Alioune Badara
Hello,

In the Wso2 IS 5.3.0-Alpha you introduced a new tab in the left menu called
'governance' in which we can choose a password policy by tenant, but this
tab is not there anymore in the 5.3.0-beta. We'll it be in the final
official release?

Also, in the 5.2.0, when you only give the login right to a user, it can
changes his password, but no more in the 5.3.0-beta, is this behaviour will
change from the 5.2.0 to the 5.3.0 ?

Regards,

Alioune B KONÉ.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Reading config.yaml file from client side

2016-12-23 Thread Chanaka Jayasena
Hi,

The "sendToClient" method is injecting the variables to the "js"
placeholder in the layout. We have the "js" placeholder near the end of the
page. When we try to access a variable from a js method that is defined
before the sendToClient variable injections, it is giving errors. We can
workaround this problem by wrapping our method calls inside document ready
method.

 But as an improvement to the "sendToClient"  method can we injection the
variables to the header section of the page without depending on the
placeholder. If that is not possible then prepending to the headJs will
make the variables available to all the other scripts.

thanks,
Chanaka



On Mon, Dec 19, 2016 at 1:42 PM, Chanaka Jayasena  wrote:

> Hi Shan,
>
> Cool thing..  Thanks for the info.
>
> Regards,
> Chanaka
>
> On Mon, Dec 19, 2016 at 1:33 PM, Shan Mahanama  wrote:
>
>> Hi Chanaka,
>>
>> We can send the app context from the server side to client side using 
>> *sendToClient
>> *function. You can use *sendToClient* function inside the *onRequest*
>> function like this.
>>
>> function onRequest(env) {
>> sendToClient("contextPath", env.contextPath);
>> }
>>
>>
>> Then the *contextPath* variable will be added at the end of the html body 
>> like below and then you can get the app context in the client side using 
>> *contextPath* variable.
>>
>> var contextPath="/test";
>>
>> Thanks,
>> Shan.
>>
>>
>> On Mon, Dec 19, 2016 at 12:08 PM, Chanaka Jayasena 
>> wrote:
>>
>>> Hi guys,
>>>
>>> We are doing the routing from the client side. So we want to read the
>>> app context from javascript. Is there a nice way to do this without adding
>>> a  var context = '{{@config.context}}'; ?
>>>
>>> It the @config is available in the client side it will be a nice feature
>>> addition to UUF.
>>>
>>> thanks,
>>> Chanaka
>>>
>>> --
>>> Chanaka Jayasena
>>> Associate Tech Lead,
>>> email: chan...@wso2.com; cell: +94 77 4464006 <+94%2077%20446%204006>
>>> blog: http://chanaka3d.blogspot.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Shan Mahanama
>>
>> Software Engineer, WSO2 Inc. http://wso2.com
>> 
>> Email: sh...@wso2.com
>> Mobile: +94 71 2000 498
>>
>>
>>
>
>
> --
> Chanaka Jayasena
> Associate Tech Lead,
> email: chan...@wso2.com; cell: +94 77 4464006 <+94%2077%20446%204006>
> blog: http://chanaka3d.blogspot.com
>



-- 
Chanaka Jayasena
Associate Tech Lead,
email: chan...@wso2.com; cell: +94 77 4464006
blog: http://chanaka3d.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Customize user creation form with a date picker widget

2016-12-23 Thread Chamila Wijayarathna
Hi Hanen,

What is the purpose of getting list of publicHolidays in user creation
form? Public Holidays attribute is not per user thing, is it?


On Fri, Dec 23, 2016 at 8:48 PM, Hanen Ben Rhouma 
wrote:

> Hello,
>
> Is it possible to store in an external  LDAP an attribute representing
> publicHolidays which is a list of dates, the idea is to have a custom
> attribute within the user creation form which accepts comma separated dates
> through a date picker widget.
>
> Do you think it's feasible within WSO2 IS?
>
>
> Regards,
> Hanen
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chamila Dilshan Wijayarathna,
PhD Research Student
The University of New South Wales (UNSW Canberra)
Australian Centre for Cyber Security
Australian Defence Force Academy
PO Box 7916, Canberra BA ACT 2610
Australia
Mobile:(+61)416895795
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] Customize user creation form with a date picker widget

2016-12-23 Thread Hanen Ben Rhouma
Hello,

Is it possible to store in an external  LDAP an attribute representing
publicHolidays which is a list of dates, the idea is to have a custom
attribute within the user creation form which accepts comma separated dates
through a date picker widget.

Do you think it's feasible within WSO2 IS?


Regards,
Hanen
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please Review and Merge (WebSocket Suppport for Carbon-Messaging)

2016-12-23 Thread Irunika Weeraratne
Noted.

Thanks,
Irunika

*Irunika Weeraratne*
*Software Engineer | WSO2, Inc. *
*Email : irun...@wso2.com *
*LinkedIn : https://lk.linkedin.com/in/irunika
*
*Mobile : +94712403314*
*Lean . Enterprise . Middleware*


On Fri, Dec 23, 2016 at 1:30 PM, Kishanthan Thangarajah  wrote:

> Adding @dev
>
> @Irunika, always copy the relevant mailing list.
>
> On Fri, Dec 23, 2016 at 1:17 PM, Irunika Weeraratne 
> wrote:
>
>> Hi,
>> Please review and merge
>> https://github.com/wso2/carbon-messaging/pull/39
>>
>> Thanks,
>> Irunika
>> *Irunika Weeraratne*
>> *Software Engineer | WSO2, Inc. *
>> *Email : irun...@wso2.com *
>> *LinkedIn : https://lk.linkedin.com/in/irunika
>> *
>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>> *Lean . Enterprise . Middleware*
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635 <+94%2077%20342%206635>
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please Review and Merge (WebSocket Suppport for Carbon-Messaging)

2016-12-23 Thread Kishanthan Thangarajah
Adding @dev

@Irunika, always copy the relevant mailing list.

On Fri, Dec 23, 2016 at 1:17 PM, Irunika Weeraratne 
wrote:

> Hi,
> Please review and merge
> https://github.com/wso2/carbon-messaging/pull/39
>
> Thanks,
> Irunika
> *Irunika Weeraratne*
> *Software Engineer | WSO2, Inc. *
> *Email : irun...@wso2.com *
> *LinkedIn : https://lk.linkedin.com/in/irunika
> *
> *Mobile : +94712403314 <+94%2071%20240%203314>*
> *Lean . Enterprise . Middleware*
>
>


-- 
*Kishanthan Thangarajah*
Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev