Rev 1687 | Rev 1704 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1687 | Rev 1691 | ||
---|---|---|---|
Line 384... | Line 384... | ||
384 | * Create a new Certificate for usage in URL auto login |
384 | * Create a new Certificate for usage in URL auto login |
385 | * |
385 | * |
386 | * @param userId |
386 | * @param userId |
387 | * @return the certificate string to use in URL |
387 | * @return the certificate string to use in URL |
388 | */ |
388 | */ |
389 | public 1.5.0/docs/api/java/lang/String.html">String createCertificateForId(long userId, UserSession usersession) |
389 | public 1.5.0/docs/api/java/lang/String.html">String createCertificateForId(1.5.0/docs/api/java/lang/Long.html">Long userId, UserSession usersession) |
- | 390 | ||
390 | { |
391 | { |
391 | User u = DaoFactory.getUserDaoImpl().load(userId); |
392 | User u = DaoFactory.getUserDaoImpl().load(userId); |
392 | return createCertificate(u, usersession); |
393 | return createCertificate(u, usersession); |
393 | } |
394 | } |
394 | public 1.5.0/docs/api/java/lang/String.html">String createCertificateForId(long userId) |
395 | /*public String createCertificateForId(long userId) |
395 | { |
396 | { |
396 | User u = DaoFactory.getUserDaoImpl().load(userId); |
397 | User u = DaoFactory.getUserDaoImpl().load(userId); |
397 | return createCertificate(u); |
398 | return createCertificate(u); |
398 | } |
399 | }*/ |
- | 400 | ||
399 | public 1.5.0/docs/api/java/lang/String.html">String createCertificate(User user) |
401 | public 1.5.0/docs/api/java/lang/String.html">String createCertificate(User user) |
400 | { |
402 | { |
401 | return createCertificate(user,null); |
403 | return createCertificate(user,null); |
402 | } |
404 | } |
403 | /** |
405 | /** |
Line 421... | Line 423... | ||
421 | } |
423 | } |
422 | 424 | ||
423 | public static void main(1.5.0/docs/api/java/lang/String.html">String [] args) |
425 | public static void main(1.5.0/docs/api/java/lang/String.html">String [] args) |
424 | { |
426 | { |
425 | AbstractDao.getCurrentSession().beginTransaction(); |
427 | AbstractDao.getCurrentSession().beginTransaction(); |
426 | 1.5.0/docs/api/java/lang/String.html">String certificate = new AuthenticateService().createCertificateForId(1691,null); |
428 | //String certificate = new AuthenticateService().createCertificateForId(1691,null); |
427 | AbstractDao.getCurrentSession().getTransaction().commit(); |
429 | AbstractDao.getCurrentSession().getTransaction().commit(); |
428 | 430 | ||
429 | } |
431 | } |
430 | } |
432 | } |
431 | 433 |