Examples of NodeTypeManagerImpl


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

     * @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

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

        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

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

     * @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

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

Examples of org.apache.jackrabbit.oak.jcr.nodetype.NodeTypeManagerImpl

    public WorkspaceImpl(SessionContext sessionContext, NamespaceRegistry nsRegistry)
            throws RepositoryException {

        this.sessionContext = sessionContext;
        this.nsRegistry = nsRegistry;
        this.nodeTypeManager = new NodeTypeManagerImpl(sessionContext.getNamePathMapper());
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.type.NodeTypeManagerImpl

        };
    }

    @Override
    public NodeTypeManager getNodeTypeManager() {
        return new NodeTypeManagerImpl(
                sessionDelegate.getContentSession(),
                sessionDelegate.getNamePathMapper(),
                sessionDelegate.getValueFactory());
    }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.nodetype.NodeTypeManagerImpl

      List<ItemState> deletes = new ArrayList<ItemState>();

      boolean fireEvent = !isNew(itemData.getIdentifier());

      NodeTypeManagerImpl ntManager = (NodeTypeManagerImpl)session.getWorkspace().getNodeTypeManager();

      // if node mix:versionable vs will be removed from Item.remove method.
      boolean checkRemoveChildVersionStorages = false;
      if (itemData.isNode())
      {
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.nodetype.NodeTypeManagerImpl

      List<ItemState> deletes = new ArrayList<ItemState>();

      boolean fireEvent = !isNew(itemData.getIdentifier());

      NodeTypeManagerImpl ntManager = (NodeTypeManagerImpl)session.getWorkspace().getNodeTypeManager();

      // if node mix:versionable vs will be removed from Item.remove method.
      boolean checkRemoveChildVersionStorages = false;
      if (itemData.isNode())
      {
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.nodetype.NodeTypeManagerImpl

      List<ItemState> deletes = new ArrayList<ItemState>();

      boolean fireEvent = !isNew(itemData.getIdentifier());

      NodeTypeManagerImpl ntManager = (NodeTypeManagerImpl)session.getWorkspace().getNodeTypeManager();

      // if node mix:versionable vs will be removed from Item.remove method.
      boolean checkRemoveChildVersionStorages = false;
      if (itemData.isNode())
      {
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.nodetype.NodeTypeManagerImpl

      List<ItemState> deletes = new ArrayList<ItemState>();

      boolean fireEvent = !isNew(itemData.getIdentifier());

      NodeTypeManagerImpl ntManager = (NodeTypeManagerImpl)session.getWorkspace().getNodeTypeManager();

      // if node mix:versionable vs will be removed from Item.remove method.
      boolean checkRemoveChildVersionStorages = false;
      if (itemData.isNode())
      {
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.