Examples of CollectionImpl


Examples of org.wso2.carbon.registry.core.CollectionImpl

        String path = requestContext.getResourcePath().getPath();

        String confPath = path +
                          RegistryConstants.PATH_SEPARATOR + RegistryConstants
                .AXIS2_CONF_COLLECTION_NAME;
        CollectionImpl confCollection = new CollectionImpl();
        confCollection.setPath(confPath);
        confCollection.setMediaType(RegistryConstants.AXIS2_CONF_COLLECTION_MEDIA_TYPE);
        requestContext.getRegistry().put(confPath, confCollection);

        String servicesPath = path +
                              RegistryConstants.PATH_SEPARATOR + RegistryConstants
                .AXIS2_SERVICES_COLLECTION_NAME;
        CollectionImpl servicesCollection = new CollectionImpl();
        servicesCollection.setPath(servicesPath);
        servicesCollection.setMediaType(RegistryConstants.AXIS2_SERVICES_COLLECTION_MEDIA_TYPE);
        requestContext.getRegistry().put(servicesPath, servicesCollection);

        String modulesPath = path +
                             RegistryConstants.PATH_SEPARATOR + RegistryConstants
                .AXIS2_MODULES_COLLECTION_NAME;
        CollectionImpl modulesCollection = new CollectionImpl();
        modulesCollection.setPath(modulesPath);
        modulesCollection.setMediaType(RegistryConstants.AXIS2_MODULES_COLLECTION_MEDIA_TYPE);
        requestContext.getRegistry().put(modulesPath, modulesCollection);
    }
View Full Code Here

Examples of org.wso2.carbon.registry.core.CollectionImpl

    /**
     * {@inheritDoc}
     */
    public Iterator retrieveAllSubscribers() {
        Registry systemRegistry = null;
        CollectionImpl resourceCollection = null;
        ArrayList allSubscribers = new ArrayList();

        try {
            systemRegistry = EventingServiceComponent.getRegistry();

            if (systemRegistry.resourceExists(EVENTING_ROOT + serviceName
                    + "/subscribers")) {
                resourceCollection = (CollectionImpl) systemRegistry.get(EVENTING_ROOT
                        + serviceName + "/subscribers");
                String[] resources = resourceCollection.getChildren();
                for (int i = 0; i < resources.length; i++) {
                    allSubscribers.add(getSubscriber(systemRegistry.get(resources[i])));
                }
            }
        } catch (Exception e) {
View Full Code Here

Examples of org.wso2.carbon.registry.core.CollectionImpl

                                    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);
                    String[] childPaths = c.getChildren();
                    for (String childPath : childPaths) {
                        Resource resource = superTenantRegistry.get(childPath);
                        long createdTime = resource.getCreatedTime().getTime();
                        long currentTime = new Date().getTime();
View Full Code Here

Examples of org.wso2.carbon.registry.core.CollectionImpl

    public void setRegistry(Registry registry) {
        this.registry = registry;
        try {
            if (!registry.resourceExists(ESBRegistryConstants.ROOT_PATH)) {
                CollectionImpl collection = new CollectionImpl();
                collection.setPath(ESBRegistryConstants.ROOT_PATH);
                registry.put(ESBRegistryConstants.ROOT_PATH, collection);
            }
        } catch (RegistryException e) {
            handleException("Error during initiating 'PersistenceManager'", e);
        }
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.