Package org.wso2.carbon.registry.core.session

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


                        new TransportPersistenceManager(getAxisConfig()).
                                getTransportResource(transportProtocol);
                if (axisService.getExposedTransports().size() == 1) {
                    return SERVICE_MUST_CONTAIN_AT_LEAST_ONE_TRANSPORT;
                } else {
                    registry.removeAssociation(serviceResource.getPath(), transportResource.getPath(),
                                               RegistryResources.Associations.EXPOSED_TRANSPORTS);
                    // registry.removeAssociation(transportResource.getPath(),
                    // serviceResource.getPath(),
                    // RegistryResources.Associations.EXPOSED_TRANSPORTS);
                    axisService.removeExposedTransport(transportProtocol);
View Full Code Here


            String policyPath = servicePath + RegistryResources.POLICIES + policyKey;
            registry.delete(policyPath);

            for (String moduleName : moduleNames) {
                String modPath = RegistryResources.MODULES + moduleName;
                registry.removeAssociation(servicePath, modPath,
                                           RegistryResources.Associations.ENGAGED_MODULES);
            }

            // at axis2
            Map endPointMap = service.getEndpoints();
View Full Code Here

            // remove associations
            List<RegistryConfig.Association> associations = registryConfig.getAssociations();
            for (RegistryConfig.Association association : associations) {
                Registry reg = getRegistryInstance(association.getRegistryType());
                if (reg != null) {
                    reg.removeAssociation(association.getSourcePath(),
                            association.getTargetPath(), association.getAssociationType());
                }
            }
        } catch (RegistryException e) {
            log.error("Error while removing registry resources of the artifact : " +
View Full Code Here

        String servicePath = RegistryResources.SERVICE_GROUPS
                + axisService.getAxisServiceGroup().getServiceGroupName()
                + RegistryResources.SERVICES + serviceName;
        Registry registry = getConfigSystemRegistry();
        try {
            registry.removeAssociation(servicePath, getModuleResourcePath(mercuryModule),
                    RegistryResources.Associations.ENGAGED_MODULES);
            String policyPath = servicePath + RegistryResources.POLICIES + RM_POLICY_ID;
            if (registry.resourceExists(policyPath)) {
                registry.delete(policyPath);
            }
View Full Code Here

            return;
        }
        if(todo.equals("add")){
                registry.addAssociation(path, associationPaths, type);
            } else {
                registry.removeAssociation(path, associationPaths, type);
            }
        DependenciesBeanPopulator.populate(registry, path);
    }

    public AssociationTreeBean getAssociationTree(String path, String type) throws RegistryException{
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.