Examples of addAssociation()


Examples of org.drools.core.common.BaseNode.addAssociation()

            // shared node found
            mergeNodes(node, candidate);
            // undo previous id assignment
            context.releaseId( candidate.getId() );
        }
        node.addAssociation( context.getRule(), context.peekRuleComponent() );
        return node;
    }

    private void mergeNodes(BaseNode node, BaseNode duplicate) {
        if (node instanceof AlphaNode) {
View Full Code Here

Examples of org.wso2.carbon.application.deployer.config.RegistryConfig.addAssociation()

        // read Association elements under Resources
        Iterator associationItr = resourcesElement.getChildrenWithLocalName(RegistryConfig.ASSOCIATION);
        while (associationItr.hasNext()) {
            OMElement assoElement = (OMElement) associationItr.next();
            regConfig.addAssociation(readChildText(assoElement, RegistryConfig.SOURCE_PATH),
                    readChildText(assoElement, RegistryConfig.TARGET_PATH),
                    readChildText(assoElement, RegistryConfig.TYPE),
                    readChildText(assoElement, RegistryConfig.REGISTRY_TYPE));
        }
        return regConfig;
View Full Code Here

Examples of org.wso2.carbon.registry.core.Registry.addAssociation()

                    getConfigSystemRegistry().beginTransaction();
                }
                serviceResource.setProperty(
                        RegistryResources.ServiceProperties.EXPOSED_ON_ALL_TANSPORTS, String
                                .valueOf(false));
                registry.addAssociation(serviceResource.getPath(), transportResource.getPath(),
                                        RegistryResources.Associations.EXPOSED_TRANSPORTS);
                // registry.addAssociation(transportResource.getPath(),
                // serviceResource.getPath(),
                // RegistryResources.Associations.EXPOSED_TRANSPORTS);
                registry.put(serviceResource.getPath(), serviceResource);
View Full Code Here

Examples of org.wso2.carbon.registry.core.Registry.addAssociation()

        List<RegistryConfig.Association> associations = regConfig.getAssociations();
        for (RegistryConfig.Association association : associations) {
            Registry reg = getRegistryInstance(association.getRegistryType());
            try {
                if (reg != null) {
                    reg.addAssociation(association.getSourcePath(),
                            association.getTargetPath(), association.getAssociationType());
                }
            } catch (RegistryException e) {
                log.error("Error while adding the association. Source path : " + association
                        .getSourcePath() + " Target path : " + association.getTargetPath());
View Full Code Here

Examples of org.wso2.carbon.registry.core.Registry.addAssociation()

                }
            }

            //if throttling is not found, add a new association
            if (!associationExist) {
                registry.addAssociation(servicePath, getModuleResourcePath(sandesahModule),
                        RegistryResources.Associations.ENGAGED_MODULES);
            }
        } catch (RegistryException e) {
            log.error("Error occured in engaging throttlin at registry", e);
            throw new AxisFault("Can not save to the registry");
View Full Code Here

Examples of org.wso2.carbon.registry.core.session.UserRegistry.addAssociation()

        UserRegistry registry = (UserRegistry) getRootRegistry();
        if (RegistryUtils.isRegistryReadOnly(registry.getRegistryContext())) {
            return;
        }
        if(todo.equals("add")){
                registry.addAssociation(path, associationPaths, type);
            } else {
                registry.removeAssociation(path, associationPaths, type);
            }
        DependenciesBeanPopulator.populate(registry, path);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.