Package org.apache.lenya.cms.authoring

Examples of org.apache.lenya.cms.authoring.NodeCreatorInterface


                    if (schemaConf != null) {
                        String schemaFileName = schemaConf.getAttribute(SRC_ATTRIBUTE);
                        type.setSchemaDefinition(schemaFileName);
                    }

                    NodeCreatorInterface creator;
                    Configuration creatorConf = doctypeConf.getChild(CREATOR_ELEMENT, false);

                    if (creatorConf != null) {
                        String creatorClassName = creatorConf.getAttribute(SRC_ATTRIBUTE);
                        Class creatorClass = Class.forName(creatorClassName);
                        creator = (NodeCreatorInterface) creatorClass.newInstance();
                        creator.init(creatorConf, manager, getLogger());
                    } else {
                        creator = new DefaultBranchCreator();
                    }

                    type.setCreator(creator);
View Full Code Here


                getLogger().debug("    nav title:    [" + navigationTitle + "]");
                getLogger().debug("    contents URI: [" + initialContentsURI + "]");
            }

            // look up creator for documents of this type
            NodeCreatorInterface creator = documentType.getCreator();

            // now that the source is determined, lock involved nodes
            Transactionable[] nodes = document.getRepositoryNodes();
            for (int i = 0; i < nodes.length; i++) {
                nodes[i].lock();
            }

            //
            creator.create(initialContentsURI, document, parameters);
        } catch (Exception e) {
            throw new DocumentBuildException("call to creator for new document failed", e);
        }

        // Write Lenya-internal meta-data
View Full Code Here

TOP

Related Classes of org.apache.lenya.cms.authoring.NodeCreatorInterface

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.