It's all about the answers!

Ask a question

create an user programmatically


Annie Ying (2062103) | asked Mar 20 '08, 3:50 p.m.
JAZZ DEVELOPER
Hi,

How do I create an user programmatically? From the comment of IContributorService.saveContributor(IContributor), I know this method can create a contributor in the repository. However, I have no idea how to create a IContributor object. Can anybody give me a hand?

I do know how to create a workitem, by using the method
IWorkItemService.createWorkItem2. However, I can't find an analogous method in the IContributorService!!!

Please help! Thanks!

Annie

One answer



permanent link
Darin Swanson (3161) | answered Mar 20 '08, 4:17 p.m.
IContributor teamMember = (IContributor) IContributor.ITEM_TYPE.createItem();


HTH
Darins

Hi,

How do I create an user programmatically? From the comment of IContributorService.saveContributor(IContributor), I know this method can create a contributor in the repository. However, I have no idea how to create a IContributor object. Can anybody give me a hand?

I do know how to create a workitem, by using the method
IWorkItemService.createWorkItem2. However, I can't find an analogous method in the IContributorService!!!

Please help! Thanks!

Annie

		                                        

Your answer


Register or to post your answer.