Examples of nodeQuery()


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

          final App app = StructrApp.getInstance(securityContext);


          if (exactMatch) {

            Result<AbstractNode> result = app.nodeQuery(collectionProperty.relatedType()).and(notion.getPrimaryPropertyKey(), searchValue).getResult();

            for (AbstractNode node : result.getResults()) {

              switch (occur) {
View Full Code Here

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

              }
            }

          } else {

            Result<AbstractNode> result = app.nodeQuery(collectionProperty.relatedType(), false).and(notion.getPrimaryPropertyKey(), searchValue, false).getResult();

            // loose search behaves differently, all results must be combined
            for (AbstractNode node : result.getResults()) {

              intersectionResult.addAll(collectionProperty.getRelatedNodesReverse(securityContext, node, declaringClass, predicate));
View Full Code Here

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

    final App app = StructrApp.getInstance();



    final Query<Principal> query = app.nodeQuery(Principal.class).and(key, value);

    try {
      return query.getFirst();

    } catch (FrameworkException fex) {
View Full Code Here

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

   * @param sessionId
   */
  public static void clearSession(final String sessionId) {

    final App app = StructrApp.getInstance();
    final Query<Principal> query = app.nodeQuery(Principal.class).and(Principal.sessionIds, new String[]{ sessionId });

    try {
      List<Principal> principals = query.getAsList();

      for (Principal p : principals) {
View Full Code Here

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

          attributesComplete &= attributes.containsKey(key);
        }
       
        if (attributesComplete) {
         
          result = app.nodeQuery(type).and(attributes).getResult();
         
        }
      }

      // just check for existance
View Full Code Here

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

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

      exportToStream(
        new FileOutputStream(fileName),
        app.nodeQuery(NodeInterface.class).getAsList(),
        app.relationshipQuery(RelationshipInterface.class).getAsList(),
        null,
        includeFiles
      );
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.