Package org.apache.jackrabbit.oak
Class InitialContent
- java.lang.Object
-
- org.apache.jackrabbit.oak.InitialContent
-
- All Implemented Interfaces:
JcrConstants
,RepositoryInitializer
,NodeTypeConstants
public class InitialContent extends java.lang.Object implements RepositoryInitializer, NodeTypeConstants
InitialContent
implements aRepositoryInitializer
the creates the initial JCR/Oak repository structure. This includes creating- the root node - jcr:system node and it subtree - version storage - activities - built-in node types - built-in namespaces - some basic index definitions required for a functional JCR repository
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.JcrConstants
JCR_AUTOCREATED, JCR_BASEVERSION, JCR_CHILD, JCR_CHILDNODEDEFINITION, JCR_CONTENT, JCR_CREATED, JCR_DATA, JCR_DEFAULTPRIMARYTYPE, JCR_DEFAULTVALUES, JCR_ENCODING, JCR_FROZENMIXINTYPES, JCR_FROZENNODE, JCR_FROZENPRIMARYTYPE, JCR_FROZENUUID, JCR_HASORDERABLECHILDNODES, JCR_ISCHECKEDOUT, JCR_ISMIXIN, JCR_LANGUAGE, JCR_LASTMODIFIED, JCR_LOCKISDEEP, JCR_LOCKOWNER, JCR_MANDATORY, JCR_MERGEFAILED, JCR_MIMETYPE, JCR_MIXINTYPES, JCR_MULTIPLE, JCR_NAME, JCR_NODETYPENAME, JCR_ONPARENTVERSION, JCR_PATH, JCR_PREDECESSORS, JCR_PRIMARYITEMNAME, JCR_PRIMARYTYPE, JCR_PROPERTYDEFINITION, JCR_PROTECTED, JCR_REQUIREDPRIMARYTYPES, JCR_REQUIREDTYPE, JCR_ROOTVERSION, JCR_SAMENAMESIBLINGS, JCR_SCORE, JCR_STATEMENT, JCR_SUCCESSORS, JCR_SUPERTYPES, JCR_SYSTEM, JCR_UUID, JCR_VALUECONSTRAINTS, JCR_VERSIONABLEUUID, JCR_VERSIONHISTORY, JCR_VERSIONLABELS, JCR_VERSIONSTORAGE, MIX_LOCKABLE, MIX_REFERENCEABLE, MIX_SHAREABLE, MIX_VERSIONABLE, NT_BASE, NT_CHILDNODEDEFINITION, NT_FILE, NT_FOLDER, NT_FROZENNODE, NT_HIERARCHYNODE, NT_LINKEDFILE, NT_NODETYPE, NT_PROPERTYDEFINITION, NT_QUERY, NT_RESOURCE, NT_UNSTRUCTURED, NT_VERSION, NT_VERSIONEDCHILD, NT_VERSIONHISTORY, NT_VERSIONLABELS
-
Fields inherited from interface org.apache.jackrabbit.oak.spi.nodetype.NodeTypeConstants
JCR_AVAILABLE_QUERY_OPERATORS, JCR_CREATEDBY, JCR_IS_ABSTRACT, JCR_IS_FULLTEXT_SEARCHABLE, JCR_IS_QUERY_ORDERABLE, JCR_IS_QUERYABLE, JCR_LASTMODIFIEDBY, JCR_NODE_TYPES, MIX_ATOMIC_COUNTER, MIX_CREATED, MIX_INDEXABLE, MIX_LASTMODIFIED, MIX_REP_MERGE_CONFLICT, NODE_TYPES_PATH, NT_OAK_RESOURCE, NT_OAK_UNSTRUCTURED, NT_REP_CHILD_NODE_DEFINITION, NT_REP_CHILD_NODE_DEFINITIONS, NT_REP_NAMED_CHILD_NODE_DEFINITIONS, NT_REP_NAMED_PROPERTY_DEFINITIONS, NT_REP_NODE_TYPE, NT_REP_NODE_TYPES, NT_REP_PROPERTY_DEFINITION, NT_REP_PROPERTY_DEFINITIONS, NT_REP_ROOT, NT_REP_SYSTEM, NT_REP_UNSTRUCTURED, REP_DECLARING_NODE_TYPE, REP_HAS_PROTECTED_RESIDUAL_CHILD_NODES, REP_HAS_PROTECTED_RESIDUAL_PROPERTIES, REP_MANDATORY_CHILD_NODES, REP_MANDATORY_PROPERTIES, REP_MIXIN_SUBTYPES, REP_MIXIN_TYPES, REP_NAMED_CHILD_NODE_DEFINITIONS, REP_NAMED_PROPERTY_DEFINITIONS, REP_NAMED_SINGLE_VALUED_PROPERTIES, REP_OURS, REP_PRIMARY_SUBTYPES, REP_PRIMARY_TYPE, REP_PROTECTED_CHILD_NODES, REP_PROTECTED_PROPERTIES, REP_RESIDUAL_CHILD_NODE_DEFINITIONS, REP_RESIDUAL_PROPERTY_DEFINITIONS, REP_SUPERTYPES, REP_UUID, RESIDUAL_NAME
-
Fields inherited from interface org.apache.jackrabbit.oak.spi.lifecycle.RepositoryInitializer
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description InitialContent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(@NotNull NodeBuilder builder)
Initializes repository content.InitialContent
withPrePopulatedVersionStore()
Instructs the initializer to pre-populate the version store with intermediate nodes.
-
-
-
Method Detail
-
initialize
public void initialize(@NotNull @NotNull NodeBuilder builder)
Description copied from interface:RepositoryInitializer
Initializes repository content. This method is called as soon as a repository becomes available. Note that the repository may already have been initialized, so the implementation of this method should check for that before blindly adding new content.- Specified by:
initialize
in interfaceRepositoryInitializer
- Parameters:
builder
- builder for accessing and modifying repository content
-
withPrePopulatedVersionStore
public InitialContent withPrePopulatedVersionStore()
Instructs the initializer to pre-populate the version store with intermediate nodes.- Returns:
- this instance.
-
-