It's all about the answers!

Ask a question

How to assign licenses to users via the Plain Java API?


Cliff Gardiner (92727) | asked Nov 18 '16, 4:41 a.m.
Distributed CLM 4.0.7 on Windows Servers.

Hi all, as part of my efforts to automate some regular manual RTC tasks, I'm building a utility to add users to teams, assign roles etc. but can't find a way to assign licenses.

Is this possible using the plain Java API?

Accepted answer


permanent link
Ralph Schoon (60.5k33643) | answered Nov 18 '16, 7:27 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
 I used https://www.google.com/search?q=assign+license+java+API+site:jazz.net and found one very old answer in the first few posts. The code example is a bit stunning, as the license service seems to be handled a bit special (it seems to be unavailable as a client library and needs a special way to be loaded). Once I had the Interface name, searching for it in the SDK showed some examples how to get it, that agree with the answer in the post however.
Cliff Gardiner selected this answer as the correct answer

Comments
Ralph Schoon commented Nov 18 '16, 7:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 By the way, it is possible to use the repotools -createUser command to assign licenses.


Cliff Gardiner commented Nov 18 '16, 11:55 a.m. | edited Nov 18 '16, 12:46 p.m.

Thanks Ralph, I've spent hours with Google and Jazz.net as I've worked my way through adding team areas, adding users to them and assigning roles to the users and must have missed that along the way.  I'll study that next ...

For information, I work in an environment where although I am the Jazz administrator I have no logon access to the Production servers (don't ask ...) so administration via a client interface is critical.  Repotools is not an option for me.  We are anticipating migrating to a cloud/SaaS implementation in the near future so the same consideration will apply.


Ralph Schoon commented Nov 18 '16, 12:16 p.m. | edited Nov 18 '16, 12:46 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

You could have found most of the stuff here: https://rsjazz.wordpress.com/ I just haven't done the license upload.

My trick searchin is adding site:jazz.net at the end to search only here for API examples. Otherwise you might get too many hits. You can do that for sites you know. I did not include the link I meant https://jazz.net/forum/questions/86928/is-it-possible-to-retrieve-license-information-using-the-plain-java-api  and https://jazz.net/forum/questions/119688/license-repo-permission-information-using-rtc-plain-java-api

I agree it should be easier to find examples, but too few users publish.


Ralph Schoon commented Nov 18 '16, 12:44 p.m. | edited Nov 18 '16, 12:46 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Just a thought, have you treid to put a server install on your local machine (e.g. the plain zip version) and run the repotools against the company server? You provide a repo connection and I don't think it is a requirement to run the repotools on the server hardware.....

One other answer



permanent link
Ralph Schoon (60.5k33643) | answered Mar 29 '17, 8:21 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 The post from BamBytes was taken down and can no longer be found. I posted a new example: https://rsjazz.wordpress.com/2017/03/29/managing-contributor-licenses-using-the-plain-java-client-libraries/ .

Your answer


Register or to post your answer.