/** * {@inheritDoc} */ public void externalUnregistered(Collection<Name> ntNames) throws RepositoryException, NoSuchNodeTypeException { unregisterNodeTypes(ntNames, true); }
/** * {@inheritDoc} */ public void externalUnregistered(Collection<Name> ntNames) throws RepositoryException, NoSuchNodeTypeException { unregisterNodeTypes(ntNames, true); }
/** * Same as <code>{@link #unregisterNodeType(Name)}</code> except * that a set of node types is unregistered instead of just one. * <p> * This method can be used to unregister a set of node types that depend on * each other. * * @param ntNames a collection of <code>Name</code> objects denoting the * node types to be unregistered * @throws NoSuchNodeTypeException if any of the specified names does not * denote a registered node type. * @throws RepositoryException if another error occurs * @see #unregisterNodeType(Name) */ public void unregisterNodeTypes(Set<Name> ntNames) throws NoSuchNodeTypeException, RepositoryException { unregisterNodeTypes(ntNames, false); }
/** * Same as <code>{@link #unregisterNodeType(Name)}</code> except * that a set of node types is unregistered instead of just one. * <p> * This method can be used to unregister a set of node types that depend on * each other. * * @param ntNames a collection of <code>Name</code> objects denoting the * node types to be unregistered * @throws NoSuchNodeTypeException if any of the specified names does not * denote a registered node type. * @throws RepositoryException if another error occurs * @see #unregisterNodeType(Name) */ public void unregisterNodeTypes(Set<Name> ntNames) throws NoSuchNodeTypeException, RepositoryException { unregisterNodeTypes(ntNames, false); }
/** * Unregisters the specified node type. In order for a node type to be * successfully unregistered it must meet the following conditions: * <ol> * <li>the node type must obviously be registered.</li> * <li>a built-in node type can not be unregistered.</li> * <li>the node type must not have dependents, i.e. other node types that * are referencing it.</li> * <li>the node type must not be currently used by any workspace.</li> * </ol> * * @param ntName name of the node type to be unregistered * @throws NoSuchNodeTypeException if <code>ntName</code> does not * denote a registered node type. * @throws RepositoryException if another error occurs. * @see #unregisterNodeTypes(Collection, boolean) */ public void unregisterNodeType(Name ntName) throws NoSuchNodeTypeException, RepositoryException { HashSet<Name> ntNames = new HashSet<Name>(); ntNames.add(ntName); unregisterNodeTypes(ntNames); }
/** * Unregisters the specified node type. In order for a node type to be * successfully unregistered it must meet the following conditions: * <ol> * <li>the node type must obviously be registered.</li> * <li>a built-in node type can not be unregistered.</li> * <li>the node type must not have dependents, i.e. other node types that * are referencing it.</li> * <li>the node type must not be currently used by any workspace.</li> * </ol> * * @param ntName name of the node type to be unregistered * @throws NoSuchNodeTypeException if <code>ntName</code> does not * denote a registered node type. * @throws RepositoryException if another error occurs. * @see #unregisterNodeTypes(Collection, boolean) */ public void unregisterNodeType(Name ntName) throws NoSuchNodeTypeException, RepositoryException { HashSet<Name> ntNames = new HashSet<Name>(); ntNames.add(ntName); unregisterNodeTypes(ntNames); }
getNodeTypeRegistry().unregisterNodeTypes(ntNames);
getNodeTypeRegistry().unregisterNodeTypes(ntNames);