Can you create an access Group using the java api, RTC4
2 answers
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.
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.
I got the answer run
workItemCommon = (IWorkItemCommon)repo.getClientLibrary(IWorkItemCommon.class);
before createing the access group
workItemCommon = (IWorkItemCommon)repo.getClientLibrary(IWorkItemCommon.class);
before createing the access group
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.