Class ReadWriteNodeTypeManager

java.lang.Object
org.apache.jackrabbit.oak.plugins.nodetype.ReadOnlyNodeTypeManager
org.apache.jackrabbit.oak.plugins.nodetype.write.ReadWriteNodeTypeManager
All Implemented Interfaces:
NodeTypeManager, DefinitionProvider, EffectiveNodeTypeProvider

public abstract class ReadWriteNodeTypeManager extends ReadOnlyNodeTypeManager
ReadWriteNodeTypeManager extends the ReadOnlyNodeTypeManager with support for operations that modify node types. Calling any of the above methods will result in a refresh() callback to e.g. inform an associated session that it should refresh to make the changes visible.

Subclass responsibility is to provide an implementation of ReadOnlyNodeTypeManager.getTypes() for read only access to the tree where node types are stored in content and getWriteRoot() for write access to the repository in order to modify node types stored in content. A subclass may also want to override the default implementation of ReadOnlyNodeTypeManager for the following methods: