Package org.exoplatform.services.jcr.impl.core.nodetype

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


    * {@inheritDoc}
    */
   public NodeTypeManager getNodeTypeManager() throws RepositoryException
   {
      // incl Session mapping
      return new NodeTypeManagerImpl(session.getLocationFactory(), session.getValueFactory(), nodeTypeManager, session
         .getTransientNodesManager());
   }
View Full Code Here


   }

   public void testCloneWithMixin() throws RepositoryException
   {
      Session session2 = repository.login(credentials, "ws2");
      NodeTypeManagerImpl ntManager = (NodeTypeManagerImpl)session2.getWorkspace().getNodeTypeManager();
      ntManager.registerNodeType(createTestMixinValue(), 0);

      Node root = session2.getRootNode();
      Node node = root.addNode("clonedNode", "nt:base");
      node.addMixin("mix:referenceable");
      session2.save();
View Full Code Here

   }

   public void testCloneWithMixinAndRemoveExisting() throws RepositoryException
   {
      Session session2 = repository.login(credentials, "ws2");
      NodeTypeManagerImpl ntManager = (NodeTypeManagerImpl)session2.getWorkspace().getNodeTypeManager();
      ntManager.registerNodeType(createTestMixinValue(), 0);

      Node root = session2.getRootNode();
      Node node = root.addNode("clonedNode1", "nt:base");
      node.addMixin("mix:referenceable");
      session2.save();
View Full Code Here

      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

   public void initRepository() throws RepositoryException
   {
      super.initRepository();
      if (!isInitialized)
      {
         NodeTypeManagerImpl ntManager = (NodeTypeManagerImpl)session.getWorkspace().getNodeTypeManager();
         InputStream is = TestDocumentViewImport.class.getResourceAsStream("/nodetypes/ext-registry-nodetypes.xml");
         ntManager.registerNodeTypes(is, 0, NodeTypeDataManager.TEXT_XML);
         ntManager.registerNodeTypes(TestDocumentViewImport.class
            .getResourceAsStream("/org/exoplatform/services/jcr/api/nodetypes/ecm/nodetypes-config.xml"), 0,
            NodeTypeDataManager.TEXT_XML);
         ntManager.registerNodeTypes(TestDocumentViewImport.class
            .getResourceAsStream("/org/exoplatform/services/jcr/api/nodetypes/ecm/nodetypes-config-extended.xml"), 0,
            NodeTypeDataManager.TEXT_XML);

         isInitialized = true;
      }
View Full Code Here

      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

      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

    * {@inheritDoc}
    */
   public NodeTypeManager getNodeTypeManager() throws RepositoryException
   {
      // incl Session mapping
      return new NodeTypeManagerImpl(session.getLocationFactory(), session.getValueFactory(), nodeTypeManager, session
         .getTransientNodesManager());
   }
View Full Code Here

      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

    * {@inheritDoc}
    */
   public NodeTypeManager getNodeTypeManager() throws RepositoryException
   {
      // incl Session mapping
      return new NodeTypeManagerImpl(session.getLocationFactory(), session.getValueFactory(), nodeTypeManager, session
         .getTransientNodesManager());
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.impl.core.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.