Log In | Sign Up   View a printable version of the current page.
  Dashboard > flexive > ... > HowTo's > Get the current users UserTicket

Added by Markus Plesser, last edited by Daniel Lichtenberger on Nov 10, 2008  (view change)
Labels: 
(None)

Obtaining a reference to the current users UserTicket is simple: It is stored in a ThreadLocal and accessible using the [fleXive] context FxContext:

UserTicket ticket = FxContext.get().getTicket();

There is also a shortcut version available:

UserTicket ticket = FxContext.getUserTicket();

For more information about the UserTicket and security see the Reference Documentation

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