Package org.wso2.carbon.registry.api

Examples of org.wso2.carbon.registry.api.Registry.resourceExists()


        String content = null;

        try {
            systemRegistry = EventingServiceComponent.getRegistry();

            if (systemRegistry.resourceExists(PROTOCOL_PATH)) {
                resource = systemRegistry.get(PROTOCOL_PATH);
                content = new String((byte[]) resource.getContent());
                processProtocols(AXIOMUtil.stringToOM(content));
            }
View Full Code Here


                resource = systemRegistry.get(PROTOCOL_PATH);
                content = new String((byte[]) resource.getContent());
                processProtocols(AXIOMUtil.stringToOM(content));
            }

            if (systemRegistry.resourceExists(SUBSCRIBERS_PATH)) {
                resource = systemRegistry.get(SUBSCRIBERS_PATH);
                content = new String((byte[]) resource.getContent());
                processSubscribers(AXIOMUtil.stringToOM(content));
            }
View Full Code Here

                resource = systemRegistry.get(SUBSCRIBERS_PATH);
                content = new String((byte[]) resource.getContent());
                processSubscribers(AXIOMUtil.stringToOM(content));
            }

            if (systemRegistry.resourceExists(SUBSCRIBER_STORES_PATH)) {
                resource = systemRegistry.get(SUBSCRIBER_STORES_PATH);
                content = new String((byte[]) resource.getContent());
                processSubscriberStores(AXIOMUtil.stringToOM(content));
            }
View Full Code Here

                resource = systemRegistry.get(SUBSCRIBER_STORES_PATH);
                content = new String((byte[]) resource.getContent());
                processSubscriberStores(AXIOMUtil.stringToOM(content));
            }

            if (systemRegistry.resourceExists(FILTERS_PATH)) {
                resource = systemRegistry.get(FILTERS_PATH);
                content = new String((byte[]) resource.getContent());
                processFilters(AXIOMUtil.stringToOM(content));
            }
View Full Code Here

        try {
            systemRegistry = EventingServiceComponent.getRegistry();

            systemRegistry.beginTransaction();

            if (!systemRegistry.resourceExists(SUBSCRIBERS_PATH)) {
                resource = systemRegistry.newResource();
                resource.setContent(getDefaultSubcribers().toString());
                systemRegistry.put(SUBSCRIBERS_PATH, resource);
            }
View Full Code Here

                resource = systemRegistry.newResource();
                resource.setContent(getDefaultSubcribers().toString());
                systemRegistry.put(SUBSCRIBERS_PATH, resource);
            }

            if (!systemRegistry.resourceExists(SUBSCRIBER_STORES_PATH)) {
                resource = systemRegistry.newResource();
                resource.setContent(getDefaultSubcriberStores().toString());
                systemRegistry.put(SUBSCRIBER_STORES_PATH, resource);
            }
View Full Code Here

                resource = systemRegistry.newResource();
                resource.setContent(getDefaultSubcriberStores().toString());
                systemRegistry.put(SUBSCRIBER_STORES_PATH, resource);
            }

            if (!systemRegistry.resourceExists(FILTERS_PATH)) {
                resource = systemRegistry.newResource();
                resource.setContent(getDefaultFilters().toString());
                systemRegistry.put(FILTERS_PATH, resource);
            }
View Full Code Here

                resource = systemRegistry.newResource();
                resource.setContent(getDefaultFilters().toString());
                systemRegistry.put(FILTERS_PATH, resource);
            }

            if (!systemRegistry.resourceExists(PROTOCOL_PATH)) {
                resource = systemRegistry.newResource();
                resource.setContent(getDefaultProtocols().toString());
                systemRegistry.put(PROTOCOL_PATH, resource);
            }
View Full Code Here

                for (ManagementPermission uiPermission : uiPermissions) {
                    if (uiPermission == null ||
                            uiPermission.getResourceId() == null ||
                            uiPermission.getResourceId().startsWith(
                                    CarbonConstants.UI_PROTECTED_PERMISSION_COLLECTION) ||
                            registry.resourceExists(uiPermission.getResourceId())) {
                        continue;
                    }
                    Collection resource = registry.newCollection();
                    resource.setProperty(UserMgtConstants.DISPLAY_NAME,
                            uiPermission.getDisplayName());
View Full Code Here

            public void run() {
                try {
                    Registry superTenantRegistry =
                            TenantMgtServiceComponent.getConfigSystemRegistry(
                                    MultitenantConstants.SUPER_TENANT_ID);
                    if (!superTenantRegistry.resourceExists(
                            StratosConstants.CAPTCHA_DETAILS_PATH)) {
                        return// resource doesn't exist in the superTenantRegistry. just return.
                    }
                    CollectionImpl c = (CollectionImpl) superTenantRegistry.get(
                            StratosConstants.CAPTCHA_DETAILS_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.