Log In | Sign Up   View a printable version of the current page.
  Dashboard > [fleXive] > ... > How-Tos > Get the current users' UserTicket > Information > Page Comparison

compared with
Current by Daniel Lichtenberger
on Apr 21, 2009 08:58.

(show comment)
 
Key
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history


There are 0 changes. View first change.

 Obtaining a reference to the current users {{[UserTicket|http://www.flexive.org/docs/javadoc/shared/index.html?com/flexive/shared/security/UserTicket.html]}} is simple: It is stored in a ThreadLocal and accessible using the {fx} context {{[FxContext|http://www.flexive.org/docs/javadoc/shared/index.html?com/flexive/shared/FxContext.html]}}:
 {code:java}
 UserTicket ticket = FxContext.get().getTicket();
 {code}
  
 There is also a shortcut version available:
 {code:java}
 UserTicket ticket = FxContext.getUserTicket();
 {code}
  
 For more information about the {{UserTicket}} and security see the [Reference Documentation|http://www.flexive.org/docs/website/core_security.html]
Site running on a free Atlassian Confluence Open Source Project License granted to [fleXive] . Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.6.1 Build:#916 Nov 09, 2007) - Bug/feature request - Contact Administrators