Package org.openengsb.core.api

Examples of org.openengsb.core.api.LinkingSupport


            securityInterceptor, new SecurityAttributeProviderImpl());
        serviceUtils = new DefaultOsgiUtilsService(bundleContext);
        mockedServiceUtils = mock(DefaultOsgiUtilsService.class);
        mockedServiceUtils = mock(DefaultOsgiUtilsService.class);
        testConnector = mock(LinkingSupport.class);
        LinkingSupport testConnector2 = mock(LinkingSupport.class);
        Domain testConnector3 = mock(Domain.class);
        when(mockedServiceUtils.getService("(service.pid=test+test+test)", 100L)).thenReturn(testConnector);
        when(mockedServiceUtils.getService("(service.pid=test2+test2+test2)", 100L)).thenReturn(testConnector2);
        when(mockedServiceUtils.getService("(service.pid=test3+test3+test3)", 100L)).thenReturn(null);
        when(mockedServiceUtils.getService("(service.pid=test4+test4+test4)", 100L)).thenReturn(testConnector3);
View Full Code Here


            Object connector = getUtilsService().getService("(service.pid=" + connectorId + ")", 100L);
            if (connector == null) {
                throw new IllegalStateException("requestor connector not there");
            }
            try {
                LinkingSupport service = (LinkingSupport) connector;
                service.showXLinks(xLinkObjects.toArray(new XLinkObject[xLinkObjects.size()]));
            } catch (ClassCastException e) {
                throw new DomainNotLinkableException();
            }
        }
View Full Code Here

    @Override
    public void openXLink(String connectorId, ModelDescription modelDescription, Object modelObject,
            XLinkConnectorView view) {
        String filter = "(" + Constants.SERVICE_PID + "=" + connectorId + ")";
        LinkingSupport connector = (LinkingSupport) getUtilsService().getService(filter);
        connector.openXLink(modelDescription, modelObject, view);
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.api.LinkingSupport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.