|
ModeShape Distribution 3.0.0.Alpha6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.cache.change.RecordingChanges
@ThreadSafe public class RecordingChanges
A thread-safe Changes
implementation that records the changes and makes them available for iteration.
Constructor Summary | |
---|---|
RecordingChanges(String processKey,
String repositoryKey)
|
|
RecordingChanges(String processKey,
String repositoryKey,
String workspaceName)
|
Method Summary | |
---|---|
void |
binaryValueNoLongerUsed(BinaryKey key)
Create an event that signals that the (stored) binary value with the supplied key is no longer used. |
Set<NodeKey> |
changedNodes()
|
void |
freeze(String userId,
Map<String,String> userData,
DateTime timestamp)
|
String |
getProcessKey()
Get the key of the process in which the changes were made. |
String |
getRepositoryKey()
Get the key of the repository in which the changes were made. |
DateTime |
getTimestamp()
|
Map<String,String> |
getUserData()
|
String |
getUserId()
|
String |
getWorkspaceName()
Get the name of the workspace in which the changes were made. |
Iterator<Change> |
iterator()
Returns an iterator over the elements in this queue in proper sequence. |
void |
nodeChanged(NodeKey key,
Path path)
Create an event signifying that something about the node (other than the properties or location) changed. |
void |
nodeCreated(NodeKey key,
NodeKey parentKey,
Path path,
Map<Name,Property> properties)
|
void |
nodeMoved(NodeKey key,
NodeKey newParent,
NodeKey oldParent,
Path newPath,
Path oldPath)
|
void |
nodeRemoved(NodeKey key,
NodeKey parentKey,
Path path)
|
void |
nodeRenamed(NodeKey key,
Path newPath,
Path.Segment oldName)
|
void |
nodeReordered(NodeKey key,
NodeKey parent,
Path newPath,
Path oldPath,
Path reorderedBeforePath)
|
void |
nodeSequenced(NodeKey sequencedNodeKey,
Path sequencedNodePath,
NodeKey outputNodeKey,
Path outputNodePath,
String outputPath,
String userId,
String selectedPath,
String sequencerName)
|
void |
nodeSequencingFailure(NodeKey sequencedNodeKey,
Path sequencedNodePath,
String outputPath,
String userId,
String selectedPath,
String sequencerName,
Throwable cause)
|
void |
propertyAdded(NodeKey key,
Path nodePath,
Property property)
|
void |
propertyChanged(NodeKey key,
Path nodePath,
Property newProperty,
Property oldProperty)
|
void |
propertyRemoved(NodeKey key,
Path nodePath,
Property property)
|
void |
setChangedNodes(Set<NodeKey> keys)
|
int |
size()
Return the number of individual changes. |
String |
toString()
|
void |
workspaceAdded(String workspaceName)
|
void |
workspaceRemoved(String workspaceName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RecordingChanges(String processKey, String repositoryKey)
public RecordingChanges(String processKey, String repositoryKey, String workspaceName)
Method Detail |
---|
public void workspaceAdded(String workspaceName)
workspaceAdded
in interface Changes
public void workspaceRemoved(String workspaceName)
workspaceRemoved
in interface Changes
public void nodeCreated(NodeKey key, NodeKey parentKey, Path path, Map<Name,Property> properties)
nodeCreated
in interface Changes
public void nodeRemoved(NodeKey key, NodeKey parentKey, Path path)
nodeRemoved
in interface Changes
public void nodeRenamed(NodeKey key, Path newPath, Path.Segment oldName)
nodeRenamed
in interface Changes
public void nodeMoved(NodeKey key, NodeKey newParent, NodeKey oldParent, Path newPath, Path oldPath)
nodeMoved
in interface Changes
public void nodeReordered(NodeKey key, NodeKey parent, Path newPath, Path oldPath, Path reorderedBeforePath)
nodeReordered
in interface Changes
public void nodeChanged(NodeKey key, Path path)
Changes
nodeChanged
in interface Changes
key
- the node key; may not be nullpath
- the pathpublic void nodeSequenced(NodeKey sequencedNodeKey, Path sequencedNodePath, NodeKey outputNodeKey, Path outputNodePath, String outputPath, String userId, String selectedPath, String sequencerName)
nodeSequenced
in interface Changes
public void nodeSequencingFailure(NodeKey sequencedNodeKey, Path sequencedNodePath, String outputPath, String userId, String selectedPath, String sequencerName, Throwable cause)
nodeSequencingFailure
in interface Changes
public void propertyAdded(NodeKey key, Path nodePath, Property property)
propertyAdded
in interface Changes
public void propertyRemoved(NodeKey key, Path nodePath, Property property)
propertyRemoved
in interface Changes
public void propertyChanged(NodeKey key, Path nodePath, Property newProperty, Property oldProperty)
propertyChanged
in interface Changes
public void binaryValueNoLongerUsed(BinaryKey key)
Changes
binaryValueNoLongerUsed
in interface Changes
key
- the key for the now-unused binary value; may not be nullpublic int size()
ChangeSet
size
in interface ChangeSet
public Iterator<Change> iterator()
ConcurrentModificationException
, and guarantees to traverse elements as they existed
upon construction of the iterator, and may (but is not guaranteed to) reflect any modifications subsequent to construction.
iterator
in interface Iterable<Change>
Iterable.iterator()
public Set<NodeKey> changedNodes()
changedNodes
in interface ChangeSet
public void setChangedNodes(Set<NodeKey> keys)
public void freeze(String userId, Map<String,String> userData, DateTime timestamp)
public String getProcessKey()
ChangeSet
getProcessKey
in interface ChangeSet
public String getRepositoryKey()
ChangeSet
getRepositoryKey
in interface ChangeSet
public String getWorkspaceName()
ChangeSet
getWorkspaceName
in interface ChangeSet
public DateTime getTimestamp()
getTimestamp
in interface ChangeSet
public Map<String,String> getUserData()
getUserData
in interface ChangeSet
public String getUserId()
getUserId
in interface ChangeSet
public String toString()
toString
in class Object
|
ModeShape Distribution 3.0.0.Alpha6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |