Package org.structr.core.entity

Examples of org.structr.core.entity.AbstractNode


      props.put(lat, 50.12284d);
      props.put(lon, 8.73923d);
      props.put(AbstractNode.name, "TestSeven-0");

      AbstractNode node = createTestNode(type, props);

      try (final Tx tx = app.tx()) {
       
        Result result = app.nodeQuery(type).location("Hanauer Landstraße", "200", "60314", "Frankfurt", "Germany", 10.0).includeDeletedAndHidden().getResult();
View Full Code Here


      final PropertyKey key = AbstractNode.name;
      final String name     = "89w3hkl sdfghsdkljth";

      props.put(key, name);

      final AbstractNode node = createTestNode(TestOne.class, props);

      try (final Tx tx = app.tx()) {
       
        Result result = app.nodeQuery(TestOne.class).andName(name).includeDeletedAndHidden().getResult();
View Full Code Here

      final PropertyKey key = AbstractNode.name;
      final String name     = "89w3hkl sdfghsdkljth";

      props.put(key, name);

      final AbstractNode node = createTestNode(TestOne.class, props);

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

        Result result = app.nodeQuery(TestOne.class).andName(name).includeDeletedAndHidden().getResult();
View Full Code Here

  public void test09SearchByEmptyStringField() {

    try {

      PropertyMap props = new PropertyMap();
      AbstractNode node = createTestNode(TestOne.class, props);

      try (final Tx tx = app.tx()) {
       
        Result result = app.nodeQuery(TestOne.class).and(TestOne.aString, null).includeDeletedAndHidden().getResult();
View Full Code Here

  public void test10SearchByEmptyDateField() {

    try {

      PropertyMap props     = new PropertyMap();
      AbstractNode node = createTestNode(TestOne.class, props);

      try (final Tx tx = app.tx()) {
       
        Result result = app.nodeQuery(TestOne.class).and(TestOne.aDate, null).includeDeletedAndHidden().getResult();
View Full Code Here

  public void test11SearchByEmptyIntField() {

    try {

      PropertyMap props     = new PropertyMap();
      AbstractNode node = createTestNode(TestOne.class, props);

      try (final Tx tx = app.tx()) {
       
        Result result = app.nodeQuery(TestOne.class).and(TestOne.anInt, null).includeDeletedAndHidden().getResult();
View Full Code Here

  public void test12SearchByEmptyLongField() {

    try {
     
      PropertyMap props     = new PropertyMap();
      AbstractNode node = createTestNode(TestOne.class, props);

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

        Result result = app.nodeQuery(TestOne.class).and(TestOne.aLong, null).includeDeletedAndHidden().getResult();
View Full Code Here

  public void test13SearchByEmptyDoubleField() {

    try {
     
      PropertyMap props = new PropertyMap();
      AbstractNode node = createTestNode(TestOne.class, props);

      try (final Tx tx = app.tx()) {
       
        Result result = app.nodeQuery(TestOne.class).and(TestOne.aDouble, null).includeDeletedAndHidden().getResult();
        assertTrue(result.size() == 1);
View Full Code Here

      return;

    }

    // check if parent node with given ID exists
    AbstractNode parentNode = getNode(parentId);

    if (parentNode == null) {

      getWebSocket().send(MessageBuilder.status().code(404).message("Parent node not found").build(), true);
View Full Code Here

      // determine which of the nodes have no incoming CONTAINS relationships and no page id
      for (GraphObject obj : resultList) {

        if (obj instanceof AbstractNode) {

          AbstractNode node = (AbstractNode) obj;

          if (!node.hasIncomingRelationships(DOMChildren.class) && node.getProperty(DOMNode.ownerDocument) == null && !(node instanceof ShadowDocument)) {

            filteredResults.add(node);
          }

        }
View Full Code Here

TOP

Related Classes of org.structr.core.entity.AbstractNode

Copyright © 2018 www.massapicom. 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.