Package | Description |
---|---|
org.apache.jackrabbit.core |
Contains the core classes that provide the implementation of the JCR API.
|
org.apache.jackrabbit.core.nodetype.virtual | |
org.apache.jackrabbit.core.observation | |
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.pool | |
org.apache.jackrabbit.core.persistence.xml | |
org.apache.jackrabbit.core.query | |
org.apache.jackrabbit.core.query.lucene | |
org.apache.jackrabbit.core.state | |
org.apache.jackrabbit.core.version |
The versioning framework in jackrabbit consists of 3 layers.
|
org.apache.jackrabbit.core.virtual |
Modifier and Type | Method and Description |
---|---|
protected void |
HierarchyManagerImpl.buildPath(PathBuilder builder,
ItemState state,
HierarchyManagerImpl.CycleDetector detector)
Adds the path element of an item id to the path currently being built.
|
protected void |
CachingHierarchyManager.buildPath(PathBuilder builder,
ItemState state,
HierarchyManagerImpl.CycleDetector detector)
Adds the path element of an item id to the path currently being built.
|
protected SharedItemStateManager |
RepositoryImpl.createItemStateManager(PersistenceManager persistMgr,
boolean usesReferences,
ISMLocking locking)
Creates a
SharedItemStateManager or derivative. |
protected ItemState |
ZombieHierarchyManager.getItemState(ItemId id)
Return an item state, given its item id.
|
protected ItemState |
HierarchyManagerImpl.getItemState(ItemId id)
Return an item state, given its item id.
|
protected ItemId |
HierarchyManagerImpl.resolvePath(Path.Element[] elements,
int next,
ItemId id,
int typesAllowed)
Internal implementation that iteratively resolves a path into an item.
|
Modifier and Type | Method and Description |
---|---|
protected VirtualNodeState |
VirtualNodeTypeStateProvider.internalGetNodeState(NodeId id)
Retrieves the node state with the given node id
|
Modifier and Type | Method and Description |
---|---|
void |
EventStateCollection.createEventStates(NodeId rootNodeId,
ChangeLog changes,
ItemStateManager stateMgr)
|
static EventState |
EventState.nodeMovedWithInfo(NodeId parentId,
Path destPath,
NodeId childId,
Path srcPath,
Name nodeType,
Set<Name> mixins,
Session session,
boolean external)
Creates a new
Event of type
NODE_MOVED . |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractPersistenceManager.destroy(NodeReferences refs)
Deprecated.
Destroy a node references object.
|
protected abstract void |
AbstractPersistenceManager.destroy(NodeState state)
Deprecated.
Destroy a node state.
|
protected abstract void |
AbstractPersistenceManager.destroy(PropertyState state)
Deprecated.
Destroy a property state.
|
boolean |
PersistenceManager.exists(NodeId id)
Checks whether the identified node exists.
|
boolean |
PersistenceManager.exists(PropertyId id)
Checks whether the identified property exists.
|
boolean |
PersistenceManager.existsReferencesTo(NodeId targetId)
Checks whether references of the identified target node exist.
|
List<NodeId> |
IterablePersistenceManager.getAllNodeIds(NodeId after,
int maxCount)
Get all node ids.
|
Map<NodeId,NodeInfo> |
IterablePersistenceManager.getAllNodeInfos(NodeId after,
int maxCount)
Get all
NodeInfo s. |
NodeState |
PersistenceManager.load(NodeId id)
Load the persistent members of a node state.
|
PropertyState |
PersistenceManager.load(PropertyId id)
Load the persistent members of a property state.
|
NodeReferences |
PersistenceManager.loadReferencesTo(NodeId id)
Load the persisted references to the node with the given identifier.
|
void |
PersistenceManager.store(ChangeLog changeLog)
Atomically saves the given set of changes.
|
void |
AbstractPersistenceManager.store(ChangeLog changeLog)
Deprecated.
Right now, this iterates over all items in the changelog and
calls the individual methods that handle single item states
or node references objects.
|
protected abstract void |
AbstractPersistenceManager.store(NodeReferences refs)
Deprecated.
Store a references object.
|
protected abstract void |
AbstractPersistenceManager.store(NodeState state)
Deprecated.
Store a node state.
|
protected abstract void |
AbstractPersistenceManager.store(PropertyState state)
Deprecated.
Store a property state.
|
Modifier and Type | Method and Description |
---|---|
void |
BundleFsPersistenceManager.destroy(NodeReferences refs)
Deletes the node references from the underlying system.
|
protected abstract void |
AbstractBundlePersistenceManager.destroy(NodeReferences refs)
Deletes the node references from the underlying system.
|
protected void |
BundleFsPersistenceManager.destroyBundle(NodePropBundle bundle)
Deletes the bundle from the underlying system.
|
protected abstract void |
AbstractBundlePersistenceManager.destroyBundle(NodePropBundle bundle)
Deletes the bundle from the underlying system.
|
boolean |
AbstractBundlePersistenceManager.exists(NodeId id)
Checks whether the identified node exists.
|
boolean |
AbstractBundlePersistenceManager.exists(PropertyId id)
Checks whether the identified property exists.
|
boolean |
BundleFsPersistenceManager.existsReferencesTo(NodeId targetId)
Checks whether references of the identified target node exist.
|
List<NodeId> |
BundleFsPersistenceManager.getAllNodeIds(NodeId bigger,
int maxCount)
Get all node ids.
|
Map<NodeId,NodeInfo> |
AbstractBundlePersistenceManager.getAllNodeInfos(NodeId after,
int maxCount) |
NodeState |
AbstractBundlePersistenceManager.load(NodeId id)
Load the persistent members of a node state.
|
PropertyState |
AbstractBundlePersistenceManager.load(PropertyId id)
Load the persistent members of a property state.
|
protected NodePropBundle |
BundleFsPersistenceManager.loadBundle(NodeId id)
Loads a bundle from the underlying system.
|
protected abstract NodePropBundle |
AbstractBundlePersistenceManager.loadBundle(NodeId id)
Loads a bundle from the underlying system.
|
NodeReferences |
BundleFsPersistenceManager.loadReferencesTo(NodeId targetId)
Load the persisted references to the node with the given identifier.
|
void |
AbstractBundlePersistenceManager.store(ChangeLog changeLog)
Right now, this iterates over all items in the changelog and
calls the individual methods that handle single item states
or node references objects.
|
void |
BundleFsPersistenceManager.store(NodeReferences refs)
Stores a node references to the underlying system.
|
protected abstract void |
AbstractBundlePersistenceManager.store(NodeReferences refs)
Stores a node references to the underlying system.
|
protected void |
BundleFsPersistenceManager.storeBundle(NodePropBundle bundle)
Stores a bundle to the underlying system.
|
protected abstract void |
AbstractBundlePersistenceManager.storeBundle(NodePropBundle bundle)
Stores a bundle to the underlying system.
|
Modifier and Type | Method and Description |
---|---|
void |
DatabasePersistenceManager.destroy(NodeReferences refs)
Deprecated.
Destroy a node references object.
|
void |
DatabasePersistenceManager.destroy(NodeState state)
Deprecated.
Destroy a node state.
|
void |
DatabasePersistenceManager.destroy(PropertyState state)
Deprecated.
Destroy a property state.
|
boolean |
DatabasePersistenceManager.exists(NodeId id)
Deprecated.
Checks whether the identified node exists.
|
boolean |
DatabasePersistenceManager.exists(PropertyId id)
Deprecated.
Checks whether the identified property exists.
|
boolean |
DatabasePersistenceManager.existsReferencesTo(NodeId targetId)
Deprecated.
Checks whether references of the identified target node exist.
|
NodeState |
DatabasePersistenceManager.load(NodeId id)
Deprecated.
Load the persistent members of a node state.
|
PropertyState |
DatabasePersistenceManager.load(PropertyId id)
Deprecated.
Load the persistent members of a property state.
|
NodeReferences |
DatabasePersistenceManager.loadReferencesTo(NodeId targetId)
Deprecated.
Load the persisted references to the node with the given identifier.
|
void |
DatabasePersistenceManager.store(ChangeLog changeLog)
Deprecated.
Right now, this iterates over all items in the changelog and
calls the individual methods that handle single item states
or node references objects.
|
void |
OraclePersistenceManager.store(NodeReferences refs)
Deprecated.
Store a references object.
|
void |
DatabasePersistenceManager.store(NodeReferences refs)
Deprecated.
Store a references object.
|
void |
OraclePersistenceManager.store(NodeState state)
Deprecated.
Store a node state.
|
void |
DatabasePersistenceManager.store(NodeState state)
Deprecated.
Store a node state.
|
void |
OraclePersistenceManager.store(PropertyState state)
Deprecated.
Store a property state.
|
void |
DatabasePersistenceManager.store(PropertyState state)
Deprecated.
Store a property state.
|
Modifier and Type | Method and Description |
---|---|
protected void |
InMemPersistenceManager.destroy(NodeReferences refs)
Deprecated.
Destroy a node references object.
|
protected void |
InMemBundlePersistenceManager.destroy(NodeReferences refs)
Deletes the node references from the underlying system.
|
protected void |
InMemPersistenceManager.destroy(NodeState state)
Deprecated.
Destroy a node state.
|
protected void |
InMemPersistenceManager.destroy(PropertyState state)
Deprecated.
Destroy a property state.
|
protected void |
InMemBundlePersistenceManager.destroyBundle(NodePropBundle bundle)
Deletes the bundle from the underlying system.
|
boolean |
InMemPersistenceManager.exists(NodeId id)
Deprecated.
Checks whether the identified node exists.
|
boolean |
InMemPersistenceManager.exists(PropertyId id)
Deprecated.
Checks whether the identified property exists.
|
boolean |
InMemPersistenceManager.existsReferencesTo(NodeId id)
Deprecated.
Checks whether references of the identified target node exist.
|
boolean |
InMemBundlePersistenceManager.existsReferencesTo(NodeId targetId)
Checks whether references of the identified target node exist.
|
List<NodeId> |
InMemBundlePersistenceManager.getAllNodeIds(NodeId after,
int maxCount)
Get all node ids.
|
NodeState |
InMemPersistenceManager.load(NodeId id)
Deprecated.
Load the persistent members of a node state.
|
PropertyState |
InMemPersistenceManager.load(PropertyId id)
Deprecated.
Load the persistent members of a property state.
|
protected NodePropBundle |
InMemBundlePersistenceManager.loadBundle(NodeId id)
Loads a bundle from the underlying system.
|
NodeReferences |
InMemPersistenceManager.loadReferencesTo(NodeId id)
Deprecated.
Load the persisted references to the node with the given identifier.
|
NodeReferences |
InMemBundlePersistenceManager.loadReferencesTo(NodeId id)
Load the persisted references to the node with the given identifier.
|
protected void |
InMemPersistenceManager.store(NodeReferences refs)
Deprecated.
Store a references object.
|
protected void |
InMemBundlePersistenceManager.store(NodeReferences refs)
Stores a node references to the underlying system.
|
protected void |
InMemPersistenceManager.store(NodeState state)
Deprecated.
Store a node state.
|
protected void |
InMemPersistenceManager.store(PropertyState state)
Deprecated.
Store a property state.
|
protected void |
InMemBundlePersistenceManager.storeBundle(NodePropBundle bundle)
Stores a bundle to the underlying system.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ObjectPersistenceManager.destroy(NodeReferences refs)
Deprecated.
Destroy a node references object.
|
protected void |
ObjectPersistenceManager.destroy(NodeState state)
Deprecated.
Destroy a node state.
|
protected void |
ObjectPersistenceManager.destroy(PropertyState state)
Deprecated.
Destroy a property state.
|
boolean |
ObjectPersistenceManager.exists(NodeId id)
Deprecated.
Checks whether the identified node exists.
|
boolean |
ObjectPersistenceManager.exists(PropertyId id)
Deprecated.
Checks whether the identified property exists.
|
boolean |
ObjectPersistenceManager.existsReferencesTo(NodeId id)
Deprecated.
Checks whether references of the identified target node exist.
|
NodeState |
ObjectPersistenceManager.load(NodeId id)
Deprecated.
Load the persistent members of a node state.
|
PropertyState |
ObjectPersistenceManager.load(PropertyId id)
Deprecated.
Load the persistent members of a property state.
|
NodeReferences |
ObjectPersistenceManager.loadReferencesTo(NodeId id)
Deprecated.
Load the persisted references to the node with the given identifier.
|
protected void |
ObjectPersistenceManager.store(NodeReferences refs)
Deprecated.
Store a references object.
|
protected void |
ObjectPersistenceManager.store(NodeState state)
Deprecated.
Store a node state.
|
protected void |
ObjectPersistenceManager.store(PropertyState state)
Deprecated.
Store a property state.
|
Modifier and Type | Method and Description |
---|---|
void |
BundleDbPersistenceManager.destroy(NodeReferences refs)
Deletes the node references from the underlying system.
|
protected void |
BundleDbPersistenceManager.destroyBundle(NodePropBundle bundle)
Deletes the bundle from the underlying system.
|
boolean |
BundleDbPersistenceManager.existsReferencesTo(NodeId targetId)
Checks whether references of the identified target node exist.
|
List<NodeId> |
BundleDbPersistenceManager.getAllNodeIds(NodeId bigger,
int maxCount)
Get all node ids.
|
Map<NodeId,NodeInfo> |
BundleDbPersistenceManager.getAllNodeInfos(NodeId bigger,
int maxCount)
Get all
NodeInfo s. |
protected NodePropBundle |
BundleDbPersistenceManager.loadBundle(NodeId id)
Loads a bundle from the underlying system.
|
NodeReferences |
BundleDbPersistenceManager.loadReferencesTo(NodeId targetId)
Load the persisted references to the node with the given identifier.
|
void |
BundleDbPersistenceManager.store(ChangeLog changeLog)
Right now, this iterates over all items in the changelog and
calls the individual methods that handle single item states
or node references objects.
|
void |
BundleDbPersistenceManager.store(NodeReferences refs)
Stores a node references to the underlying system.
|
protected void |
BundleDbPersistenceManager.storeBundle(NodePropBundle bundle)
Stores a bundle to the underlying system.
|
Modifier and Type | Method and Description |
---|---|
protected void |
XMLPersistenceManager.destroy(NodeReferences refs)
Deprecated.
Destroy a node references object.
|
protected void |
XMLPersistenceManager.destroy(NodeState state)
Deprecated.
Destroy a node state.
|
protected void |
XMLPersistenceManager.destroy(PropertyState state)
Deprecated.
Destroy a property state.
|
boolean |
XMLPersistenceManager.exists(NodeId id)
Deprecated.
Checks whether the identified node exists.
|
boolean |
XMLPersistenceManager.exists(PropertyId id)
Deprecated.
Checks whether the identified property exists.
|
boolean |
XMLPersistenceManager.existsReferencesTo(NodeId id)
Deprecated.
Checks whether references of the identified target node exist.
|
NodeState |
XMLPersistenceManager.load(NodeId id)
Deprecated.
Load the persistent members of a node state.
|
PropertyState |
XMLPersistenceManager.load(PropertyId id)
Deprecated.
Load the persistent members of a property state.
|
NodeReferences |
XMLPersistenceManager.loadReferencesTo(NodeId id)
Deprecated.
Load the persisted references to the node with the given identifier.
|
protected void |
XMLPersistenceManager.store(NodeReferences refs)
Deprecated.
Store a references object.
|
protected void |
XMLPersistenceManager.store(NodeState state)
Deprecated.
Store a node state.
|
protected void |
XMLPersistenceManager.store(PropertyState state)
Deprecated.
Store a property state.
|
Modifier and Type | Method and Description |
---|---|
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 |
---|---|
abstract void |
OnWorkspaceInconsistency.handleMissingChildNode(NoSuchItemStateException exception,
QueryHandler handler,
Path path,
NodeState node,
ChildNodeEntry child)
Handle a missing child node state.
|
Modifier and Type | Method and Description |
---|---|
protected void |
NodeIndexer.addParentChildRelation(org.apache.lucene.document.Document doc,
NodeId parentId)
Adds a parent child relation to the given
doc . |
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. |
protected Path |
SearchIndex.getRelativePath(NodeState nodeState,
PropertyState propState)
Returns the relative path from
nodeState to
propState . |
protected InternalValue |
NodeIndexer.getValue(Name name)
Utility method that extracts the first value of the named property
of the current node.
|
Modifier and Type | Class and Description |
---|---|
class |
NoSuchItemStateException
The
NoSuchItemStateException ... |
class |
StaleItemStateException
Signals that an item has been modified externally and that the item state
representing it has thus become stale.
|
Modifier and Type | Method and Description |
---|---|
org.apache.jackrabbit.core.state.SharedItemStateManager.Update |
SharedItemStateManager.beginUpdate(ChangeLog local,
EventStateCollectionFactory factory,
VirtualItemStateProvider virtualProvider)
Begin update operation.
|
void |
ItemState.connect(ItemState overlayedState)
Connect this state to some underlying overlayed state.
|
PropertyState |
SessionItemStateManager.createNew(PropertyState transientState)
Customized variant of
SessionItemStateManager.createNew(Name, NodeId) that
connects the newly created persistent state with the transient state. |
NodeState |
SessionItemStateManager.createTransientNodeState(NodeState overlayedState,
int initialStatus) |
PropertyState |
SessionItemStateManager.createTransientPropertyState(NodeId parentId,
Name propName,
int initialStatus) |
PropertyState |
SessionItemStateManager.createTransientPropertyState(PropertyState overlayedState,
int initialStatus) |
ItemState |
XAItemStateManager.getItemState(ItemId id)
Return an item state, given its item id.
|
ItemState |
SharedItemStateManager.getItemState(ItemId id)
Return an item state, given its item id.
|
ItemState |
SessionItemStateManager.getItemState(ItemId id)
Return an item state, given its item id.
|
ItemState |
LocalItemStateManager.getItemState(ItemId id)
Return an item state, given its item id.
|
ItemState |
ItemStateManager.getItemState(ItemId id)
Return an item state, given its item id.
|
NodeReferences |
XAItemStateManager.getNodeReferences(NodeId id)
Return a node references object, given its target id
|
NodeReferences |
SharedItemStateManager.getNodeReferences(NodeId id)
Return a node references object, given its target id
|
NodeReferences |
SessionItemStateManager.getNodeReferences(NodeId id)
Return a node references object, given its target id
|
NodeReferences |
LocalItemStateManager.getNodeReferences(NodeId id)
Return a node references object, given its target id
|
NodeReferences |
ItemStateManager.getNodeReferences(NodeId id)
Return a node references object, given its target id
|
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.
|
protected PropertyState |
LocalItemStateManager.getPropertyState(PropertyId id)
Retrieve a property state from the parent shared state manager and
wraps it into a intermediate object that helps us handle local
modifications.
|
ItemState |
SessionItemStateManager.getTransientItemState(ItemId id) |
protected void |
ItemState.reconnect()
Reconnect this state to the overlayed state that it has been
disconnected from earlier.
|
void |
UpdatableItemStateManager.update()
End an update operation.
|
void |
SessionItemStateManager.update()
End an update operation.
|
void |
LocalItemStateManager.update()
End an update operation.
|
protected void |
XAItemStateManager.update(ChangeLog changeLog)
End an update operation.
|
protected void |
LocalItemStateManager.update(ChangeLog changeLog)
End an update operation.
|
void |
SharedItemStateManager.update(ChangeLog local,
EventStateCollectionFactory factory)
Store modifications registered in a
ChangeLog . |
Constructor and Description |
---|
SharedItemStateManager(PersistenceManager persistMgr,
NodeId rootNodeId,
NodeTypeRegistry ntReg,
boolean usesReferences,
ItemStateCacheFactory cacheFactory,
ISMLocking locking,
NodeIdFactory nodeIdFactory)
Creates a new
SharedItemStateManager instance. |
Modifier and Type | Method and Description |
---|---|
protected void |
VersionItemStateManager.checkReferentialIntegrity(ChangeLog changes) |
protected VersionItemStateManager |
InternalVersionManagerImpl.createItemStateManager(PersistenceManager pMgr,
NodeId rootId,
NodeTypeRegistry ntReg,
ItemStateCacheFactory cacheFactory,
ISMLocking ismLocking,
NodeIdFactory nodeIdFactory)
Creates a
VersionItemStateManager or derivative. |
ItemState |
InternalXAVersionManager.getItemState(ItemId id)
Return an item state, given its item id.
|
NodeReferences |
VersionItemStateManager.getNodeReferences(NodeId id) |
NodeReferences |
InternalXAVersionManager.getNodeReferences(NodeId id)
Return a node references object, given its target id
|
PropertyState[] |
NodeStateEx.getProperties()
Returns the properties of this node
|
protected Set<InternalVersion> |
VersionManagerImplRestore.internalRestore(NodeStateEx state,
InternalVersion version,
VersionSelector vsel,
boolean removeExisting)
Internal method to restore a version.
|
protected void |
VersionManagerImplRestore.internalRestore(VersionSet versions,
boolean removeExisting) |
protected void |
VersionManagerImplRestore.internalRestoreFrozen(NodeStateEx state,
InternalFrozenNode freeze,
VersionSelector vsel,
Set<InternalVersion> restored,
boolean removeExisting,
boolean copy)
Restores the properties and child nodes from the frozen state.
|
protected void |
VersionManagerImplMerge.merge(NodeStateEx state,
NodeStateEx srcRoot,
List<ItemId> failedIds,
boolean bestEffort,
boolean shallow)
Merges/Updates this node with its corresponding ones
|
void |
VersionManagerImplBase.WriteOperation.save()
Saves the pending operations in the
LocalItemStateManager . |
Constructor and Description |
---|
VersionItemStateManager(PersistenceManager persistMgr,
NodeId rootNodeId,
NodeTypeRegistry ntReg,
ItemStateCacheFactory cacheFactory,
ISMLocking locking,
NodeIdFactory nodeIdFactory) |
Modifier and Type | Method and Description |
---|---|
ItemState |
AbstractVISProvider.getItemState(ItemId id)
Return an item state, given its item id.
|
NodeReferences |
AbstractVISProvider.getNodeReferences(NodeId id)
Return a node references object, given its target id
|
NodeState |
AbstractVISProvider.getRootState()
Returns the root state
|
protected abstract VirtualNodeState |
AbstractVISProvider.internalGetNodeState(NodeId id)
Retrieves the node state with the given node id
|
protected VirtualPropertyState |
AbstractVISProvider.internalGetPropertyState(PropertyId id)
Retrieves the property state for the given id
|
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.