Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Can you create an access Group using the java api, RTC4

I can list users, add users and remove users with access groups

Is a way to create an access group using the java api

0 votes



2 answers

Permanent link
I would try

        workItemCommon.getAuditableCommon().createAuditable(IAccessGroup.ITEM_TYPE);

See https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ and look into how I get the SecurityContextProvider that actually uses them.

1 vote

Comments

IAccessGroup workGroup =  (IAccessGroup) workItemCommon.getAuditableCommon().createAuditable(IAccessGroup.ITEM_TYPE);

I assume I use the command this way, this gives a null pointer exception


Permanent link
I got the answer          run
workItemCommon = (IWorkItemCommon)repo.getClientLibrary(IWorkItemCommon.class);

before createing the access group

0 votes

Comments

That you always need to get the client libraries or services before you can use them is described in https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ for instance. This is something you should be aware of from the start, because no example you create would work otherwise.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jul 04 '13, 11:13 a.m.

Question was seen: 6,229 times

Last updated: Jul 05 '13, 2:29 a.m.

Confirmation Cancel Confirm