public class Jcr
extends java.lang.Object
Repository
backed by an Oak ContentRepository
instance
The backing ContentRepository instance will be constructed with
reasonable defaults and additional components can be registered by calling
the with
methods. Note that it is not possible to remove components
once registered.
The Jcr builder is a lazy initializer, to have a working repository make sure
you call createContentRepository()
or
createRepository()
.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_OBSERVATION_QUEUE_LENGTH |
Constructor and Description |
---|
Jcr() |
Jcr(NodeStore store) |
Jcr(Oak oak) |
Jcr(Oak oak,
boolean initialize) |
Modifier and Type | Method and Description |
---|---|
@NotNull ContentRepository |
createContentRepository() |
@NotNull Repository |
createRepository() |
@NotNull Jcr |
with(@NotNull Clusterable c) |
@NotNull Jcr |
with(@NotNull CommitHook hook) |
@NotNull Jcr |
with(@NotNull CommitRateLimiter commitRateLimiter) |
@NotNull Jcr |
with(@NotNull Editor editor) |
@NotNull Jcr |
with(@NotNull EditorProvider provider) |
@NotNull Jcr |
with(@NotNull java.util.concurrent.Executor executor) |
@NotNull Jcr |
with(@NotNull IndexEditorProvider indexEditorProvider) |
@NotNull Jcr |
with(@NotNull Observer observer) |
@NotNull Jcr |
with(@NotNull PartialConflictHandler conflictHandler)
Deprecated.
Use
with(ThreeWayConflictHandler) instead |
@NotNull Jcr |
with(@NotNull QueryIndexProvider provider) |
@NotNull Jcr |
with(@NotNull QueryLimits qs) |
@NotNull Jcr |
with(@NotNull RepositoryInitializer initializer) |
@NotNull Jcr |
with(@NotNull java.util.concurrent.ScheduledExecutorService executor) |
@NotNull Jcr |
with(@NotNull SecurityProvider securityProvider) |
@NotNull Jcr |
with(@NotNull java.lang.String defaultWorkspaceName) |
@NotNull Jcr |
with(@NotNull ThreeWayConflictHandler conflictHandler) |
@NotNull Jcr |
with(@NotNull Whiteboard whiteboard) |
@NotNull Jcr |
withAsyncIndexing()
Deprecated.
Use
withAsyncIndexing(String, long) instead |
@NotNull Jcr |
withAsyncIndexing(@NotNull java.lang.String name,
long delayInSeconds) |
Jcr |
withAtomicCounter() |
@NotNull Jcr |
withFastQueryResultSize(boolean fastQueryResultSize) |
@NotNull Jcr |
withObservationQueueLength(int observationQueueLength) |
public static final int DEFAULT_OBSERVATION_QUEUE_LENGTH
public Jcr(Oak oak, boolean initialize)
public Jcr(Oak oak)
public Jcr()
public Jcr(NodeStore store)
@NotNull public @NotNull Jcr with(@NotNull @NotNull Clusterable c)
@NotNull public final @NotNull Jcr with(@NotNull @NotNull RepositoryInitializer initializer)
public Jcr withAtomicCounter()
@NotNull public final @NotNull Jcr with(@NotNull @NotNull QueryIndexProvider provider)
@NotNull public final @NotNull Jcr with(@NotNull @NotNull IndexEditorProvider indexEditorProvider)
@NotNull public final @NotNull Jcr with(@NotNull @NotNull CommitHook hook)
@NotNull public final @NotNull Jcr with(@NotNull @NotNull EditorProvider provider)
@NotNull public final @NotNull Jcr with(@NotNull @NotNull SecurityProvider securityProvider)
@Deprecated @NotNull public final @NotNull Jcr with(@NotNull @NotNull PartialConflictHandler conflictHandler)
with(ThreeWayConflictHandler)
instead@NotNull public final @NotNull Jcr with(@NotNull @NotNull ThreeWayConflictHandler conflictHandler)
@NotNull public final @NotNull Jcr with(@NotNull @NotNull java.util.concurrent.ScheduledExecutorService executor)
@NotNull public final @NotNull Jcr with(@NotNull @NotNull java.util.concurrent.Executor executor)
@NotNull @Deprecated public @NotNull Jcr withAsyncIndexing()
withAsyncIndexing(String, long)
instead@NotNull public @NotNull Jcr withAsyncIndexing(@NotNull @NotNull java.lang.String name, long delayInSeconds)
@NotNull public @NotNull Jcr withObservationQueueLength(int observationQueueLength)
@NotNull public @NotNull Jcr with(@NotNull @NotNull CommitRateLimiter commitRateLimiter)
@NotNull public @NotNull Jcr with(@NotNull @NotNull QueryLimits qs)
@NotNull public @NotNull Jcr withFastQueryResultSize(boolean fastQueryResultSize)
@NotNull public @NotNull Jcr with(@NotNull @NotNull java.lang.String defaultWorkspaceName)
@NotNull public @NotNull Jcr with(@NotNull @NotNull Whiteboard whiteboard)
@NotNull public @NotNull ContentRepository createContentRepository()
@NotNull public @NotNull Repository createRepository()
Copyright © 2010 - 2020 Adobe. All Rights Reserved