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.
Most methods are available by Userutil or UserManager.
Use ComponentAccessor.getUserUtil() or ComponentAccessor.getUserManager() to access them.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.