How to change repository workspace visibility to 'Scoped'
I wanna change my repository workspace visibility to 'Scoped', but only Public and private could work, if I Choose createAccessGroupScope as my IReadScope, it's always error with message from IDE
iWorkspaceConnection.setOwnerAndVisibility((IAuditableHandle)newContributor, IReadScope.FACTORY.createAccessGroupScope(), monitor);
"The method setOwnerAndVisibility(IAuditableHandle, IReadScope, IProgressMonitor) in the type IWorkspaceConnection is not applicable for the arguments (IAuditableHandle, IAccessGroupScope, IProgressMonitor)"
Does anyone who can help to provide the hint to achieve it, Thanks!
2 answers
Workspaces can be scoped to
- Public
- Private
- Scoped - to a project area
I can't see access groups in the list, so I would not assume that you can use access groups to set the scope.
Comments
Hi Schoon:
Through IReadScope api in javadoc, I can't find any IReadScope could help me to select "Scoped - to a project area", is there any idea?
com.ibm.team.scm.common.dto.Interface IReadScope.IReadScopeFactory
com.ibm.team.scm.common.dto.IAccessGroupScope createAccessGroupScope()
IContributorDeferringScope createContributorDeferringScope()
IPrivateScope createPrivateScope()
IProcessAreaScope createProcessAreaScope()
IPublicScope createPublicScope()
ITeamAreaPrivateScope createTeamAreaPrivateScope()
IUnknownScope createUnknownScope()
PS. The doc is base on version 6.0
Do you have some sort of mixed version setup? The SCM team has done some Access Group related work for the pending 6.0.1 release but it means that some of the classes have changed. Specifically in your case, it looks like the IAccessGroupScope class now extends IReadScope where it didn't before. Please ensure that the client/common code you are programming against are all from the same version.