Interface NodeTypeStorage
-
- All Known Implementing Classes:
NodeTypeStorageImpl
public interface NodeTypeStorageNodeTypeStorageprovides means for storingQNodeTypeDefinitions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterator<org.apache.jackrabbit.spi.QNodeTypeDefinition>getAllDefinitions()Returns an Iterator over all node type definitions registered.Iterator<org.apache.jackrabbit.spi.QNodeTypeDefinition>getDefinitions(org.apache.jackrabbit.spi.Name[] nodeTypeNames)Returns theQNodeTypeDefinitions for the given node type names.voidregisterNodeTypes(org.apache.jackrabbit.spi.QNodeTypeDefinition[] nodeTypeDefs, boolean allowUpdate)Add allQNodeTypeDefinitions provided to the store.voidunregisterNodeTypes(org.apache.jackrabbit.spi.Name[] nodeTypeNames)Remove allQNodeTypeDefinitions provided from the store.
-
-
-
Method Detail
-
getAllDefinitions
Iterator<org.apache.jackrabbit.spi.QNodeTypeDefinition> getAllDefinitions() throws RepositoryException
Returns an Iterator over all node type definitions registered.- Returns:
- Throws:
RepositoryException
-
getDefinitions
Iterator<org.apache.jackrabbit.spi.QNodeTypeDefinition> getDefinitions(org.apache.jackrabbit.spi.Name[] nodeTypeNames) throws NoSuchNodeTypeException, RepositoryException
Returns theQNodeTypeDefinitions for the given node type names. The implementation is free to return additional definitions e.g. dependencies.- Parameters:
nodeTypeNames-- Returns:
- Throws:
NoSuchNodeTypeExceptionRepositoryException
-
registerNodeTypes
void registerNodeTypes(org.apache.jackrabbit.spi.QNodeTypeDefinition[] nodeTypeDefs, boolean allowUpdate) throws RepositoryException, NodeTypeExistsExceptionAdd allQNodeTypeDefinitions provided to the store. IfallowUpdateistruepreviously registered node QNodeTypeDefinitions will be overwritten.- Parameters:
nodeTypeDefs- QNodeTypeDefinitions to add to the storeallowUpdate- Whether to overwrite existing QNodeTypeDefinitions- Throws:
RepositoryExceptionNodeTypeExistsException- IfallowUpdateistrueand a QNodeTypeDefinitions of that name already exists. In this case, none of the provided QNodeTypeDefinitions is registered.
-
unregisterNodeTypes
void unregisterNodeTypes(org.apache.jackrabbit.spi.Name[] nodeTypeNames) throws NoSuchNodeTypeException, RepositoryExceptionRemove allQNodeTypeDefinitions provided from the store.- Parameters:
nodeTypeNames- QNodeTypeDefinitions to remove from the store- Throws:
RepositoryExceptionNoSuchNodeTypeException- If any of the QNodeTypeDefinitions does not exist. In this case none of the provided is unregistered.
-
-