Search in sources :

Example 1 with OpenSearchFieldProvider

use of org.codice.ddf.admin.sources.opensearch.OpenSearchFieldProvider in project admin-console-beta by connexta.

the class SchemaGenerator method main.

public static void main(String[] args) throws IOException, URISyntaxException {
    GraphQLServletImpl servlet = new GraphQLServletImpl();
    final List<FieldProvider> GRAPHQL_PROVIDERS = ImmutableList.of(new StsFieldProvider(new ConfiguratorFactoryImpl()), new ConnectionFieldProvider(), new LdapFieldProvider(new ConfiguratorFactoryImpl()), new WcpmFieldProvider(new ConfiguratorFactoryImpl()), new CswFieldProvider(new ConfiguratorFactoryImpl()), new WfsFieldProvider(new ConfiguratorFactoryImpl()), new OpenSearchFieldProvider(new ConfiguratorFactoryImpl()));
    servlet.setFieldProviders(GRAPHQL_PROVIDERS);
    String schemaResult = servlet.executeQuery(IntrospectionQuery.INTROSPECTION_QUERY);
    Files.write(Paths.get(System.getProperty("target.path"), "schema.json"), schemaResult == null ? "".getBytes() : schemaResult.getBytes());
}
Also used : StsFieldProvider(org.codice.ddf.admin.security.sts.StsFieldProvider) LdapFieldProvider(org.codice.ddf.admin.ldap.LdapFieldProvider) WcpmFieldProvider(org.codice.ddf.admin.security.wcpm.WcpmFieldProvider) CswFieldProvider(org.codice.ddf.admin.sources.csw.CswFieldProvider) ConnectionFieldProvider(org.codice.ddf.admin.utils.conn.ConnectionFieldProvider) WfsFieldProvider(org.codice.ddf.admin.sources.wfs.WfsFieldProvider) StsFieldProvider(org.codice.ddf.admin.security.sts.StsFieldProvider) ConnectionFieldProvider(org.codice.ddf.admin.utils.conn.ConnectionFieldProvider) LdapFieldProvider(org.codice.ddf.admin.ldap.LdapFieldProvider) CswFieldProvider(org.codice.ddf.admin.sources.csw.CswFieldProvider) WfsFieldProvider(org.codice.ddf.admin.sources.wfs.WfsFieldProvider) WcpmFieldProvider(org.codice.ddf.admin.security.wcpm.WcpmFieldProvider) FieldProvider(org.codice.ddf.admin.api.FieldProvider) OpenSearchFieldProvider(org.codice.ddf.admin.sources.opensearch.OpenSearchFieldProvider) ConfiguratorFactoryImpl(org.codice.ddf.admin.configurator.impl.ConfiguratorFactoryImpl) OpenSearchFieldProvider(org.codice.ddf.admin.sources.opensearch.OpenSearchFieldProvider)

Aggregations

FieldProvider (org.codice.ddf.admin.api.FieldProvider)1 ConfiguratorFactoryImpl (org.codice.ddf.admin.configurator.impl.ConfiguratorFactoryImpl)1 LdapFieldProvider (org.codice.ddf.admin.ldap.LdapFieldProvider)1 StsFieldProvider (org.codice.ddf.admin.security.sts.StsFieldProvider)1 WcpmFieldProvider (org.codice.ddf.admin.security.wcpm.WcpmFieldProvider)1 CswFieldProvider (org.codice.ddf.admin.sources.csw.CswFieldProvider)1 OpenSearchFieldProvider (org.codice.ddf.admin.sources.opensearch.OpenSearchFieldProvider)1 WfsFieldProvider (org.codice.ddf.admin.sources.wfs.WfsFieldProvider)1 ConnectionFieldProvider (org.codice.ddf.admin.utils.conn.ConnectionFieldProvider)1