Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Which jar file contains the com.atlassian.confluence.user.AuthenticatedUserThreadLocal source?

seanbrett76
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 21, 2019

Hi,

I'm trying to replicate a plugin we have installed in our Confluence instance.  The plugin works correctly but I need to create a new plugin for a similar purpose. 

I have the plugin source code but cannot compile/build from it as I cannot find the library for the AuthenticatedUserThreadLocal class. The code looks like this:

// get the currently logged in user
User user = AuthenticatedUserThreadLocal.getUser();
String username = user.getName()

Any ideas which jar file (and where I can get it) I need?
(Surely it must be present on our Confluence server in order for the plugin to run?)

1 answer

0 votes
seanbrett76
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 22, 2019

Nevermind, I found a copy in a local repository store in the jar confluence-5.1.5.jar  

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events