use of org.codice.ddf.admin.sources.wfs.WfsFieldProvider 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());
}
Aggregations