Examples of registerNodeType()


Examples of org.exoplatform.services.jcr.core.nodetype.ExtendedNodeTypeManager.registerNodeType()

      List<NodeDefinitionValue> childNodeDefinitions = new ArrayList<NodeDefinitionValue>();
      childNodeDefinitions.add(childNodeDefinitionValue);
      childNodeDefinitionValue.setOnVersion(OnParentVersionAction.VERSION);
      exoTaxonomy.setDeclaredChildNodeDefinitionValues(childNodeDefinitions);

      manager.registerNodeType(exoTaxonomy, ExtendedNodeTypeManager.IGNORE_IF_EXISTS);
   }

   protected String getRepositoryName()
   {
      return null;
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.nodetype.NodeTypeManagerImpl.registerNodeType()

   }

   public void testAddCustomMixinAfterNodeSave() throws Exception
   {
      NodeTypeManagerImpl ntManager = (NodeTypeManagerImpl)session.getWorkspace().getNodeTypeManager();
      ntManager.registerNodeType(createTestMixinValue(), 0);

      Node node = root.addNode("testAddCustomMixinAfterNodeSave", "nt:base");
      root.save();
      node.addMixin("exo:myMixin");
      assertEquals("myTestProp", node.getMixinNodeTypes()[0].getPropertyDefinitions()[0].getName());
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.