if (defn.isProtected()) {
if (defn.isProtected()) {
for (JcrNodeDefinition definition : primaryType.allChildNodeDefinitions(childName)) { if (skipProtected && definition.isProtected()) continue; for (JcrNodeDefinition definition : mixinType.allChildNodeDefinitions(childName)) { if (skipProtected && definition.isProtected()) continue;
for (JcrNodeDefinition definition : primaryType.allChildNodeDefinitions(childName)) { if (skipProtected && definition.isProtected()) continue; for (JcrNodeDefinition definition : mixinType.allChildNodeDefinitions(childName)) { if (skipProtected && definition.isProtected()) continue;
JcrNodeDefinition with( ExecutionContext context ) { return new JcrNodeDefinition(context, this.nodeTypeManager, this.declaringNodeType, key(), name, getOnParentVersion(), isAutoCreated(), isMandatory(), isProtected(), allowsSameNameSiblings(), defaultPrimaryTypeName, requiredPrimaryTypeNames); }
JcrNodeDefinition with( RepositoryNodeTypeManager nodeTypeManager ) { return new JcrNodeDefinition(this.context, nodeTypeManager, this.declaringNodeType, key(), name, getOnParentVersion(), isAutoCreated(), isMandatory(), isProtected(), allowsSameNameSiblings(), defaultPrimaryTypeName, requiredPrimaryTypeNames); }
JcrNodeDefinition with( RepositoryNodeTypeManager nodeTypeManager ) { return new JcrNodeDefinition(this.context, nodeTypeManager, this.declaringNodeType, key(), name, getOnParentVersion(), isAutoCreated(), isMandatory(), isProtected(), allowsSameNameSiblings(), defaultPrimaryTypeName, requiredPrimaryTypeNames); }
JcrNodeDefinition with( ExecutionContext context ) { return new JcrNodeDefinition(context, this.nodeTypeManager, this.declaringNodeType, key(), name, getOnParentVersion(), isAutoCreated(), isMandatory(), isProtected(), allowsSameNameSiblings(), defaultPrimaryTypeName, requiredPrimaryTypeNames); }
/** * Creates a new <code>JcrNodeDefinition</code> that is identical to the current object, but with the given * <code>declaringNodeType</code>. Provided to support immutable pattern for this class. * * @param declaringNodeType the declaring node type for the new <code>JcrNodeDefinition</code> * @return a new <code>JcrNodeDefinition</code> that is identical to the current object, but with the given * <code>declaringNodeType</code>. */ JcrNodeDefinition with( JcrNodeType declaringNodeType ) { return new JcrNodeDefinition(this.context, declaringNodeType.nodeTypeManager(), declaringNodeType, key(), name, getOnParentVersion(), isAutoCreated(), isMandatory(), isProtected(), allowsSameNameSiblings(), defaultPrimaryTypeName, requiredPrimaryTypeNames); }
/** * Creates a new <code>JcrNodeDefinition</code> that is identical to the current object, but with the given * <code>declaringNodeType</code>. Provided to support immutable pattern for this class. * * @param declaringNodeType the declaring node type for the new <code>JcrNodeDefinition</code> * @return a new <code>JcrNodeDefinition</code> that is identical to the current object, but with the given * <code>declaringNodeType</code>. */ JcrNodeDefinition with( JcrNodeType declaringNodeType ) { return new JcrNodeDefinition(this.context, declaringNodeType.nodeTypeManager(), declaringNodeType, key(), name, getOnParentVersion(), isAutoCreated(), isMandatory(), isProtected(), allowsSameNameSiblings(), defaultPrimaryTypeName, requiredPrimaryTypeNames); }
props.add(propertyFactory.create(JcrLexicon.AUTO_CREATED, childNodeDef.isAutoCreated())); props.add(propertyFactory.create(JcrLexicon.MANDATORY, childNodeDef.isMandatory())); props.add(propertyFactory.create(JcrLexicon.PROTECTED, childNodeDef.isProtected()));
props.add(propertyFactory.create(JcrLexicon.AUTO_CREATED, childNodeDef.isAutoCreated())); props.add(propertyFactory.create(JcrLexicon.MANDATORY, childNodeDef.isMandatory())); props.add(propertyFactory.create(JcrLexicon.PROTECTED, childNodeDef.isProtected()));
for (JcrNodeDefinition definition : primaryType.allChildNodeDefinitions(itemName)) { if (skipProtected && definition.isProtected()) continue; for (JcrNodeDefinition definition : mixinType.allChildNodeDefinitions(itemName)) { if (skipProtected && definition.isProtected()) continue;
if (skipProtected && defn.isProtected()) { if (matches != null) matches.noProtectedDefinitionsAllowed(defn); continue; if (!allowSns && !defn.allowsSameNameSiblings()) continue; if (skipProtected && defn.isProtected()) { if (matches != null) matches.noProtectedDefinitionsAllowed(defn); continue;
if (skipProtected && defn.isProtected()) { if (matches != null) matches.noProtectedDefinitionsAllowed(defn); continue; if (!allowSns && !defn.allowsSameNameSiblings()) continue; if (skipProtected && defn.isProtected()) { if (matches != null) matches.noProtectedDefinitionsAllowed(defn); continue;
private static void compareNodeTemplateToNodeDefinition( JcrNodeDefinitionTemplate template, JcrNodeDefinition definition ) { assertThat(definition, is(notNullValue())); assertThat(definition.getDeclaringNodeType(), is(notNullValue())); // Had to match on name to even get to the definition // assertThat(template.getName(), is(definition.getName())); assertThat(template.getOnParentVersion(), is(definition.getOnParentVersion())); assertThat(template.isAutoCreated(), is(definition.isAutoCreated())); assertThat(template.isMandatory(), is(definition.isMandatory())); assertThat(template.isProtected(), is(definition.isProtected())); assertThat(template.getDefaultPrimaryTypeName(), is(definition.getDefaultPrimaryTypeName())); assertThat(template.allowsSameNameSiblings(), is(definition.allowsSameNameSiblings())); // assertThat(template.getRequiredPrimaryTypeNames(), is(definition.getRequiredPrimaryTypeNames())); }
SiblingCounter siblingCounter, MatchResults matches ) { if (defn.isProtected() && skipProtected) { if (matches != null) matches.noProtectedDefinitionsAllowed(defn); return null;
SiblingCounter siblingCounter, MatchResults matches ) { if (defn.isProtected() && skipProtected) { if (matches != null) matches.noProtectedDefinitionsAllowed(defn); return null;
ChildReferences refs = null; for (JcrNodeDefinition nodeDefn : nodeType.allChildNodeDefinitions()) { if (nodeDefn.isAutoCreated() && !nodeDefn.isProtected()) { Name nodeName = nodeDefn.getInternalName(); if (refs == null) refs = node.getChildReferences(cache);
ChildReferences refs = null; for (JcrNodeDefinition nodeDefn : nodeType.allChildNodeDefinitions()) { if (nodeDefn.isAutoCreated() && !nodeDefn.isProtected()) { Name nodeName = nodeDefn.getInternalName(); if (refs == null) refs = node.getChildReferences(cache);