Examples of relationshipQuery()


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

      if (entityClass != null) {

        if (AbstractRelationship.class.isAssignableFrom(entityClass)) {

          searchCommandType = SearchRelationshipCommand.class;
          query             = app.relationshipQuery(entityClass, !inexactSearch);
          isNode            = false;
          return true;

        } else {
View Full Code Here

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

          if (isFalseOrNull(node.getProperty(SchemaNode.isBuiltinType))) {
            tms.getExportSet().add(node);
          }
        }

        for (final SchemaRelationship rel : app.relationshipQuery(SchemaRelationship.class).getAsList()) {
          tms.getExportSet().add(rel);
        }

        // push schema
        CloudService.doRemote(tms, new WebsocketProgressListener(getWebSocket(), key));
View Full Code Here

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

      // try node first, then relationship
      Syncable syncable = (Syncable)app.nodeQuery().and(GraphObject.id, rootNodeId).includeDeletedAndHidden().getFirst();
      if (syncable == null) {

        syncable = (Syncable)app.relationshipQuery().and(GraphObject.id, rootNodeId).includeDeletedAndHidden().getFirst();
      }

      if (syncable != null) {

        final ExportSet exportSet = ExportSet.getInstance(syncable, recursive);
View Full Code Here

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

    final App app = StructrApp.getInstance();
   
    GraphObject entity = app.nodeQuery().uuid(uuid).getFirst();
    if (entity == null) {
     
      entity = app.relationshipQuery().uuid(uuid).getFirst();
    }

    if (entity == null) {
      throw new NotFoundException();
    }
View Full Code Here

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

        // make file visible for auth. users
        file.setProperty(File.visibleToAuthenticatedUsers, true);

        // Don't include files
        SyncCommand.exportToStream(file.getOutputStream(), app.nodeQuery(NodeInterface.class).getAsList(), app.relationshipQuery(RelationshipInterface.class).getAsList(), null, false);

        tx.success();
      }

    } catch (Throwable t) {
View Full Code Here

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

    try (final Tx tx = app.tx()) {

      exportToStream(
        new FileOutputStream(fileName),
        app.nodeQuery(NodeInterface.class).getAsList(),
        app.relationshipQuery(RelationshipInterface.class).getAsList(),
        null,
        includeFiles
      );

      tx.success();
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.