In the user_services.xhtml, the label.loggedAsUser refers to the
*name* property of the nuxeoPrincipal contained in the context. In
our case (LDAP context) the name is the login and is not very self
explanatory for other users since it is a big number (10024597 for
instance).
I'd like to replace it with the concatenated string firstName +
lastName. I could replace only in the label, but the problem is the
same for other parts of the webapp (author of documents for instance).
The solution would be to inherit our own LMUserPrincipal from the
UserPrincipal and replace the getName method to refer what we need. I
guess there will be side effects in the login module since it uses
the name property of the UserPrincipal to authenticate.... I should
also inherit from the JBossLoginModule to put the modification....
What do you think of those modifications ?
Thx
Damien METZLER
Leroy Merlin
Ce message et toutes les pi?ces jointes sont ?tablis ? l'attention exclusive de
leurs destinataires et sont confidentiels. Si vous recevez ce message par
erreur, merci de le d?truire et d'en avertir imm?diatement l'exp?diteur.
L'internet ne permettant pas d'assurer l'int?grit? de ce message, le contenu de
ce message ne repr?sente en aucun cas un engagement de la part de Leroy Merlin.
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm