Old java class are not working on JIRA 5.0

we are using few java class like com.opensymphony.user.UserManager in Jira 4.3.4 to fetch the user information. But when we upgrade the version to JIRA 5.0, class (com.opensymphony.user.UserManager) is not working. Please let us know, class name to
perform the user information functionality in Jira 5.0. Thanks.

3 answers

Please tel me that how can i get object of DefaultUserManager class. Because this class implemented UserManager interface

By replacing your use of opensymphony with embedded crowd. As we said before, it's not a flat replacement, you may well have to modify your code to deal with it. DefaultUserManager is implemented in Crowd, and it's not that different from the opensymphony one, but you will need to work through the changes for yourself.

We can't feed you any code really. It's far better that you understand what you're doing than just blindly copy something, but more to the point here, you haven't told us what you're trying to do with user management. Without context, random snippets of code are likely to be worse than useless to you.

0 vote

Um, you need to recompile a lot of stuff against the new libraries.

It really is not as simple as "use new libraries", you're going to need to redevelop some stuff separately. (Note in many cases, really all you need is "update pom.xml and recompile", but not all of them, especially any user related stuff)

The opensymphony stuff has been replaced by embedded crowd now. There aren't many one-to-one swaps you can't just replace opensymphony.user.usermanager with crowd.usermanager, it's just not that simple.

Can we have any crowd API to develop and recompile our staff?

In a nutshell, can you tell me, how can I get user information in Jira now?

Radu has given you the link I was reaching for. You'll need to follow that. I can't tell you how to get user information (either from Opensymphony or Crowd) any better than the documentation.

Please tel me that how can i get object of DefaultUserManager class. Because this class implemented UserManager interface

0 vote

Most methods are available by Userutil or UserManager.

Use ComponentAccessor.getUserUtil() or ComponentAccessor.getUserManager() to access them.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

174 views 1 17
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you