De : Simon REZE [mailto:[EMAIL PROTECTED]] > > Hi, > > What is the best way to get info (pass by example) about a > user using his > email adress? > There is the getUser(java.lang.String username) method but there's no > getUser(java.lang.String password). > Did someone ever do that? >
No, for several reasons: - the 2 methods you propose have the same signature so you could not define them as such in the same class ;) - email is not a workable key by default because it can be null and may be non unique. If you want to retrieve users by email or any other field than user_id or username, you need to search for them and be prepared to deal with an empty or non-unique return set. check org.apache.jetspeed.om.security.turbine.TurbineUserPeer and the Torque user guide (http://db.apache.org/torque/). -- Rapha�l Luta - [EMAIL PROTECTED] Jakarta Jetspeed - Enterprise Portal in Java http://jakarta.apache.org/jetspeed/ ********************************************** Vivendi Universal - HTTP://www.vivendiUniversal.com: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material of Vivendi Universal which is for the exclusive use of the individual designated above as the recipient. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact immediately the sender by returning e-mail and delete the material from any computer. If you are not the specified recipient, you are hereby notified that all disclosure, reproduction, distribution or action taken on the basis of this message is prohibited. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
