cancel
Showing results for 
Search instead for 
Did you mean: 

How to extend the user model?

lista
Star Contributor
Star Contributor
I'd like someone who already dealt with this to give me an advice.
How would you extend the user model, or to put it in another words, how would you add your own custom properties to the user?
Obviously, the original contentModel.xml should not be modified.

All advices are welcome.

Cheers,
Lista.
23 REPLIES 23

inocka
Champ in-the-making
Champ in-the-making
Did you mean that I should use directly r.disabled in jsp or I should create specific user property for that?
Thanks
you can create to  have rendered="!r.disabled"

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
if user has disabled propertie then why no to use it .
if prp is custom then you have #{r['acme:document_id']};

inocka
Champ in-the-making
Champ in-the-making
Thanks for quick reply savic.prvoslav. Am I write that there is not such default r.disabled property for alfresco standard user cmSmiley Tongueerson?

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
you must create your own, sorry. but that is so easy, you override UsersDialog . and add property resolover and add that r.disable and based onthat you render it or not.