It's all about the answers!

Ask a question

IContributor license assignment


m sawires (1462268) | asked Nov 26 '09, 5:25 p.m.
Hello,
How can I assign a license programmatically to a newly created contributor?
Thank you for your help.

Accepted answer


permanent link
MooR Rathinasamy (412) | answered May 23 '16, 1:06 a.m.

Try this...

LicenseAdminLibrary licenseAdminLibrary = new LicenseAdminLibrary(teamRepository);

licenseAdminLibrary.assignLicense(contributor, licenseId, monitor);

Ralph Schoon selected this answer as the correct answer

One other answer



permanent link
Darin Swanson (3161) | answered Dec 01 '09, 11:38 a.m.
IContributor newContributor = IContributor.ITEM_TYPE.createItem();
//configure the new contributor
repository.contributorManager().saveContributor(newContributor, null);

See ILicenseAdminService for assigning a license.

HTH
Darin
Jazz Process Team

"marly" <marly> wrote in message
news:hen005$9si$1@localhost.localdomain...
Hello,
How can I create a contributor programmatically:
The lContributorManager doesn't have a createContributor API. I can
only get existing users via

repository.contributorManager().fetchContributorByUserId(name,
monitor)

Also how can I then assign a license programmatically to a user?

Thank you for your help.

Your answer


Register or to post your answer.