Value[] values, boolean skipProtected ) { return findPropertyDefinition(session, primaryTypeName, mixinTypeNames, propertyName, values, skipProtected, true);
Value[] values, boolean skipProtected ) { return findPropertyDefinition(session, primaryTypeName, mixinTypeNames, propertyName, values, skipProtected, true);
boolean checkMultiValuedDefinitions, boolean skipProtected ) { return findPropertyDefinition(session, primaryTypeName, mixinTypeNames, propertyName, value, checkMultiValuedDefinitions, skipProtected, true);
boolean checkMultiValuedDefinitions, boolean skipProtected ) { return findPropertyDefinition(session, primaryTypeName, mixinTypeNames, propertyName, value, checkMultiValuedDefinitions, skipProtected, true);
final JcrPropertyDefinition findPropertyDefinition( Name primaryTypeName, Collection<Name> mixinTypeNames, Name propertyName, Value value, boolean checkMultiValuedDefinitions, boolean skipProtected, boolean checkTypesAndConstraints ) { return nodeTypes().findPropertyDefinition(session, primaryTypeName, mixinTypeNames, propertyName, value, checkMultiValuedDefinitions, skipProtected, checkTypesAndConstraints); }
final JcrPropertyDefinition findPropertyDefinition( Name primaryTypeName, Collection<Name> mixinTypeNames, Name propertyName, Value value, boolean checkMultiValuedDefinitions, boolean skipProtected, boolean checkTypesAndConstraints ) { return nodeTypes().findPropertyDefinition(session, primaryTypeName, mixinTypeNames, propertyName, value, checkMultiValuedDefinitions, skipProtected, checkTypesAndConstraints); }
final JcrPropertyDefinition findPropertyDefinition( Name primaryTypeName, Collection<Name> mixinTypeNames, Name propertyName, Value[] values, boolean skipProtected, boolean checkTypeAndConstraints ) { return nodeTypes().findPropertyDefinition(session, primaryTypeName, mixinTypeNames, propertyName, values, skipProtected, checkTypeAndConstraints); }
final JcrPropertyDefinition findPropertyDefinition( Name primaryTypeName, Collection<Name> mixinTypeNames, Name propertyName, Value[] values, boolean skipProtected, boolean checkTypeAndConstraints ) { return nodeTypes().findPropertyDefinition(session, primaryTypeName, mixinTypeNames, propertyName, values, skipProtected, checkTypeAndConstraints); }
public boolean canSetProperty( JcrSession session, String propertyName, Value value ) { CheckArg.isNotNull(propertyName, "propertyName"); Name name = context.getValueFactories().getNameFactory().create(propertyName); // Reuse the logic in RepositoryNodeTypeManager ... return nodeTypes().findPropertyDefinition(session, this.name, null, name, value, false, true) != null; }
public boolean canSetProperty( JcrSession session, String propertyName, Value value ) { CheckArg.isNotNull(propertyName, "propertyName"); Name name = context.getValueFactories().getNameFactory().create(propertyName); // Reuse the logic in RepositoryNodeTypeManager ... return nodeTypes().findPropertyDefinition(session, this.name, null, name, value, false, true) != null; }
public boolean canSetProperty( JcrSession session, String propertyName, Value[] values ) { CheckArg.isNotNull(propertyName, "propertyName"); if (values == null || values.length == 0) { return canRemoveProperty(propertyName); } Name name = context.getValueFactories().getNameFactory().create(propertyName); // Reuse the logic in RepositoryNodeTypeManager ... return nodeTypes().findPropertyDefinition(session, this.name, null, name, values, true) != null; }
public boolean canSetProperty( JcrSession session, String propertyName, Value[] values ) { CheckArg.isNotNull(propertyName, "propertyName"); if (values == null || values.length == 0) { return canRemoveProperty(propertyName); } Name name = context.getValueFactories().getNameFactory().create(propertyName); // Reuse the logic in RepositoryNodeTypeManager ... return nodeTypes().findPropertyDefinition(session, this.name, null, name, values, true) != null; }
@Test public void shouldBeNamespaced() throws RepositoryException { JcrPropertyDefinition propDef; propDef = nodeTypes().findPropertyDefinition(session, NODE_TYPE_A, Collections.<Name>emptyList(), SINGLE_PROP1, null, true, true, true); assertLocalNameAndNamespace(propDef, SINGLE_PROP1.getLocalName(), TestLexicon.Namespace.PREFIX); }
definition = nodeTypes.findPropertyDefinition(session, primaryTypeNameOfParent, mixinTypeNamesOfParent, property.getName(), jcrValue, true, skipProtected); } else { jcrValues[index++] = new JcrValue(factories, propertyType, value); definition = nodeTypes.findPropertyDefinition(session, primaryTypeNameOfParent, mixinTypeNamesOfParent, property.getName(), jcrValues, skipProtected);
definition = nodeTypes.findPropertyDefinition(session, primaryTypeNameOfParent, mixinTypeNamesOfParent, property.getName(), jcrValue, true, skipProtected); } else { jcrValues[index++] = new JcrValue(factories, propertyType, value); definition = nodeTypes.findPropertyDefinition(session, primaryTypeNameOfParent, mixinTypeNamesOfParent, property.getName(), jcrValues, skipProtected);
JcrPropertyDefinition propDef; propDef = nodeTypes().findPropertyDefinition(session, NODE_TYPE_A, Collections.<Name>emptyList(), assertThat(propDef, is(nullValue())); propDef = nodeTypes().findPropertyDefinition(session, NODE_TYPE_B, Collections.<Name>emptyList(), assertThat(propDef, is(nullValue())); propDef = nodeTypes().findPropertyDefinition(session, NODE_TYPE_C, Collections.<Name>emptyList(),
propDef = nodeTypes().findPropertyDefinition(session, NODE_TYPE_A, Collections.<Name>emptyList(), assertEquals(propDef.getRequiredType(), PropertyType.STRING); propDef = nodeTypes().findPropertyDefinition(session, NODE_TYPE_B, Collections.<Name>emptyList(), assertEquals(propDef.getRequiredType(), PropertyType.DOUBLE); propDef = nodeTypes().findPropertyDefinition(session, NODE_TYPE_C, Collections.<Name>emptyList(),
propDef = nodeTypes().findPropertyDefinition(session, NODE_TYPE_C, Collections.<Name>emptyList(), propDef = nodeTypes().findPropertyDefinition(session, NODE_TYPE_C, Collections.<Name>emptyList(), propDef = nodeTypes().findPropertyDefinition(session, NODE_TYPE_C, Collections.<Name>emptyList(),
JcrPropertyDefinition defn = null; final boolean skipProtected = !skipProtectedValidation; defn = nodeTypes.findPropertyDefinition(session, primaryType, mixinTypes, name, value, true, skipProtected, true); defn = nodeTypes.findPropertyDefinition(session, primaryType, mixinTypes, name, value, true, skipProtected, false);
JcrPropertyDefinition defn = null; final boolean skipProtected = !skipProtectedValidation; defn = nodeTypes.findPropertyDefinition(session, primaryType, mixinTypes, name, value, true, skipProtected, true); defn = nodeTypes.findPropertyDefinition(session, primaryType, mixinTypes, name, value, true, skipProtected, false);