RTC: How I capture visibility component of Streams using Advisor operation?
![]()
I am creating an Advisor to control and manage the access the components of Streams in RTC. In Streams, how I capture the visibility of components? See part of code:
public void run(AdvisableOperation operation, IProcessConfigurationElement advisorConfiguration, IAdvisorInfoCollector collector, IProgressMonitor monitor) throws TeamRepositoryException { IRepositoryItemService repo = getService(IRepositoryItemService.class); IAccessGroupService groupService = getService(IAccessGroupService.class); IComponentService ics = getService(IComponentService.class); Class<?> classe = operation.getOperationData().getClass(); Object data = operation.getOperationData(); if (data instanceof IComponentModificationData) { IComponentModificationData modificationData = (IComponentModificationData) data; ....... } } |
One answer
![]()
Hi,
component ownership and visibility on server side could be configured using this method: IScmService.setComponentOwnerAndVisibility. Stream visibility, on the other side, are provided by IScmService.setWorkspaceOwnerAndVisibility and IScmService.setWorkspaceVisibility |
Comments
Please provide information what you want to do. From your question I can't tell.
I want that components created in Streams will always private. So I verify during creation, the visibility that was user choice.
How do you know what was the user's desired visibility? Note that (to my knowledge) a precondition cannot pop up a dialog for interacting with the user, so you cannot use a precondition to ask the user interactively to confirm something.