Package org.structr.core.graph

Examples of org.structr.core.graph.NodeInterface


    boolean allLocatablesAreValid = false;

    for(RelationshipInterface rel : this.getRelationships(NodeHasLocation.class)) {

      NodeInterface otherNode = rel.getOtherNode(this);
      if(otherNode != null && otherNode instanceof Locatable) {

        // notify other node of location change
        allLocatablesAreValid |= !((Locatable)otherNode).locationChanged();
      }
View Full Code Here


          // do migration of our own ID properties (and only our own!)
          if (node.hasProperty("uuid") && node.getProperty("uuid") instanceof String && !node.hasProperty("id")) {

            try {
              final NodeInterface nodeInterface = nodeFactory.instantiate(node);
              final String uuid = nodeInterface.getProperty(uuidProperty);

              if (uuid != null) {

                nodeInterface.setProperty(GraphObject.id, uuid);
                nodeInterface.removeProperty(uuidProperty);
                actualNodeCount++;
                hasChanges = true;
              }

            } catch (Throwable t) {
View Full Code Here

  public PropertyMap getGroupedProperties(SecurityContext securityContext, GraphObject source) {

    if(source instanceof RelationshipInterface) {

      RelationshipInterface rel = (RelationshipInterface)source;
      NodeInterface end         = rel.getTargetNode();

      return super.getGroupedProperties(securityContext, end);
    }

    return null;
View Full Code Here

TOP

Related Classes of org.structr.core.graph.NodeInterface

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.