Examples of findNodeType()


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

      ExtendedNodeTypeManager nodeTypeManager = (ExtendedNodeTypeManager)session.getWorkspace().getNodeTypeManager();
      NodeType[] mixinNodeTypes = new NodeType[nodeData().getMixinTypeNames().length];
      for (int i = 0; i < mixinNodeTypes.length; i++)
      {
         mixinNodeTypes[i] = nodeTypeManager.findNodeType(nodeData().getMixinTypeNames()[i]);
      }

      return mixinNodeTypes;
   }
View Full Code Here

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

   public NodeType getPrimaryNodeType() throws RepositoryException
   {
      checkValid();

      ExtendedNodeTypeManager nodeTypeManager = (ExtendedNodeTypeManager)session.getWorkspace().getNodeTypeManager();
      return nodeTypeManager.findNodeType(nodeData().getPrimaryTypeName());
   }

   /**
    * {@inheritDoc}
    */
 
View Full Code Here

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

            else
               defaultValues[i] = valueFactory.createValue(propVal[i], propertyDef.getRequiredType());
         }
      }

      return new PropertyDefinitionImpl(name, nodeTypeManager.findNodeType(propertyDef.getDeclaringNodeType()),
               propertyDef.getRequiredType(), propertyDef.getValueConstraints(), defaultValues, propertyDef
                        .isAutoCreated(), propertyDef.isMandatory(), propertyDef.getOnParentVersion(), propertyDef
                        .isProtected(), propertyDef.isMultiple());

   }
View Full Code Here

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

            // TODO same functionality in NodeTypeImpl
            InternalQName[] rnames = definition.getRequiredPrimaryTypes();
            NodeType[] rnts = new NodeType[rnames.length];
            for (int j = 0; j < rnames.length; j++)
            {
               rnts[j] = nodeTypeManager.findNodeType(rnames[j]);
            }

            String name =
                     locationFactory.createJCRName(
                              definition.getName() != null ? definition.getName() : Constants.JCR_ANY_NAME)
View Full Code Here

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

            String name =
                     locationFactory.createJCRName(
                              definition.getName() != null ? definition.getName() : Constants.JCR_ANY_NAME)
                              .getAsString();
            NodeType defType =
                     definition.getDefaultPrimaryType() != null ? nodeTypeManager.findNodeType(definition
                              .getDefaultPrimaryType()) : null;
            NodeType declaringNodeType = nodeTypeManager.findNodeType(definition.getDeclaringNodeType());
            nodeDefinition =
                     new NodeDefinitionImpl(name, declaringNodeType, rnts, defType, definition.isAutoCreated(),
                              definition.isMandatory(), definition.getOnParentVersion(), definition.isProtected(),
View Full Code Here

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

                              definition.getName() != null ? definition.getName() : Constants.JCR_ANY_NAME)
                              .getAsString();
            NodeType defType =
                     definition.getDefaultPrimaryType() != null ? nodeTypeManager.findNodeType(definition
                              .getDefaultPrimaryType()) : null;
            NodeType declaringNodeType = nodeTypeManager.findNodeType(definition.getDeclaringNodeType());
            nodeDefinition =
                     new NodeDefinitionImpl(name, declaringNodeType, rnts, defType, definition.isAutoCreated(),
                              definition.isMandatory(), definition.getOnParentVersion(), definition.isProtected(),
                              definition.isAllowsSameNameSiblings());
         }
View Full Code Here

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

      ExtendedNodeTypeManager nodeTypeManager = (ExtendedNodeTypeManager) session.getWorkspace().getNodeTypeManager();
      NodeType[] mixinNodeTypes = new NodeType[nodeData().getMixinTypeNames().length];
      for (int i = 0; i < mixinNodeTypes.length; i++)
      {
         mixinNodeTypes[i] = nodeTypeManager.findNodeType(nodeData().getMixinTypeNames()[i]);
      }

      return mixinNodeTypes;
   }
View Full Code Here

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

   public NodeType getPrimaryNodeType() throws RepositoryException
   {

      checkValid();
      ExtendedNodeTypeManager nodeTypeManager = (ExtendedNodeTypeManager) session.getWorkspace().getNodeTypeManager();
      return nodeTypeManager.findNodeType(nodeData().getPrimaryTypeName());
   }

   /**
    * {@inheritDoc}
    */
 
View Full Code Here

Examples of org.exoplatform.services.jcr.core.nodetype.NodeTypeDataManager.findNodeType()

      NodeTypeDataManager ntManager = userSession.getWorkspace().getNodeTypesHolder();
      LocationFactory locationFactory = userSession.getLocationFactory();
      for (int i = 0; i < criteria.getNodeTypeName().length; i++)
      {
         InternalQName name = locationFactory.parseJCRName(criteria.getNodeTypeName()[i]).getInternalName();
         NodeTypeData criteriaNT = ntManager.findNodeType(name);
         InternalQName[] testQNames;
         if (criteriaNT.isMixin())
         {
            testQNames = node.getMixinTypeNames();
         }
View Full Code Here

Examples of org.exoplatform.services.jcr.core.nodetype.NodeTypeDataManager.findNodeType()

      NodeTypeDataManager nodeTypeDataManager = session.getWorkspace().getNodeTypesHolder();

      // load nodeDatas
      List<NodeTypeData> nodeTypes = new ArrayList<NodeTypeData>();
      nodeTypes.add(nodeTypeDataManager.findNodeType(nodeData().getPrimaryTypeName()));
      InternalQName[] mixinNames = nodeData().getMixinTypeNames();
      for (int i = 0; i < mixinNames.length; i++)
      {
         nodeTypes.add(nodeTypeDataManager.findNodeType(mixinNames[i]));
      }
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.