@Override public NodeType getNodeType(String name) throws RepositoryException { return internalGetNodeType(getOakName(name)); }
@Override public NodeType getNodeType(String name) throws RepositoryException { return internalGetNodeType(getOakName(name)); }
@Override public NodeType getNodeType(String name) throws RepositoryException { return internalGetNodeType(getOakName(name)); }
/** * Determines whether this effective node type supports adding * the specified mixin. * @param mixin name of mixin type * @return {@code true} if the mixin type is supported, otherwise {@code false} */ @Override public boolean supportsMixin(String mixin) { if (includesNodeType(mixin)) { return true; } NodeType mixinType = null; try { mixinType = ntMgr.internalGetNodeType(mixin); if (!mixinType.isMixin() || mixinType.isAbstract()) { return false; } } catch (NoSuchNodeTypeException e) { log.debug("Unknown mixin type " + mixin); } return true; }
/** * Determines whether this effective node type supports adding * the specified mixin. * @param mixin name of mixin type * @return {@code true} if the mixin type is supported, otherwise {@code false} */ @Override public boolean supportsMixin(String mixin) { if (includesNodeType(mixin)) { return true; } NodeType mixinType = null; try { mixinType = ntMgr.internalGetNodeType(mixin); if (!mixinType.isMixin() || mixinType.isAbstract()) { return false; } } catch (NoSuchNodeTypeException e) { log.debug("Unknown mixin type " + mixin); } return true; }
/** * Determines whether this effective node type supports adding * the specified mixin. * @param mixin name of mixin type * @return {@code true} if the mixin type is supported, otherwise {@code false} */ @Override public boolean supportsMixin(String mixin) { if (includesNodeType(mixin)) { return true; } NodeType mixinType = null; try { mixinType = ntMgr.internalGetNodeType(mixin); if (!mixinType.isMixin() || mixinType.isAbstract()) { return false; } } catch (NoSuchNodeTypeException e) { log.debug("Unknown mixin type " + mixin); } return true; }
@Override public EffectiveNodeType getEffectiveNodeType(Tree tree) throws RepositoryException { NodeTypeImpl primaryType; PropertyState jcrPrimaryType = tree.getProperty(JCR_PRIMARYTYPE); if (jcrPrimaryType != null) { String ntName = jcrPrimaryType.getValue(STRING); primaryType = internalGetNodeType(ntName); } else { throw new RepositoryException("Node at "+tree.getPath()+" has no primary type."); } PropertyState jcrMixinType = tree.getProperty(JCR_MIXINTYPES); if (jcrMixinType == null) { return new EffectiveNodeTypeImpl(primaryType, this); } else { NodeTypeImpl[] mixinTypes = new NodeTypeImpl[jcrMixinType.count()]; for (int i = 0; i < mixinTypes.length; i++) { mixinTypes[i] = internalGetNodeType(jcrMixinType.getValue(Type.NAME, i)); } return new EffectiveNodeTypeImpl(primaryType, mixinTypes, this); } }
@Override public EffectiveNodeType getEffectiveNodeType(Tree tree) throws RepositoryException { NodeTypeImpl primaryType; PropertyState jcrPrimaryType = tree.getProperty(JCR_PRIMARYTYPE); if (jcrPrimaryType != null) { String ntName = jcrPrimaryType.getValue(STRING); primaryType = internalGetNodeType(ntName); } else { throw new RepositoryException("Node at "+tree.getPath()+" has no primary type."); } PropertyState jcrMixinType = tree.getProperty(JCR_MIXINTYPES); if (jcrMixinType == null) { return new EffectiveNodeTypeImpl(primaryType, this); } else { NodeTypeImpl[] mixinTypes = new NodeTypeImpl[jcrMixinType.count()]; for (int i = 0; i < mixinTypes.length; i++) { mixinTypes[i] = internalGetNodeType(jcrMixinType.getValue(Type.NAME, i)); } return new EffectiveNodeTypeImpl(primaryType, mixinTypes, this); } }
@Override public EffectiveNodeType getEffectiveNodeType(Tree tree) throws RepositoryException { NodeTypeImpl primaryType; PropertyState jcrPrimaryType = tree.getProperty(JCR_PRIMARYTYPE); if (jcrPrimaryType != null) { String ntName = jcrPrimaryType.getValue(STRING); primaryType = internalGetNodeType(ntName); } else { throw new RepositoryException("Node at "+tree.getPath()+" has no primary type."); } PropertyState jcrMixinType = tree.getProperty(JCR_MIXINTYPES); if (jcrMixinType == null) { return new EffectiveNodeTypeImpl(primaryType, this); } else { NodeTypeImpl[] mixinTypes = new NodeTypeImpl[jcrMixinType.count()]; for (int i = 0; i < mixinTypes.length; i++) { mixinTypes[i] = internalGetNodeType(jcrMixinType.getValue(Type.NAME, i)); } return new EffectiveNodeTypeImpl(primaryType, mixinTypes, this); } }