Package | Description |
---|---|
org.apache.jackrabbit.core |
Contains the core classes that provide the implementation of the JCR API.
|
org.apache.jackrabbit.core.persistence | |
org.apache.jackrabbit.core.persistence.bundle | |
org.apache.jackrabbit.core.persistence.db |
This package contains the class
,
a simple generic JDBC-based PersistenceManager for Jackrabbit. |
org.apache.jackrabbit.core.persistence.mem | |
org.apache.jackrabbit.core.persistence.obj | |
org.apache.jackrabbit.core.persistence.util | |
org.apache.jackrabbit.core.persistence.xml | |
org.apache.jackrabbit.core.query | |
org.apache.jackrabbit.core.query.lucene | |
org.apache.jackrabbit.core.security.user | |
org.apache.jackrabbit.core.state | |
org.apache.jackrabbit.core.version |
The versioning framework in jackrabbit consists of 3 layers.
|
org.apache.jackrabbit.core.virtual | |
org.apache.jackrabbit.core.xml |
Modifier and Type | Method and Description |
---|---|
NodeState |
BatchedItemOperations.createNodeState(NodeState parent,
Name nodeName,
Name nodeTypeName,
Name[] mixinNames,
NodeId id)
Creates a new node.
|
NodeState |
BatchedItemOperations.createNodeState(NodeState parent,
Name nodeName,
Name nodeTypeName,
Name[] mixinNames,
NodeId id,
QNodeDefinition def)
Creates a new node based on the given definition.
|
NodeState |
AbstractNodeData.getNodeState()
Return the associated node state.
|
protected NodeState |
BatchedItemOperations.getNodeState(ItemStateManager srcStateMgr,
HierarchyManager srcHierMgr,
Path nodePath)
Retrieves the state of the node at
nodePath using the given
item state manager. |
NodeState |
BatchedItemOperations.getNodeState(NodeId id)
Retrieves the state of the node with the given id.
|
NodeState |
BatchedItemOperations.getNodeState(Path nodePath)
Retrieves the state of the node at the given path.
|
Modifier and Type | Method and Description |
---|---|
void |
BatchedItemOperations.checkAddNode(NodeState parentState,
Name nodeName,
Name nodeTypeName,
int options)
Checks if adding a child node called
nodeName of node type
nodeTypeName to the given parent node is allowed in the
current context. |
void |
BatchedItemOperations.checkRemoveNode(NodeState targetState,
int options)
Checks if removing the given target node is allowed in the current context.
|
void |
BatchedItemOperations.checkRemoveNode(NodeState targetState,
NodeId parentId,
int options)
Checks if removing the given target node from the specifed parent
is allowed in the current context.
|
NodeId |
BatchedItemOperations.clone(NodeState srcState,
NodeState destParentState,
Name destName)
Implementation of
BatchedItemOperations.clone(Path, Path) that has already determined
the affected NodeState s. |
InternalValue[] |
NodeTypeInstanceHandler.computeSystemGeneratedPropertyValues(NodeState parent,
QPropertyDefinition def)
Computes the values of well-known system (i.e.
|
NodeState |
BatchedItemOperations.createNodeState(NodeState parent,
Name nodeName,
Name nodeTypeName,
Name[] mixinNames,
NodeId id)
Creates a new node.
|
NodeState |
BatchedItemOperations.createNodeState(NodeState parent,
Name nodeName,
Name nodeTypeName,
Name[] mixinNames,
NodeId id,
QNodeDefinition def)
Creates a new node based on the given definition.
|
PropertyState |
BatchedItemOperations.createPropertyState(NodeState parent,
Name propName,
int type,
int numValues)
Creates a new property.
|
PropertyState |
BatchedItemOperations.createPropertyState(NodeState parent,
Name propName,
int type,
QPropertyDefinition def)
Creates a new property based on the given definition.
|
QNodeDefinition |
ItemValidator.findApplicableNodeDefinition(Name name,
Name nodeTypeName,
NodeState parentState)
Helper method that finds the applicable definition for a child node with
the given name and node type in the parent node's node type and
mixin types.
|
QPropertyDefinition |
ItemValidator.findApplicablePropertyDefinition(Name name,
int type,
boolean multiValued,
NodeState parentState)
Helper method that finds the applicable definition for a property with
the given name, type and multiValued characteristic in the parent node's
node type and mixin types.
|
QPropertyDefinition |
ItemValidator.findApplicablePropertyDefinition(Name name,
int type,
NodeState parentState)
Helper method that finds the applicable definition for a property with
the given name, type in the parent node's node type and mixin types.
|
protected ChildNodeEntry |
HierarchyManagerImpl.getChildNodeEntry(NodeState parent,
Name name,
int index)
Returns the
ChildNodeEntry of parent with the
specified name and index or null
if there's no such entry. |
protected ChildNodeEntry |
ZombieHierarchyManager.getChildNodeEntry(NodeState parent,
Name name,
int index)
Returns the
ChildNodeEntry of parent with the
specified name and index or null
if there's no such entry. |
protected ChildNodeEntry |
HierarchyManagerImpl.getChildNodeEntry(NodeState parent,
NodeId id)
Returns the
ChildNodeEntry of parent with the
specified uuid or null if there's no such entry. |
protected ChildNodeEntry |
ZombieHierarchyManager.getChildNodeEntry(NodeState parent,
NodeId id)
Returns the
ChildNodeEntry of parent with the
specified uuid or null if there's no such entry. |
EffectiveNodeType |
ItemValidator.getEffectiveNodeType(NodeState state)
Helper method that builds the effective (i.e.
|
void |
CachingHierarchyManager.nodeAdded(NodeState state,
Name name,
int index,
NodeId id)
Called when a child node has been added
|
void |
CachingHierarchyManager.nodeModified(NodeState modified)
Called when a node has been modified, typically as a result of removal
or addition of a child node.
|
void |
CachingHierarchyManager.nodeRemoved(NodeState state,
Name name,
int index,
NodeId id)
Called when a child node has been removed
|
void |
CachingHierarchyManager.nodesReplaced(NodeState state)
Called when the children nodes were replaced by other nodes, typically
as result of a reorder operation.
|
void |
BatchedItemOperations.removeNodeState(NodeState target)
Unlinks the specified node state from its parent and recursively
removes it including its properties and child nodes.
|
protected void |
NodeImpl.restoreTransient(NodeState transientState) |
void |
NodeTypeInstanceHandler.setDefaultValues(PropertyState property,
NodeState parent,
QPropertyDefinition def)
Sets the system-generated or node type -specified default values
of the given property.
|
void |
ItemValidator.validate(NodeState nodeState)
Checks whether the given node state satisfies the constraints specified
by its primary and mixin node types.
|
Constructor and Description |
---|
AbstractNodeData(NodeState state,
ItemManager itemMgr)
Create a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
NodeState |
AbstractPersistenceManager.createNew(NodeId id)
Deprecated.
Creates a new node state instance with the given id.
|
NodeState |
PersistenceManager.createNew(NodeId id)
Creates a new node state instance with the given id.
|
NodeState |
PersistenceManager.load(NodeId id)
Load the persistent members of a node state.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractPersistenceManager.destroy(NodeState state)
Deprecated.
Destroy a node state.
|
protected abstract void |
AbstractPersistenceManager.store(NodeState state)
Deprecated.
Store a node state.
|
Modifier and Type | Method and Description |
---|---|
NodeState |
AbstractBundlePersistenceManager.createNew(NodeId id)
Creates a new node state instance with the given id.
|
NodeState |
AbstractBundlePersistenceManager.load(NodeId id)
Load the persistent members of a node state.
|
Modifier and Type | Method and Description |
---|---|
NodeState |
DatabasePersistenceManager.load(NodeId id)
Deprecated.
Load the persistent members of a node state.
|
Modifier and Type | Method and Description |
---|---|
void |
DatabasePersistenceManager.destroy(NodeState state)
Deprecated.
Destroy a node state.
|
void |
DatabasePersistenceManager.store(NodeState state)
Deprecated.
Store a node state.
|
void |
OraclePersistenceManager.store(NodeState state)
Deprecated.
Store a node state.
|
Modifier and Type | Method and Description |
---|---|
NodeState |
InMemPersistenceManager.load(NodeId id)
Deprecated.
Load the persistent members of a node state.
|
Modifier and Type | Method and Description |
---|---|
protected void |
InMemPersistenceManager.destroy(NodeState state)
Deprecated.
Destroy a node state.
|
protected void |
InMemPersistenceManager.store(NodeState state)
Deprecated.
Store a node state.
|
Modifier and Type | Method and Description |
---|---|
NodeState |
ObjectPersistenceManager.load(NodeId id)
Deprecated.
Load the persistent members of a node state.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ObjectPersistenceManager.destroy(NodeState state)
Deprecated.
Destroy a node state.
|
protected void |
ObjectPersistenceManager.store(NodeState state)
Deprecated.
Store a node state.
|
Modifier and Type | Method and Description |
---|---|
NodeState |
NodePropBundle.createNodeState(PersistenceManager pMgr)
Creates a node state from the values of this bundle
|
Modifier and Type | Method and Description |
---|---|
static void |
Serializer.deserialize(NodeState state,
InputStream stream)
Deserializes a
NodeState object from the given binary
stream . |
static void |
Serializer.serialize(NodeState state,
OutputStream stream)
Serializes the specified
NodeState object to the given
binary stream . |
void |
NodePropBundle.update(NodeState state)
Updates this bundle with values from the given state.
|
Constructor and Description |
---|
NodePropBundle(NodeState state)
Creates a bundle from the given state
|
Modifier and Type | Method and Description |
---|---|
NodeState |
XMLPersistenceManager.load(NodeId id)
Deprecated.
Load the persistent members of a node state.
|
Modifier and Type | Method and Description |
---|---|
protected void |
XMLPersistenceManager.destroy(NodeState state)
Deprecated.
Destroy a node state.
|
protected void |
XMLPersistenceManager.store(NodeState state)
Deprecated.
Store a node state.
|
Modifier and Type | Method and Description |
---|---|
void |
QueryHandler.addNode(NodeState node)
Adds a
Node to the search index. |
abstract void |
OnWorkspaceInconsistency.handleMissingChildNode(NoSuchItemStateException exception,
QueryHandler handler,
Path path,
NodeState node,
ChildNodeEntry child)
Handle a missing child node state.
|
void |
OnWorkspaceInconsistency.logError(ItemStateException exception,
QueryHandler handler,
Path path,
NodeState node,
ChildNodeEntry child)
Logs a generic workspace inconsistency error.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractQueryHandler.updateNodes(Iterator<NodeId> remove,
Iterator<NodeState> add)
This default implementation calls the individual
#deleteNode(org.apache.jackrabbit.core.NodeId)
and QueryHandler.addNode(org.apache.jackrabbit.core.state.NodeState) methods
for each entry in the iterators. |
void |
QueryHandler.updateNodes(Iterator<NodeId> remove,
Iterator<NodeState> add)
Updates the index in an atomic operation.
|
Modifier and Type | Field and Description |
---|---|
protected NodeState |
NodeIndexer.node
The
NodeState of the node to index |
Modifier and Type | Method and Description |
---|---|
NodeState[] |
AggregateRule.getAggregatedNodeStates(NodeState nodeState)
Returns the node states that are part of the indexing aggregate of the
nodeState . |
NodeState |
AggregateRule.getAggregateRoot(NodeState nodeState)
Returns root node state for the indexing aggregate where
nodeState belongs to. |
Modifier and Type | Method and Description |
---|---|
void |
SearchIndex.addNode(NodeState node)
Adds the
node to the search index. |
protected org.apache.lucene.document.Document |
SearchIndex.createDocument(NodeState node,
NamespaceMappings nsMappings,
IndexFormatVersion indexFormatVersion)
Creates a lucene
Document for a node state using the
namespace mappings nsMappings . |
NodeState[] |
AggregateRule.getAggregatedNodeStates(NodeState nodeState)
Returns the node states that are part of the indexing aggregate of the
nodeState . |
PropertyState[] |
AggregateRule.getAggregatedPropertyStates(NodeState nodeState)
Returns the property states that are part of the indexing aggregate of
the
nodeState . |
NodeState |
AggregateRule.getAggregateRoot(NodeState nodeState)
Returns root node state for the indexing aggregate where
nodeState belongs to. |
float |
IndexingConfiguration.getNodeBoost(NodeState state)
Returns the boost for the node scope fulltext index field.
|
float |
IndexingConfigurationImpl.getNodeBoost(NodeState state)
Returns the boost for the node scope fulltext index field.
|
float |
IndexingConfiguration.getPropertyBoost(NodeState state,
Name propertyName)
Returns the boost value for the given property name.
|
float |
IndexingConfigurationImpl.getPropertyBoost(NodeState state,
Name propertyName)
Returns the boost value for the given property name.
|
protected Path |
SearchIndex.getRelativePath(NodeState nodeState,
PropertyState propState)
Returns the relative path from
nodeState to
propState . |
boolean |
IndexingConfiguration.isIncludedInNodeScopeIndex(NodeState state,
Name propertyName)
Returns
true if the property with the given name should be
included in the node scope fulltext index. |
boolean |
IndexingConfigurationImpl.isIncludedInNodeScopeIndex(NodeState state,
Name propertyName)
Returns
true if the property with the given name should be
included in the node scope fulltext index. |
boolean |
IndexingConfiguration.isIndexed(NodeState state,
Name propertyName)
Returns
true if the property with the given name is indexed
according to this configuration. |
boolean |
IndexingConfigurationImpl.isIndexed(NodeState state,
Name propertyName)
Returns
true if the property with the given name is fulltext
indexed according to this configuration. |
protected void |
SearchIndex.mergeAggregatedNodeIndexes(NodeState state,
org.apache.lucene.document.Document doc,
IndexFormatVersion ifv)
Merges the fulltext indexed fields of the aggregated node states into
doc . |
protected void |
SearchIndex.retrieveAggregateRoot(NodeState state,
Map<NodeId,NodeState> aggregates)
Retrieves the root of the indexing aggregate for
state and
puts it into aggregates map. |
boolean |
IndexingConfiguration.useInExcerpt(NodeState state,
Name propertyName)
Returns
true if the content of the property with the given
name should show up in an excerpt. |
boolean |
IndexingConfigurationImpl.useInExcerpt(NodeState state,
Name propertyName)
Returns
true if the content of the property with the given
name should show up in an excerpt. |
Modifier and Type | Method and Description |
---|---|
protected void |
SearchIndex.retrieveAggregateRoot(NodeState state,
Map<NodeId,NodeState> aggregates)
Retrieves the root of the indexing aggregate for
state and
puts it into aggregates map. |
protected void |
SearchIndex.retrieveAggregateRoot(Set<NodeId> removedIds,
Map<NodeId,NodeState> aggregates)
Retrieves the root of the indexing aggregate for
removedIds
and puts it into map . |
void |
SearchIndex.updateNodes(Iterator<NodeId> remove,
Iterator<NodeState> add)
This implementation forwards the call to
MultiIndex.update(Collection, Collection) and
transforms the two iterators to the required types. |
Constructor and Description |
---|
NodeIndexer(NodeState node,
ItemStateManager stateProvider,
NamespaceMappings mappings,
Executor executor,
org.apache.tika.parser.Parser parser)
Creates a new node indexer.
|
Modifier and Type | Method and Description |
---|---|
void |
UserImporter.end(NodeState protectedParent) |
boolean |
UserImporter.handlePropInfo(NodeState parent,
PropInfo protectedPropInfo,
QPropertyDefinition def) |
boolean |
UserImporter.start(NodeState protectedParent) |
Modifier and Type | Method and Description |
---|---|
NodeState |
LocalItemStateManager.createNew(NodeId id,
Name nodeTypeName,
NodeId parentId)
Creates a
NodeState instance representing new,
i.e. |
NodeState |
SessionItemStateManager.createNew(NodeId id,
Name nodeTypeName,
NodeId parentId)
Creates a
NodeState instance representing new,
i.e. |
NodeState |
UpdatableItemStateManager.createNew(NodeId id,
Name nodeTypeName,
NodeId parentId)
Creates a
NodeState instance representing new,
i.e. |
NodeState |
SessionItemStateManager.createTransientNodeState(NodeId id,
Name nodeTypeName,
NodeId parentId,
int initialStatus) |
NodeState |
SessionItemStateManager.createTransientNodeState(NodeState overlayedState,
int initialStatus) |
protected NodeState |
LocalItemStateManager.getNodeState(NodeId id)
Retrieve a node state from the parent shared state manager and
wraps it into a intermediate object that helps us handle local
modifications.
|
NodeState |
LocalItemStateManager.getOrCreateLocalState(NodeState transientState)
Returns the local node state below the given transient one.
|
NodeState |
SessionItemStateManager.makePersistent(NodeState transientState)
Pushes the given transient state to the change log so it'll be
persisted when the change log is committed.
|
Modifier and Type | Method and Description |
---|---|
NodeState |
SessionItemStateManager.createTransientNodeState(NodeState overlayedState,
int initialStatus) |
NodeState |
LocalItemStateManager.getOrCreateLocalState(NodeState transientState)
Returns the local node state below the given transient one.
|
NodeState |
SessionItemStateManager.makePersistent(NodeState transientState)
Pushes the given transient state to the change log so it'll be
persisted when the change log is committed.
|
void |
LocalItemStateManager.nodeAdded(NodeState state,
Name name,
int index,
NodeId id)
Called when a child node has been added
|
void |
NodeStateListener.nodeAdded(NodeState state,
Name name,
int index,
NodeId id)
Called when a child node has been added
|
void |
SessionItemStateManager.nodeAdded(NodeState state,
Name name,
int index,
NodeId id)
Called when a child node has been added
|
void |
LocalItemStateManager.nodeModified(NodeState state)
Called when a node has been modified, typically as a result of removal
or addition of a child node.
|
void |
NodeStateListener.nodeModified(NodeState state)
Called when a node has been modified, typically as a result of removal
or addition of a child node.
|
void |
SessionItemStateManager.nodeModified(NodeState state)
Called when a node has been modified, typically as a result of removal
or addition of a child node.
|
void |
LocalItemStateManager.nodeRemoved(NodeState state,
Name name,
int index,
NodeId id)
Called when a child node has been removed
|
void |
NodeStateListener.nodeRemoved(NodeState state,
Name name,
int index,
NodeId id)
Called when a child node has been removed
|
void |
SessionItemStateManager.nodeRemoved(NodeState state,
Name name,
int index,
NodeId id)
Called when a child node has been removed
|
void |
LocalItemStateManager.nodesReplaced(NodeState state)
Called when the children nodes were replaced by other nodes, typically
as result of a reorder operation.
|
void |
NodeStateListener.nodesReplaced(NodeState state)
Called when the children nodes were replaced by other nodes, typically
as result of a reorder operation.
|
void |
SessionItemStateManager.nodesReplaced(NodeState state)
Called when the children nodes were replaced by other nodes, typically
as result of a reorder operation.
|
void |
StateChangeDispatcher.notifyNodeAdded(NodeState state,
Name name,
int index,
NodeId id)
Notify listeners about changes to some state.
|
void |
StateChangeDispatcher.notifyNodeModified(NodeState state)
Notify listeners about changes to some state.
|
void |
StateChangeDispatcher.notifyNodeRemoved(NodeState state,
Name name,
int index,
NodeId id)
Notify listeners about changes to some state.
|
void |
StateChangeDispatcher.notifyNodesReplaced(NodeState state)
Notify listeners about changes to some state.
|
Constructor and Description |
---|
NodeState(NodeState overlayedState,
int initialStatus,
boolean isTransient)
Constructs a new node state that is initially connected to an overlayed
state.
|
Modifier and Type | Method and Description |
---|---|
NodeState |
NodeStateEx.getState()
Returns the underlaying node state.
|
Modifier and Type | Method and Description |
---|---|
protected VersionHistoryInfo |
InternalVersionManagerImpl.createVersionHistory(Session session,
NodeState node,
NodeId copiedFrom)
Creates a new version history.
|
protected VersionHistoryInfo |
InternalXAVersionManager.createVersionHistory(Session session,
NodeState node,
NodeId copiedFrom)
Creates a new version history.
|
VersionHistoryInfo |
InternalVersionManager.getVersionHistory(Session session,
NodeState vNode,
NodeId copiedFrom)
Returns information about the version history of the specified node.
|
Constructor and Description |
---|
NodeStateEx(UpdatableItemStateManager stateMgr,
NodeTypeRegistry ntReg,
NodeState nodeState,
Name name)
Creates a new persistent node
|
Modifier and Type | Class and Description |
---|---|
class |
VirtualNodeState
This Class implements a virtual node state
|
Modifier and Type | Method and Description |
---|---|
protected NodeState |
AbstractVISProvider.cache(NodeState state)
adds the node state to the cache
|
NodeState |
AbstractVISProvider.getRootState()
Returns the root state
|
Modifier and Type | Method and Description |
---|---|
void |
VirtualNodeState.addStateReference(NodeState state)
Adds a hard reference to another state
|
protected NodeState |
AbstractVISProvider.cache(NodeState state)
adds the node state to the cache
|
protected QNodeDefinition |
AbstractVISProvider.getApplicableChildNodeDef(NodeState parent,
Name nodeName,
Name nodeTypeName)
Retrieves the node definition for the given constraints.
|
protected QPropertyDefinition |
AbstractVISProvider.getApplicablePropertyDef(NodeState parent,
Name propertyName,
int type,
boolean multiValued)
retrieves the property definition for the given constraints
|
protected EffectiveNodeType |
AbstractVISProvider.getEffectiveNodeType(NodeState parent)
Returns the effective (i.e.
|
Modifier and Type | Method and Description |
---|---|
protected NodeState |
WorkspaceImporter.resolveUUIDConflict(NodeState parent,
NodeState conflicting,
NodeInfo nodeInfo) |
Modifier and Type | Method and Description |
---|---|
void |
AccessControlImporter.end(NodeState protectedParent) |
void |
DefaultProtectedItemImporter.end(NodeState protectedParent)
Does nothing.
|
void |
ProtectedNodeImporter.end(NodeState protectedParent)
Informs this importer that the tree to be imported below
protectedParent has bee completed. |
boolean |
DefaultProtectedItemImporter.handlePropInfo(NodeState parent,
PropInfo protectedPropInfo,
QPropertyDefinition def)
Always returns
false . |
boolean |
ProtectedPropertyImporter.handlePropInfo(NodeState parent,
PropInfo protectedPropInfo,
QPropertyDefinition def)
Handles a single protected property.
|
protected void |
WorkspaceImporter.postProcessNode(NodeState node)
Post-process imported node (initialize properties with special
semantics etc.)
|
protected void |
WorkspaceImporter.processProperty(NodeState node,
PropInfo pInfo) |
protected NodeState |
WorkspaceImporter.resolveUUIDConflict(NodeState parent,
NodeState conflicting,
NodeInfo nodeInfo) |
boolean |
AccessControlImporter.start(NodeState protectedParent) |
boolean |
DefaultProtectedItemImporter.start(NodeState protectedParent)
Always returns
false . |
boolean |
ProtectedNodeImporter.start(NodeState protectedParent)
Notifies this importer about the existence of a protected node that
has either been created (NEW) or has been found to be existing.
|
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.