Package javax.jcr.nodetype

Examples of javax.jcr.nodetype.NodeTypeDefinition


            String baseType, boolean isMixin)
            throws RepositoryException {
        NodeTypeManager ntm = session.getWorkspace().getNodeTypeManager();
        NodeTypeTemplate ntt = ntm.createNodeTypeTemplate();
        if (baseType != null) {
            NodeTypeDefinition ntd = ntm.getNodeType(baseType);
            ntt = ntm.createNodeTypeTemplate(ntd);
        }

        if ((superTypes != null) && (superTypes.length != 0)) {
            ntt.setDeclaredSuperTypeNames(superTypes);
View Full Code Here


        Node n = root.addNode("q1", "nt:query");
        n.setProperty("jcr:statement", vf.createValue("statement"));
        session.save();

        NodeTypeDefinition ntd = manager.getNodeType("nt:query");
        NodeTypeTemplate ntt = manager.createNodeTypeTemplate(ntd);

        try {
            manager.registerNodeType(ntt, true);
            // no changes to the type, so the registration should be a no-op
View Full Code Here

        Node n = root.addNode("q1", "nt:query");
        n.setProperty("jcr:statement", vf.createValue("statement"));
        session.save();

        NodeTypeDefinition ntd = manager.getNodeType("nt:query");
        NodeTypeTemplate ntt = manager.createNodeTypeTemplate(ntd);

        try {
            manager.registerNodeType(ntt, true);
            // no changes to the type, so the registration should be a no-op
View Full Code Here

TOP

Related Classes of javax.jcr.nodetype.NodeTypeDefinition

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.