Package org.structr.core.app

Examples of org.structr.core.app.App.command()


  }

  public static void importCypher(final List<String> sources) throws FrameworkException {

    final App app                      = StructrApp.getInstance();
    final GraphDatabaseService graphDb = app.command(GraphDatabaseCommand.class).execute();
    final ExecutionEngine engine       = new ExecutionEngine(graphDb, new BufferingLogger());

    // nothing to do
    if (sources.isEmpty()) {
      return;
View Full Code Here


  }

  public static void analyzeSchema() throws FrameworkException {

    final App app                                     = StructrApp.getInstance();
    final GraphDatabaseService graphDb                = app.command(GraphDatabaseCommand.class).execute();
    final NodeServiceCommand nodeServiceCommand       = app.command(CreateNodeCommand.class);
    final ConfigurationProvider configuration         = Services.getInstance().getConfigurationProvider();
    final Set<NodeInfo> nodeTypes                     = new LinkedHashSet<>();
    final Map<Long, TypeInfo> nodeTypeInfoMap         = new LinkedHashMap<>();
    final Set<RelationshipInfo> relationships         = new LinkedHashSet<>();
View Full Code Here

  public static void analyzeSchema() throws FrameworkException {

    final App app                                     = StructrApp.getInstance();
    final GraphDatabaseService graphDb                = app.command(GraphDatabaseCommand.class).execute();
    final NodeServiceCommand nodeServiceCommand       = app.command(CreateNodeCommand.class);
    final ConfigurationProvider configuration         = Services.getInstance().getConfigurationProvider();
    final Set<NodeInfo> nodeTypes                     = new LinkedHashSet<>();
    final Map<Long, TypeInfo> nodeTypeInfoMap         = new LinkedHashMap<>();
    final Set<RelationshipInfo> relationships         = new LinkedHashSet<>();
    final Map<String, SchemaNode> schemaNodes         = new LinkedHashMap<>();
View Full Code Here

      tx.success();
    }

    // rebuild index
    app.command(BulkRebuildIndexCommand.class).execute(Collections.EMPTY_MAP);
  }

  // ----- private static methods -----
  private static void identifyCommonBaseClasses(final Set<NodeInfo> nodeTypes, final Map<NodeInfo, List<Node>> nodeMap, final List<TypeInfo> typeInfos) {
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.