Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

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;
            .......


            }

}


0 votes

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.



One answer

Permanent link
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

0 votes

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
× 10,985

Question asked: Feb 22 '16, 2:02 p.m.

Question was seen: 2,282 times

Last updated: Feb 26 '16, 5:43 p.m.

Confirmation Cancel Confirm