throw new InvalidNodeTypeDefinitionException("circular inheritance detected: " + buf.toString()); throw new InvalidNodeTypeDefinitionException("Unknown supertype: " + stName);
throw new InvalidNodeTypeDefinitionException("circular inheritance detected: " + buf.toString()); throw new InvalidNodeTypeDefinitionException("Unknown supertype: " + stName);
throw new InvalidNodeTypeDefinitionException(msg.toString());
throw new InvalidNodeTypeDefinitionException(msg.toString());
buf.append("node type "); buf.append(nt); throw new InvalidNodeTypeDefinitionException("circular node auto-creation detected: " + buf.toString()); String msg = definingNT + " defines invalid default node type for child node " + nodeDefs[i].getName(); log.debug(msg); throw new InvalidNodeTypeDefinitionException(msg, e); } catch (ConstraintViolationException e) { String msg = definingNT + " defines invalid default node type for child node " + nodeDefs[i].getName(); log.debug(msg); throw new InvalidNodeTypeDefinitionException(msg, e);
buf.append("node type "); buf.append(nt); throw new InvalidNodeTypeDefinitionException("circular node auto-creation detected: " + buf.toString()); String msg = definingNT + " defines invalid default node type for child node " + nodeDefs[i].getName(); log.debug(msg); throw new InvalidNodeTypeDefinitionException(msg, e); } catch (ConstraintViolationException e) { String msg = definingNT + " defines invalid default node type for child node " + nodeDefs[i].getName(); log.debug(msg); throw new InvalidNodeTypeDefinitionException(msg, e);
JcrNodeType supertype = findTypeInMapOrList(supertypeName, pendingTypes); if (supertype == null) { throw new InvalidNodeTypeDefinitionException(JcrI18n.invalidSupertypeName.text(supertypeNameStr, nodeTypeName));
JcrNodeType supertype = findTypeInMapOrList(supertypeName, pendingTypes); if (supertype == null) { throw new InvalidNodeTypeDefinitionException(JcrI18n.invalidSupertypeName.text(supertypeNameStr, nodeTypeName));
if (isNodeTypeInUse(nodeTypeName)) { String name = nodeTypeName.getString(context.getNamespaceRegistry()); throw new InvalidNodeTypeDefinitionException(JcrI18n.cannotUnregisterInUseType.text(name)); throw new InvalidNodeTypeDefinitionException(JcrI18n.cannotUnregisterSupertype.text(name, nodeType.getName())); NodeType defaultPrimaryType = childNode.getDefaultPrimaryType(); if (defaultPrimaryType != null && name.equals(defaultPrimaryType.getName())) { throw new InvalidNodeTypeDefinitionException( JcrI18n.cannotUnregisterDefaultPrimaryType.text(name, nodeType.getName(), throw new InvalidNodeTypeDefinitionException( JcrI18n.cannotUnregisterRequiredPrimaryType.text(name, nodeType.getName(),
if (isNodeTypeInUse(nodeTypeName)) { String name = nodeTypeName.getString(context.getNamespaceRegistry()); throw new InvalidNodeTypeDefinitionException(JcrI18n.cannotUnregisterInUseType.text(name)); throw new InvalidNodeTypeDefinitionException(JcrI18n.cannotUnregisterSupertype.text(name, nodeType.getName())); NodeType defaultPrimaryType = childNode.getDefaultPrimaryType(); if (defaultPrimaryType != null && name.equals(defaultPrimaryType.getName())) { throw new InvalidNodeTypeDefinitionException( JcrI18n.cannotUnregisterDefaultPrimaryType.text(name, nodeType.getName(), throw new InvalidNodeTypeDefinitionException( JcrI18n.cannotUnregisterRequiredPrimaryType.text(name, nodeType.getName(),
throw new InvalidNodeTypeDefinitionException(e.getMessage(), e);
throw new InvalidNodeTypeDefinitionException(e.getMessage(), e);
String propTypeName = property.getDeclaringNodeType().getName(); if (!oldPropTypeName.equals(propTypeName)) { throw new InvalidNodeTypeDefinitionException(JcrI18n.supertypesConflict.text(oldPropTypeName, propTypeName, "property", property.getName())); String childNodeTypeName = childNode.getDeclaringNodeType().getName(); if (!oldNodeTypeName.equals(childNodeTypeName)) { throw new InvalidNodeTypeDefinitionException(JcrI18n.supertypesConflict.text(oldNodeTypeName, childNodeTypeName, "child node",
throw new InvalidNodeTypeDefinitionException(JcrI18n.invalidNodeTypeName.text());
throw new InvalidNodeTypeDefinitionException(JcrI18n.invalidNodeTypeName.text());
String propTypeName = property.getDeclaringNodeType().getName(); if (!oldPropTypeName.equals(propTypeName)) { throw new InvalidNodeTypeDefinitionException(JcrI18n.supertypesConflict.text(oldPropTypeName, propTypeName, "property", property.getName())); String childNodeTypeName = childNode.getDeclaringNodeType().getName(); if (!oldNodeTypeName.equals(childNodeTypeName)) { throw new InvalidNodeTypeDefinitionException(JcrI18n.supertypesConflict.text(oldNodeTypeName, childNodeTypeName, "child node",
if (childNodeDefinition.isAutoCreated() && !childNodeDefinition.isProtected() && childNodeDefinition.defaultPrimaryTypeName() == null) { throw new InvalidNodeTypeDefinitionException(JcrI18n.autocreatedNodesNeedDefaults.text(childNodeDefinition.getName())); throw new InvalidNodeTypeDefinitionException( JcrI18n.residualNodeDefinitionsCannotBeMandatory.text(childNodeDefinition.getName())); throw new InvalidNodeTypeDefinitionException( JcrI18n.residualNodeDefinitionsCannotBeAutoCreated.text(childNodeDefinition.getName())); throw new InvalidNodeTypeDefinitionException( JcrI18n.cannotOverrideProtectedDefinition.text(childNodeFromAncestor.getDeclaringNodeType() .getName(), throw new InvalidNodeTypeDefinitionException( JcrI18n.cannotMakeMandatoryDefinitionOptional.text(childNodeFromAncestor.getDeclaringNodeType() .getName(), throw new InvalidNodeTypeDefinitionException(msg.text(requiredPrimaryTypeName, childNodeDefinition.getName(), childNodeDefinition.getDeclaringNodeType())); throw new InvalidNodeTypeDefinitionException(msg.text(childNodeName, requiredPrimaryTypeFromAncestor.getName(), childNodeDefinition.getDeclaringNodeType()));
if (childNodeDefinition.isAutoCreated() && !childNodeDefinition.isProtected() && childNodeDefinition.defaultPrimaryTypeName() == null) { throw new InvalidNodeTypeDefinitionException(JcrI18n.autocreatedNodesNeedDefaults.text(childNodeDefinition.getName())); throw new InvalidNodeTypeDefinitionException( JcrI18n.residualNodeDefinitionsCannotBeMandatory.text(childNodeDefinition.getName())); throw new InvalidNodeTypeDefinitionException( JcrI18n.residualNodeDefinitionsCannotBeAutoCreated.text(childNodeDefinition.getName())); throw new InvalidNodeTypeDefinitionException( JcrI18n.cannotOverrideProtectedDefinition.text(childNodeFromAncestor.getDeclaringNodeType() .getName(), throw new InvalidNodeTypeDefinitionException( JcrI18n.cannotMakeMandatoryDefinitionOptional.text(childNodeFromAncestor.getDeclaringNodeType() .getName(), throw new InvalidNodeTypeDefinitionException(msg.text(requiredPrimaryTypeName, childNodeDefinition.getName(), childNodeDefinition.getDeclaringNodeType())); throw new InvalidNodeTypeDefinitionException(msg.text(childNodeName, requiredPrimaryTypeFromAncestor.getName(), childNodeDefinition.getDeclaringNodeType()));
throw new InvalidNodeTypeDefinitionException( JcrI18n.residualPropertyDefinitionsCannotBeMandatory.text(propertyDefinition.getName())); throw new InvalidNodeTypeDefinitionException( JcrI18n.residualPropertyDefinitionsCannotBeAutoCreated.text(propertyDefinition.getName())); if (propertyDefinition.isAutoCreated() && !propertyDefinition.isProtected() && (defaultValues == null || defaultValues.length == 0)) { throw new InvalidNodeTypeDefinitionException( JcrI18n.autocreatedPropertyNeedsDefault.text(propertyDefinition.getName(), propertyDefinition.getDeclaringNodeType() throw new InvalidNodeTypeDefinitionException( JcrI18n.singleValuedPropertyNeedsSingleValuedDefault.text(propertyDefinition.getName(), propertyDefinition.getDeclaringNodeType() throw new InvalidNodeTypeDefinitionException( JcrI18n.cannotOverrideProtectedDefinition.text(propertyDefinitionFromAncestor.getDeclaringNodeType() .getName(), throw new InvalidNodeTypeDefinitionException( JcrI18n.cannotMakeMandatoryDefinitionOptional.text(propertyDefinitionFromAncestor.getDeclaringNodeType() .getName(), throw new InvalidNodeTypeDefinitionException( JcrI18n.constraintsChangedInSubtype.text(propName, propertyDefinitionFromAncestor.getDeclaringNodeType() throw new InvalidNodeTypeDefinitionException(
throw new InvalidNodeTypeDefinitionException( JcrI18n.residualPropertyDefinitionsCannotBeMandatory.text(propertyDefinition.getName())); throw new InvalidNodeTypeDefinitionException( JcrI18n.residualPropertyDefinitionsCannotBeAutoCreated.text(propertyDefinition.getName())); if (propertyDefinition.isAutoCreated() && !propertyDefinition.isProtected() && (defaultValues == null || defaultValues.length == 0)) { throw new InvalidNodeTypeDefinitionException( JcrI18n.autocreatedPropertyNeedsDefault.text(propertyDefinition.getName(), propertyDefinition.getDeclaringNodeType() throw new InvalidNodeTypeDefinitionException( JcrI18n.singleValuedPropertyNeedsSingleValuedDefault.text(propertyDefinition.getName(), propertyDefinition.getDeclaringNodeType() throw new InvalidNodeTypeDefinitionException( JcrI18n.cannotOverrideProtectedDefinition.text(propertyDefinitionFromAncestor.getDeclaringNodeType() .getName(), throw new InvalidNodeTypeDefinitionException( JcrI18n.cannotMakeMandatoryDefinitionOptional.text(propertyDefinitionFromAncestor.getDeclaringNodeType() .getName(), throw new InvalidNodeTypeDefinitionException( JcrI18n.constraintsChangedInSubtype.text(propName, propertyDefinitionFromAncestor.getDeclaringNodeType() throw new InvalidNodeTypeDefinitionException(