Package | Description |
---|---|
org.modeshape.jcr | |
org.modeshape.jcr.cache | |
org.modeshape.jcr.cache.document |
Modifier and Type | Method and Description |
---|---|
CachedNode |
SystemContent.locksNode() |
CachedNode |
SystemContent.namespacesNode() |
CachedNode |
SystemContent.nodeTypesNode() |
CachedNode |
SystemContent.systemNode() |
CachedNode |
SystemContent.versionStorageNode() |
Modifier and Type | Method and Description |
---|---|
protected Iterable<?> |
SystemContent.all(CachedNode node,
Name propertyName) |
protected Object |
SystemContent.first(CachedNode node,
Name propertyName) |
protected Object |
SystemContent.first(CachedNode node,
Name propertyName,
Object defaultValue) |
protected Name |
SystemContent.nextNameForVersionNode(CachedNode historyNode,
Property predecessors,
ChildReferences historyChildren)
Compute the name for the next version node in the given history.
|
protected String |
JcrSession.readableLocation(CachedNode node) |
protected NodeDefinition |
SystemContent.readChildNodeDefinition(CachedNode childDefn) |
NodeTypeDefinition |
SystemContent.readNodeTypeDefinition(CachedNode nodeType) |
protected PropertyDefinition |
SystemContent.readPropertyDefinition(CachedNode propDefn) |
MutableCachedNode |
SystemContent.recordNewVersion(CachedNode versionableNode,
SessionCache cacheForVersionableNode,
Path versionHistoryPath,
NodeKey originalVersionKey,
Collection<Property> versionableProperties,
DateTime now,
AtomicReference<MutableCachedNode> frozenNodeOutput)
The method efficiently updates the JCR version history and storage with a new version of a node being checked in.
|
Modifier and Type | Interface and Description |
---|---|
interface |
MutableCachedNode |
Modifier and Type | Method and Description |
---|---|
CachedNode |
SessionCacheWrapper.getNode(ChildReference reference) |
CachedNode |
NodeCache.getNode(ChildReference reference)
Get the cached representation of the node as represented by the supplied child reference.
|
CachedNode |
SessionCacheWrapper.getNode(NodeKey key) |
CachedNode |
NodeCache.getNode(NodeKey key)
Get the cached representation of the node with the supplied node key.
|
Modifier and Type | Method and Description |
---|---|
protected org.infinispan.Cache<NodeKey,CachedNode> |
RepositoryCache.cacheForWorkspace(String name) |
Modifier and Type | Method and Description |
---|---|
void |
SessionCacheWrapper.clear(CachedNode node) |
void |
SessionCache.clear(CachedNode node)
Clears all changes in the cache that are at or below the supplied node.
|
void |
MutableCachedNode.deepClone(SessionCache cache,
CachedNode sourceNode,
SessionCache sourceCache,
String systemWorkspaceKey,
Connectors connectors)
Clones into this node all the properties and children (deep clone) from the given source node.
|
Map<NodeKey,NodeKey> |
MutableCachedNode.deepCopy(SessionCache cache,
CachedNode sourceNode,
SessionCache sourceCache,
String systemWorkspaceKey,
Connectors connectors)
Copies into this node all the properties and children (deep copy) from the given source node.
|
protected Set<NodeKey> |
AllPathsCache.getAdditionalParentKeys(CachedNode node,
NodeCache cache) |
Set<NodeKey> |
SessionCacheWrapper.getChangedNodeKeysAtOrBelow(CachedNode node) |
Set<NodeKey> |
SessionCache.getChangedNodeKeysAtOrBelow(CachedNode node)
Returns a set with the
NodeKey s of the transient nodes from this cache which are at or below the path of the given
node |
Path |
PathCache.getPath(CachedNode node) |
Iterable<Path> |
AllPathsCache.getPaths(CachedNode node)
Get all of the paths through which the specified node is accessible, including all paths based upon the node's
parent (which can potentially have multiple paths) and upon the node's
additional parents (which each can potentially have multiple paths). |
Modifier and Type | Class and Description |
---|---|
class |
LazyCachedNode
This is a (mostly) immutable
CachedNode implementation that lazily loads its content. |
class |
SessionNode
A node used within a
session when that node has (or may have) transient (unsaved) changes. |
Modifier and Type | Field and Description |
---|---|
protected CachedNode |
SessionNode.DeepCopy.sourceNode |
Modifier and Type | Method and Description |
---|---|
CachedNode |
WorkspaceCache.getNode(ChildReference reference) |
CachedNode |
AbstractSessionCache.getNode(ChildReference reference) |
CachedNode |
WritableSessionCache.getNode(NodeKey key) |
CachedNode |
WorkspaceCache.getNode(NodeKey key) |
CachedNode |
AbstractSessionCache.getNode(NodeKey key) |
protected CachedNode |
SessionNode.nodeInWorkspace(AbstractSessionCache session)
Get the CachedNode within the workspace cache.
|
protected CachedNode |
SessionNode.parent(AbstractSessionCache session) |
protected CachedNode |
LazyCachedNode.parent(WorkspaceCache cache) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractSessionCache.clear(CachedNode node) |
protected void |
SessionNode.DeepCopy.copyProperties(MutableCachedNode targetNode,
CachedNode sourceNode) |
protected void |
SessionNode.DeepClone.copyProperties(MutableCachedNode targetNode,
CachedNode sourceNode) |
protected void |
SessionNode.DeepCopy.copyUUIDProperty(Property sourceProperty,
MutableCachedNode targetNode,
CachedNode sourceNode) |
protected void |
SessionNode.DeepClone.copyUUIDProperty(Property sourceProperty,
MutableCachedNode targetNode,
CachedNode sourceNode) |
void |
SessionNode.deepClone(SessionCache cache,
CachedNode sourceNode,
SessionCache sourceCache,
String systemWorkspaceKey,
Connectors connectors) |
Map<NodeKey,NodeKey> |
SessionNode.deepCopy(SessionCache cache,
CachedNode sourceNode,
SessionCache sourceCache,
String systemWorkspaceKey,
Connectors connectors) |
protected void |
WritableSessionCache.doClear(CachedNode node) |
protected void |
ReadOnlySessionCache.doClear(CachedNode node) |
protected abstract void |
AbstractSessionCache.doClear(CachedNode node) |
protected void |
SessionNode.DeepCopy.doPhase1(MutableCachedNode targetNode,
CachedNode sourceNode)
Perform a copy of the source tree to create a similar tree in the target session.
|
Set<NodeKey> |
WritableSessionCache.getChangedNodeKeysAtOrBelow(CachedNode srcNode) |
Set<NodeKey> |
ReadOnlySessionCache.getChangedNodeKeysAtOrBelow(CachedNode node) |
protected Path.Segment |
SessionNode.getSegment(NodeCache cache,
CachedNode parent)
Get the segment for this node.
|
boolean |
LazyCachedNode.ParentReferenceToSelf.isValid(CachedNode recentParent)
Determine if this instance is still valid, given the supplied
CachedNode instance that represents the
most-recently acquired parent node representation. |
boolean |
LazyCachedNode.RootParentReferenceToSelf.isValid(CachedNode recentParent) |
boolean |
LazyCachedNode.NonRootParentReferenceToSelf.isValid(CachedNode recentParent) |
Constructor and Description |
---|
LazyCachedNode.NonRootParentReferenceToSelf(CachedNode parent,
ChildReference childReferenceInParent) |
SessionNode.DeepClone(SessionNode targetNode,
WritableSessionCache cache,
CachedNode sourceNode,
SessionCache sourceCache,
String systemWorkspaceKey,
Connectors connectors) |
SessionNode.DeepCopy(SessionNode targetNode,
WritableSessionCache cache,
CachedNode sourceNode,
SessionCache sourceCache,
String systemWorkspaceKey,
Connectors connectors) |
Constructor and Description |
---|
WorkspaceCache(ExecutionContext context,
String repositoryKey,
String workspaceName,
DocumentStore documentStore,
DocumentTranslator translator,
NodeKey rootKey,
ConcurrentMap<NodeKey,CachedNode> cache,
ChangeSetListener changeSetListener) |
WorkspaceCache(WorkspaceCache original,
ConcurrentMap<NodeKey,CachedNode> cache,
ChangeSetListener changeSetListener) |
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.