Hi Janesh,

At 16:06 11.06.2004, you wrote:

Thank you Mr. Huber.

Could you be a little more detailed in your explanation as I might not be able to get into it completely without it.
You could set a user attribute called something like :
"has.signed.nda"

Well, you can read and set user properties on a JahiaUser by using the getProperty/setProperty methods. So in effect you can use something like this :

        jData.params().getUser().setProperty("has.signed.nda", "true");

and read the value using :

        String hasSignedNdaValue = jData.params().getUser().getProperty("has.signed.nda");


How do I set a user attribute? Will it be in the DB? if thats the case how do i store it there, which table and later how can i access it?

Yes it will be stored in the DB.


You could also look into the Event listener mechanism if you need to trigger code when the user logs in.

WIll I need to modify this?

It really depends when you need to check the value. Be careful of eventual issues with HTML caching if you put the code in a template.


Please reply soon as I have to make this happen before Tuesday and we are going live then.

Hope it was soon enough :)

Regards,
  Serge Huber.




Sincerely,
-Jinesh
>From: Serge Huber <[EMAIL PROTECTED]>
>Reply-To: <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: RE: Authentication Variation
>Date: Fri, 11 Jun 2004 14:20:40 +0200
>
>
>You could set a user attribute called something like :
>"has.signed.nda" . If it's present it means he's already agreed to
>it and if it isn't it means he hasn't.
>
>You could also look into the Event listener mechanism if you need to
>trigger code when the user logs in.
>
>Regards,
>   Serge Huber.
>
>At 06:11 11.06.2004, you wrote:
>
>>Hi Mark,
>>
>>We need to make a form which has an "I Agree" radio button. Once
>>the user clicks on that and submits the form we need to populate
>>the data. how to do that is something I am still figuring out.
>>
>>Jinesh
>>
>> >From: Mark Zubis <[EMAIL PROTECTED]>
>> >Reply-To: <[EMAIL PROTECTED]>
>> >To: [EMAIL PROTECTED]
>> >CC: 'Arek Smykot' <[EMAIL PROTECTED]>
>> >Subject: RE: Authentication Variation
>> >Date: Thu, 10 Jun 2004 21:29:05 -0600
>> >
>> >Thanks Jinesh,
>> >
>> >
>> >
>> >I am new to posting problems to the Jahia developer list.  I am
>>hoping that
>> >this is a response to my problem of a users group rights
>>disappearing.  If
>> >so, if I understand things correctly, if the user has not signed
>>the NDA, it
>> >could result in the user's rights disappearing.  How does one
>>sign the NDA?
>> >
>> >
>> >
>> >If we create a field in the DB to see if the user has signed the
>>NDA, how
>> >would this field be populated with data?
>> >
>> >
>> >
>> >Sincerely,
>> >
>> >
>> >
>> >Mark
>> >
>> >
>> >
>> >   _____
>> >
>> >From: Jinesh Parekh [mailto:[EMAIL PROTECTED]]
>> >Sent: Thursday, June 10, 2004 3:44 PM
>> >To: [EMAIL PROTECTED]
>> >Subject: Authentication Variation
>> >
>> >
>> >
>> >Hi
>> >
>> >I need to make the user sign an Non Disclosure Agreement (NDA)
>>for the first
>> >time he/she logs in. After that i want to check each time a user
>>comes in to
>> >c if he/she has signed the NDA. If the user has signed the NDA
>>then he/she
>> >should be able to log in else it should keep prompting to make
>>them sign it.
>> >
>> >I want to make a variable in the DB wchis indicates if the user
>>has signed
>> >the NDA and need to access that variable. I would appreciate if
>>some one
>> >could guide me through the process.
>> >
>> >Sincerely,
>> >-Jinesh
>> >
>
>- -- --- -----=[ serge.huber at jahia dot com ]=---- --- -- -
>Jahia : A collaborative source CMS and Portal Server
>www.jahia.org Community and product web site
>www.jahia.com Commercial services company
>
>

- -- --- -----=[ serge.huber at jahia dot com ]=---- --- -- -
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company

Reply via email to