Package | Description |
---|---|
org.apache.jackrabbit.spi |
Defines the interfaces of the JCR SPI (Service Provider Interface).
|
org.apache.jackrabbit.spi.commons | |
org.apache.jackrabbit.spi.commons.batch | |
org.apache.jackrabbit.spi.commons.logging | |
org.apache.jackrabbit.spi2dav | |
org.apache.jackrabbit.spi2davex | |
org.apache.jackrabbit.spi2jcr |
Modifier and Type | Method and Description |
---|---|
Batch |
RepositoryService.createBatch(SessionInfo sessionInfo,
ItemId itemId)
Indicates the start of a set of operations that cause modifications
on the underlying persistence layer.
|
Modifier and Type | Method and Description |
---|---|
Tree |
RepositoryService.createTree(SessionInfo sessionInfo,
Batch batch,
Name nodeName,
Name primaryTypeName,
String uniqueId)
Creates a new
Tree that can be populated and later on be applied
to the specified Batch by calling #setTree . |
void |
RepositoryService.submit(Batch batch)
Completes the given
Batch or discard all the previous modifications. |
Modifier and Type | Class and Description |
---|---|
class |
SerializableBatch
SerializableBatch implements a serializable SPI Batch, which
simply records all calls and replays them when asked for. |
Modifier and Type | Method and Description |
---|---|
Batch |
AbstractRepositoryService.createBatch(SessionInfo sessionInfo,
ItemId itemId) |
Modifier and Type | Method and Description |
---|---|
Tree |
AbstractRepositoryService.createTree(SessionInfo sessionInfo,
Batch batch,
Name nodeName,
Name primaryTypeName,
String uniqueId) |
void |
SerializableBatch.replay(Batch batch)
Replays this batch on the given
batch . |
void |
SerializableBatch.Operation.replay(Batch batch)
Replays this operation on the given
batch . |
void |
AbstractRepositoryService.submit(Batch batch) |
Modifier and Type | Interface and Description |
---|---|
interface |
ChangeLog
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractChangeLog<T extends Operation>
This base class for
ChangeLog implementations maintains a list of operations
of type type T . |
class |
ChangeLogImpl
This
ChangeLog implementation simply keeps back all calls to its Batch methods as
a list of AbstractChangeLog.operations (with item of type Operation ). |
class |
ConsolidatingChangeLog
|
Modifier and Type | Method and Description |
---|---|
Batch |
AbstractChangeLog.apply(Batch batch)
This implementation applies each of the operation maintained by
this change log to the passed
batch . |
Batch |
ChangeLog.apply(Batch batch)
Applies the
Operation s contained in this change log to
the passed batch . |
Modifier and Type | Method and Description |
---|---|
Batch |
AbstractChangeLog.apply(Batch batch)
This implementation applies each of the operation maintained by
this change log to the passed
batch . |
Batch |
ChangeLog.apply(Batch batch)
Applies the
Operation s contained in this change log to
the passed batch . |
void |
Operation.apply(Batch batch)
Apply this operation to the given
Batch |
void |
Operations.Empty.apply(Batch batch)
This method has no effect.
|
void |
Operations.AddNode.apply(Batch batch)
Apply this operation to the given
Batch |
void |
Operations.AddProperty.apply(Batch batch)
Apply this operation to the given
Batch |
void |
Operations.Move.apply(Batch batch)
Apply this operation to the given
Batch |
void |
Operations.Remove.apply(Batch batch)
Apply this operation to the given
Batch |
void |
Operations.ReorderNodes.apply(Batch batch)
Apply this operation to the given
Batch |
void |
Operations.SetMixins.apply(Batch batch)
Apply this operation to the given
Batch |
void |
Operations.SetPrimaryType.apply(Batch batch)
Apply this operation to the given
Batch |
void |
Operations.SetValue.apply(Batch batch)
Apply this operation to the given
Batch |
void |
Operations.SetTree.apply(Batch batch)
Apply this operation to the given
Batch |
Modifier and Type | Class and Description |
---|---|
class |
BatchLogger
Log wrapper for a
Batch . |
Modifier and Type | Method and Description |
---|---|
static Batch |
SpiLoggerFactory.create(Batch batch,
LogWriterProvider logWriterProvider)
Returns a log wrapper for the given
batch which logs a calls to its
methods if logWriterProvider returns a LogWriter instance for
batch . |
Batch |
RepositoryServiceLogger.createBatch(SessionInfo sessionInfo,
ItemId itemId) |
Batch |
BatchLogger.getBatch() |
Modifier and Type | Method and Description |
---|---|
static Batch |
SpiLoggerFactory.create(Batch batch,
LogWriterProvider logWriterProvider)
Returns a log wrapper for the given
batch which logs a calls to its
methods if logWriterProvider returns a LogWriter instance for
batch . |
Tree |
RepositoryServiceLogger.createTree(SessionInfo sessionInfo,
Batch batch,
Name nodeName,
Name primaryTypeName,
String uniqueId) |
LogWriter |
LogWriterProvider.getLogWriter(Batch batch) |
LogWriter |
Slf4jLogWriterProvider.getLogWriter(Batch batch)
Returns a
Slf4jLogWriter if the logger for
batch.getClass() has debug level enabled. |
LogWriter |
WriterLogWriterProvider.getLogWriter(Batch batch)
Returns a
WriterLogWriter if the logger for
batch.getClass() has debug level enabled. |
void |
RepositoryServiceLogger.submit(Batch batch) |
Constructor and Description |
---|
BatchLogger(Batch batch,
LogWriter writer)
Create a new instance for the given
batch which uses
writer for persisting log messages. |
Modifier and Type | Method and Description |
---|---|
Batch |
RepositoryServiceImpl.createBatch(SessionInfo sessionInfo,
ItemId itemId) |
Modifier and Type | Method and Description |
---|---|
Tree |
RepositoryServiceImpl.createTree(SessionInfo sessionInfo,
Batch batch,
Name nodeName,
Name primaryTypeName,
String uniqueId) |
void |
RepositoryServiceImpl.submit(Batch batch) |
Modifier and Type | Method and Description |
---|---|
Batch |
RepositoryServiceImpl.createBatch(SessionInfo sessionInfo,
ItemId itemId) |
Modifier and Type | Method and Description |
---|---|
Tree |
RepositoryServiceImpl.createTree(SessionInfo sessionInfo,
Batch batch,
Name nodeName,
Name primaryTypeName,
String uniqueId) |
void |
RepositoryServiceImpl.submit(Batch batch) |
Modifier and Type | Method and Description |
---|---|
Batch |
RepositoryServiceImpl.createBatch(SessionInfo sessionInfo,
ItemId itemId)
Indicates the start of a set of operations that cause modifications
on the underlying persistence layer.
|
Modifier and Type | Method and Description |
---|---|
Tree |
RepositoryServiceImpl.createTree(SessionInfo sessionInfo,
Batch batch,
Name nodeName,
Name primaryTypeName,
String uniqueId) |
void |
RepositoryServiceImpl.submit(Batch batch)
Completes the given
Batch or discard all the previous modifications. |
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.