Examples of asMap()


Examples of org.apache.isis.core.commons.config.IsisConfiguration.asMap()

        if(applicationComponents != null && !applicationComponents.isStale()) {
            return;
        }
       
        final IsisConfiguration dataNucleusConfig = configuration.createSubset(ISIS_CONFIG_PREFIX);
        final Map<String, String> props = dataNucleusConfig.asMap();
        addDataNucleusPropertiesIfRequired(props);

        final Set<String> classesToBePersisted = catalogClassesToBePersisted(configuration, getSpecificationLoader().allSpecifications());
        applicationComponents = new DataNucleusApplicationComponents(props, classesToBePersisted);
    }
View Full Code Here

Examples of org.asciidoctor.OptionsBuilder.asMap()

        OptionsBuilder optionsBuilder = OptionsBuilder.options()
                .backend("docbook").templateDirs(new File("a"), new File("b"))
                .safe(SafeMode.UNSAFE).attributes(attributesBuilder.get());

        String command = AsciidoctorUtils.toAsciidoctorCommand(
                optionsBuilder.asMap(), "file.adoc");

        String currentDirectory = new File( "" ).getAbsolutePath() + File.separator;

        String parametersString = command.substring(command.indexOf(" "), command.length());
       
View Full Code Here

Examples of org.elasticsearch.search.aggregations.Aggregations.asMap()

        return response.getAggregations();
      }
    });
    // then
    assertThat(aggregations, is(notNullValue()));
    assertThat(aggregations.asMap().get("subjects"), is(notNullValue()));
  }
}

View Full Code Here

Examples of org.exist.versioning.svn.internal.wc.SVNWCProperties.asMap()

    }
   
    private SVNProperties readProperties(String name) throws SVNException {
        File propertiesFile = getPropertiesFile(name, false);
        SVNWCProperties props = new SVNWCProperties(propertiesFile, null);
        return props.asMap();
    }

    private SVNProperties readBaseProperties(String name) throws SVNException {
        File propertiesFile = getBasePropertiesFile(name, false);
        SVNWCProperties props = new SVNWCProperties(propertiesFile, null);
View Full Code Here

Examples of org.exist.versioning.svn.internal.wc.admin.SVNVersionedProperties.asMap()

                SVNPropertyValue propValue = properties.getPropertyValue(myPropName);
                if (propValue != null) {
                    myPropHandler.handleProperty(path, new SVNPropertyData(myPropName, propValue, getOptions()));
                }
            } else {
                SVNProperties allProps = properties.asMap();
                for (Iterator names = allProps.nameSet().iterator(); names.hasNext();) {
                    String name = (String) names.next();
                    SVNPropertyValue val = allProps.getSVNPropertyValue(name);
                    myPropHandler.handleProperty(path, new SVNPropertyData(name, val, getOptions()));
                }
View Full Code Here

Examples of org.geotools.metadata.iso.citation.CitationImpl.asMap()

        assertEquals("Metadata with two values.", ISBN.hashCode() + title.hashCode(), hashCode);
        assertTrue(set.add(title));
        assertEquals("Expected Metadata.hashCode() == Set.hashCode().", set.hashCode(), hashCode);
        assertEquals("CitationsImpl.hashCode() should delegate.", hashCode, citation.hashCode());

        final Collection<Object> values = citation.asMap().values();
        assertEquals(hashCode, new HashSet<Object>(values).hashCode());
        assertTrue(values.containsAll(set));
        assertTrue(set.containsAll(values));
    }
}
View Full Code Here

Examples of org.graylog2.dashboards.Dashboard.asMap()

        restrictToMaster();
        checkPermission(RestPermissions.DASHBOARDS_READ, dashboardId);

        try {
            Dashboard dashboard = dashboardService.load(dashboardId);
            return json(dashboard.asMap());
        } catch (org.graylog2.database.NotFoundException e) {
            throw new WebApplicationException(404);
        }
    }
View Full Code Here

Examples of org.graylog2.plugin.inputs.MessageInput.asMap()

        if (input == null) {
            LOG.info("Input [{}] not found.", inputId);
            throw new NotFoundException();
        }

        return json(input.asMap());

    }

    @POST
    @Timed
View Full Code Here

Examples of org.graylog2.savedsearches.SavedSearch.asMap()

        }
        checkPermission(RestPermissions.SAVEDSEARCHES_READ, searchId);

        try {
            SavedSearch search = savedSearchService.load(searchId);
            return json(search.asMap());
        } catch (org.graylog2.database.NotFoundException e) {
            throw new WebApplicationException(404);
        }
    }
View Full Code Here

Examples of org.jboss.arquillian.warp.impl.client.proxy.RealURLToProxyURLMapping.asMap()

                content.readBytes(data);

                String responseToTransform = createStringFromData(data, charset);
                RealURLToProxyURLMapping mapping = realToProxyURLMappingInst.get();

                for (Map.Entry<URL, URL> entry : mapping.asMap().entrySet()) {
                    String realUrl = entry.getKey().toExternalForm();
                    String proxyUrl = entry.getValue().toExternalForm();

                    int urlStart = responseToTransform.indexOf(realUrl);
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.