Package org.openengsb.ui.admin.model

Examples of org.openengsb.ui.admin.model.ServiceId


        setServiceInDropDown("testdomain+testconnector+test-service");

        @SuppressWarnings("unchecked")
        Form<MethodCall> form = (Form<MethodCall>) tester.getComponentFromLastRenderedPage("methodCallForm");
        MethodCall modelObject = form.getModelObject();
        ServiceId reference = new ServiceId(TestInterface.class, "testdomain+testconnector+test-service");
        Assert.assertEquals(reference.toString(), modelObject.getService().toString());
    }
View Full Code Here


    @Test
    @SuppressWarnings("unchecked")
    public void testJumpToService_shouldJumpToService() throws Exception {
        setupTestClientPage();
        String connectorId = "testdomain+testconnector+test-service";
        ServiceId reference = new ServiceId(TestInterface.class, connectorId);
        tester.startPage(new TestClient(reference));
        tester.assertComponent("methodCallForm:serviceList:i:2:nodeComponent:contentLink:content", Label.class);
        Form<MethodCall> form = (Form<MethodCall>) tester.getComponentFromLastRenderedPage("methodCallForm");
        assertThat(form.getModelObject().getService(), is(reference));
        DropDownChoice<MethodId> ddc = (DropDownChoice<MethodId>) form.get("methodList");
View Full Code Here

            protected void onNodeLinkClicked(Object node, BaseTree tree, AjaxRequestTarget target) {
                DefaultMutableTreeNode mnode = (DefaultMutableTreeNode) node;
                try {
                    argumentList.removeAll();
                    target.add(argumentListContainer);
                    ServiceId service = (ServiceId) mnode.getUserObject();
                    LOGGER.info("clicked on node {} of type {}", node, node.getClass());
                    call.setService(service);
                    populateMethodList();
                    updateModifyButtons(service);
                    jsonButton.setEnabled(true);
View Full Code Here

    /**
     * Displays the corresponding message to the currently selected Method of the currently active Service in the
     * "ServiceTree"
     */
    private void displayJSONMessages() {
        ServiceId serviceId = fetchCurrentSelectService();
        MethodId methodId = fetchCurrentSelectMethod();
        if (serviceId == null) {
            String serviceNotSet = new StringResourceModel("json.view.ServiceNotSet", this, null).getString();
            info(serviceNotSet);
            return;
View Full Code Here

        DefaultMutableTreeNode providerNode =
            new DefaultMutableTreeNode(providerName);
        node.add(providerNode);

        // add domain entry to call via domain endpoint factory
        ServiceId domainProviderServiceId = new ServiceId();
        Class<? extends Domain> domainInterface = provider.getDomainInterface();
        domainProviderServiceId.setServiceClass(domainInterface);
        domainProviderServiceId.setDomainName(provider.getId());

        DefaultMutableTreeNode endPointReferenceNode = new DefaultMutableTreeNode(domainProviderServiceId, false);
        providerNode.add(endPointReferenceNode);

        // add all corresponding services
        List<? extends Domain> domainEndpoints = wiringService.getDomainEndpoints(domainInterface, "*");
        for (Domain serviceReference : domainEndpoints) {
            String id = serviceReference.getInstanceId();
            if (id != null) {
                ServiceId serviceId = new ServiceId();
                serviceId.setServiceId(id);
                serviceId.setServiceClass(domainInterface);
                DefaultMutableTreeNode referenceNode = new DefaultMutableTreeNode(serviceId, false);
                providerNode.add(referenceNode);
            }
        }
    }
View Full Code Here

        LOGGER.error(error, e);
    }

    protected void populateArgumentList() {
        argumentList.removeAll();
        ServiceId service = call.getService();
        Object serviceObject;
        try {
            if (service.getDomainName() != null) {
                serviceObject = getServiceViaDomainEndpointFactory(service);
            } else {
                serviceObject = getService(service);
            }
        } catch (OsgiServiceNotAvailableException e) {
View Full Code Here

        error(stackTrace);
        LOGGER.error(e.getMessage(), e);
    }

    private void populateMethodList() {
        ServiceId service = call.getService();
        List<Method> methods = getServiceMethods(service);
        Collection<String> methodSignatures = Collections2.transform(methods, new Function<Method, String>() {
            @Override
            public String apply(Method input) {
                Class<?>[] parameterTypes = input.getParameterTypes();
View Full Code Here

TOP

Related Classes of org.openengsb.ui.admin.model.ServiceId

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.