Le 12 avr. 07 à 17:38, Julien Anguenot a écrit :



I don't think this is good idea. the getName() should return the
principal id. All code at app level expects this. For me, this is pure
UI issue.
I agree with you. This is pure UI issue.... But a method called *getName* should return the Name of the principal and not it's id... (it should be a
getId method instead).


What we could do to tackle this could be just to extend the API of the
listener dealing with user and groups to provide a convenient method to
get the fullname.

 public String getFullNameFor(String principalName);

 public String getFullNameFor(NuxeoPrincipal principal);

or something like that we could use from the jsf and from other listeners.

Of course, this is a legitimate request...

What do you think ?

As I understand the problem of renaming the getName in getId method,
the API extension is a good workaround to fit my needs.



Cheers,

        J.

--
Julien Anguenot | Nuxeo R&D (Paris, France)
Open Source ECM - http://www.nuxeo.com
Nuxeo 5 : http://www.nuxeo.org
Mobile: +33 (0) 6 72 57 57 66


--

Damien Metzler
Leroy Merlin - Tel : 03 28 80 89 03
Email : [EMAIL PROTECTED]





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

Reply via email to