Package org.structr.core.app

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


                it.remove();
              }
            }
           
            // create node and return it
            T newNode = app.create(type, attributes);
            if (newNode != null) {

              // test set notion attributes for relationship creation
              Map<String, PropertyMap> notionPropertyMap = (Map<String, PropertyMap>)securityContext.getAttribute("notionProperties");
              if (notionPropertyMap == null) {
View Full Code Here


            // only the first supertype is supported
            propertyMap.put(SchemaNode.extendsClass, typeInfo.getSuperclass(reducedTypeInfoMap));
          }

          // create schema node
          schemaNodes.put(type, app.create(SchemaNode.class, propertyMap));
        }
      }

      // create relationships
      for (final RelationshipInfo template : reducedRelationshipInfos) {
View Full Code Here

        propertyMap.put(SchemaRelationship.sourceId, startNode.getUuid());
        propertyMap.put(SchemaRelationship.targetId, endNode.getUuid());
        propertyMap.put(SchemaRelationship.relationshipType, relationshipType);

        app.create(startNode, endNode, SchemaRelationship.class, propertyMap);
      }


      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.