[Resolved] Change component owner and visibility problem
Hi all,
I'm trying to use this function :
I'm trying to use this function :
void com.ibm.team.scm.client.IWorkspaceManager.setComponentOwnerAndVisibility(IComponentHandle arg0, IAuditableHandle arg1, IReadScope arg2, IProgressMonitor arg3);
In order to change a component's visibility and owner. I use it in this way :
getWorkspaceManager().setComponentOwnerAndVisibility(getComponentHandle(), getRepository().loggedInContributor(), IReadScope.FACTORY.createPublicScope(), null);
No error is raised, but when i check the visibility in the RTC Web UI for the component, it is always "Private".
I tried different IReadScope parameters, but the result is the same.
Does someone know what is wrong ? Is there a function that i have to use after to save changes ?
thanks in advance !
Regards
In order to change a component's visibility and owner. I use it in this way :
getWorkspaceManager().setComponentOwnerAndVisibility(getComponentHandle(), getRepository().loggedInContributor(), IReadScope.FACTORY.createPublicScope(), null);
No error is raised, but when i check the visibility in the RTC Web UI for the component, it is always "Private".
I tried different IReadScope parameters, but the result is the same.
Does someone know what is wrong ? Is there a function that i have to use after to save changes ?
thanks in advance !
Regards
3 answers
Thanks for you answers,
it works now, i think that my getComponentHandle() was wrong.
@sam detweiler : setting a public visibility with a specific owner works
it works now, i think that my getComponentHandle() was wrong.
@sam detweiler : setting a public visibility with a specific owner works