/** * This method returns the <code>PasswordImpl</code> associated with a user and is called * internally by other methods in this class. */ private PasswordImpl getPasswordImpl(User user) { PasswordImpl password = null; String query = "select pw from " + this.userPasswordImpl + " pw where pw.sportletUser.oid='" + user.getID() + "'"; try { password = (PasswordImpl) pm.restore(query); } catch (PersistenceManagerException e) { _log.error("Unable to retrieve password for user", e); } return password; }