public final class JournalRecord extends Object implements Serializable, Iterable<Change>
LocalJournal
Modifier | Constructor and Description |
---|---|
protected |
JournalRecord(ChangeSet content) |
Modifier and Type | Method and Description |
---|---|
Set<NodeKey> |
changedNodes()
Returns the set of keys for the nodes which has been changed.
|
boolean |
equals(Object o) |
ChangeSet |
getChangeSet()
Returns the underlying change set.
|
long |
getChangeTimeMillis()
Returns the time of the changeset, in UTC millis.
|
String |
getJournalId()
Returns the identifier of the local
ChangeJournal instance. |
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.
|
long |
getTimeBasedKey() |
String |
getUserId()
Returns the ID (username) of the user which performed the changes.
|
String |
getWorkspaceName()
Get the name of the workspace in which the changes were made.
|
int |
hashCode() |
Iterator<Change> |
iterator() |
String |
toString() |
protected JournalRecord |
withTimeBasedKey(long timeBasedKey) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected JournalRecord(ChangeSet content)
protected JournalRecord withTimeBasedKey(long timeBasedKey)
public long getTimeBasedKey()
public String getProcessKey()
ChangeSet.getProcessKey()
public String getRepositoryKey()
ChangeSet.getRepositoryKey()
public String getUserId()
String
representing the username; may be null
in the case of changes performed "by the system.ChangeSet.getUserId()
public String getWorkspaceName()
ChangeSet.getWorkspaceName()
public long getChangeTimeMillis()
ChangeSet.getTimestamp()
public Set<NodeKey> changedNodes()
null
ChangeSet.changedNodes()
public String getJournalId()
ChangeJournal
instance.String
if journaling is enabled, or null
if journaling isn't enabled.ChangeSet.getJournalId()
public ChangeSet getChangeSet()
ChangeSet
instance; never nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.