Package org.chromattic.core.jcr

Examples of org.chromattic.core.jcr.NodeDef


      //
      HashSet<String> mixinNames = new HashSet<String>();
      for (String mixinName : typeMapping.getMixinNames()) {
        mixinNames.add(mixinName);
      }
      NodeDef nodeDef = new NodeDef(typeMapping.getNodeTypeName(), mixinNames);

      //
      TypeMapper mapper = new TypeMapper(
        (Class<?>)typeMapping.getObjectClass().getType(),
        propertyMappers,
View Full Code Here


      log.error(msg);
      throw new IllegalArgumentException(msg);
    }

    //
    NodeDef nodeDef = ctx.mapper.getNodeDef();
    log.trace("Setting context {} for insertion", ctx);
    log.trace("Adding node for context {} and node type {}", ctx, nodeDef);
    Node node = sessionWrapper.addNode(relPath, nodeDef);
    nodeAdded(node, ctx);
    String id = node.getUUID();
View Full Code Here

      log.error(msg);
      throw new DuplicateNameException(msg);
    }

    //
    NodeDef nodeDef = childCtx.mapper.getNodeDef();
    log.trace("Setting context {} for insertion", childCtx);
    log.trace("Adding node for context {} and node type {} as child of context {}", childCtx, nodeDef, parentCtx);

    //
    Node childNode = sessionWrapper.addNode(parentNode, relPath, nodeDef);
View Full Code Here

TOP

Related Classes of org.chromattic.core.jcr.NodeDef

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.