Package org.apache.jackrabbit.jcr2spi.nodetype

Examples of org.apache.jackrabbit.jcr2spi.nodetype.NodeTypeManagerImpl


        // build ValueFactory
        valueFactory = new ValueFactoryQImpl(config.getRepositoryService().getQValueFactory(), npResolver);

        // build nodetype manager
        ntManager = new NodeTypeManagerImpl(workspace.getNodeTypeRegistry(), this);
        validator = new ItemStateValidator(this, getPathFactory());

        itemStateManager = createSessionItemStateManager(workspace.getUpdatableItemStateManager(), workspace.getItemStateFactory());
        HierarchyManager hMgr = getHierarchyManager();
        itemManager = createItemManager(hMgr);
View Full Code Here


        if (ntName.equals(getPrimaryNodeTypeName())) {
            log.debug("Changing the primary type has no effect: '" + nodeTypeName + "' already is the primary node type.");
            return;
        }

        NodeTypeManagerImpl ntMgr = session.getNodeTypeManager();
        NodeType nt = ntMgr.getNodeType(ntName);
        if (nt.isMixin() || nt.isAbstract()) {
            throw new ConstraintViolationException("Cannot change the primary type: '" + nodeTypeName + "' is a mixin type or abstract.");
        }

        // perform the operation
View Full Code Here

     * @throws NoSuchNodeTypeException
     * @throws ConstraintViolationException
     */
    private boolean canAddMixin(Name mixinName) throws NoSuchNodeTypeException,
        ConstraintViolationException {
        NodeTypeManagerImpl ntMgr = session.getNodeTypeManager();

        // first check characteristics of each mixin
        NodeType mixin = ntMgr.getNodeType(mixinName);
        if (!mixin.isMixin()) {
            log.error(mixin.getName() + ": not a mixin node type");
            return false;
        }

View Full Code Here

        if (ntName.equals(getPrimaryNodeTypeName())) {
            log.debug("Changing the primary type has no effect: '" + nodeTypeName + "' already is the primary node type.");
            return;
        }

        NodeTypeManagerImpl ntMgr = session.getNodeTypeManager();
        NodeType nt = ntMgr.getNodeType(ntName);
        if (nt.isMixin() || nt.isAbstract()) {
            throw new ConstraintViolationException("Cannot change the primary type: '" + nodeTypeName + "' is a mixin type or abstract.");
        }
       
        // perform the operation
View Full Code Here

     * @throws NoSuchNodeTypeException
     * @throws ConstraintViolationException
     */
    private boolean canAddMixin(Name mixinName) throws NoSuchNodeTypeException,
        ConstraintViolationException {
        NodeTypeManagerImpl ntMgr = session.getNodeTypeManager();

        // first check characteristics of each mixin
        NodeType mixin = ntMgr.getNodeType(mixinName);
        if (!mixin.isMixin()) {
            log.error(mixin.getName() + ": not a mixin node type");
            return false;
        }

View Full Code Here

        // build ValueFactory
        valueFactory = new ValueFactoryQImpl(config.getRepositoryService().getQValueFactory(), npResolver);

        // build nodetype manager
        ntManager = new NodeTypeManagerImpl(workspace.getNodeTypeRegistry(), this);
        validator = new ItemStateValidator(this, getPathFactory());

        itemStateManager = createSessionItemStateManager(workspace.getUpdatableItemStateManager(), workspace.getItemStateFactory());
        HierarchyManager hMgr = getHierarchyManager();
        itemManager = createItemManager(hMgr);
View Full Code Here

        if (ntName.equals(getPrimaryNodeTypeName())) {
            log.debug("Changing the primary type has no effect: '" + nodeTypeName + "' already is the primary node type.");
            return;
        }

        NodeTypeManagerImpl ntMgr = session.getNodeTypeManager();
        NodeType nt = ntMgr.getNodeType(ntName);
        if (nt.isMixin() || nt.isAbstract()) {
            throw new ConstraintViolationException("Cannot change the primary type: '" + nodeTypeName + "' is a mixin type or abstract.");
        }

        // perform the operation
View Full Code Here

     * @throws NoSuchNodeTypeException
     * @throws ConstraintViolationException
     */
    private boolean canAddMixin(Name mixinName) throws NoSuchNodeTypeException,
        ConstraintViolationException {
        NodeTypeManagerImpl ntMgr = session.getNodeTypeManager();

        // first check characteristics of each mixin
        NodeType mixin = ntMgr.getNodeType(mixinName);
        if (!mixin.isMixin()) {
            log.error(mixin.getName() + ": not a mixin node type");
            return false;
        }

View Full Code Here

        // build ValueFactory
        valueFactory = new ValueFactoryQImpl(config.getRepositoryService().getQValueFactory(), npResolver);

        // build nodetype manager
        ntManager = new NodeTypeManagerImpl(workspace.getNodeTypeRegistry(), this);
        validator = new ItemStateValidator(this, getPathFactory());

        itemStateManager = createSessionItemStateManager(workspace.getUpdatableItemStateManager(), workspace.getItemStateFactory());
        HierarchyManager hMgr = getHierarchyManager();
        itemManager = createItemManager(hMgr);
View Full Code Here

        if (ntName.equals(getPrimaryNodeTypeName())) {
            log.debug("Changing the primary type has no effect: '" + nodeTypeName + "' already is the primary node type.");
            return;
        }

        NodeTypeManagerImpl ntMgr = session.getNodeTypeManager();
        NodeType nt = ntMgr.getNodeType(ntName);
        if (nt.isMixin() || nt.isAbstract()) {
            throw new ConstraintViolationException("Cannot change the primary type: '" + nodeTypeName + "' is a mixin type or abstract.");
        }
       
        // perform the operation
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.jcr2spi.nodetype.NodeTypeManagerImpl

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.