|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.observe.Changes
@Immutable public class Changes
A set of changes that were made atomically. Each change is in the form of a frozen ChangeRequest
.
Field Summary | |
---|---|
protected List<ChangeRequest> |
changeRequests
|
protected String |
contextId
|
protected Map<String,String> |
data
|
protected String |
processId
|
protected String |
sourceName
|
protected DateTime |
timestamp
|
protected String |
userName
|
Constructor Summary | |
---|---|
protected |
Changes(Changes changes)
|
|
Changes(String processId,
String contextId,
String userName,
String sourceName,
DateTime timestamp,
List<ChangeRequest> requests,
Map<String,String> data)
|
Method Summary | |
---|---|
int |
compareTo(Changes that)
|
boolean |
equals(Object obj)
|
List<ChangeRequest> |
getChangeRequests()
Get the list of changes. |
String |
getContextId()
Get the identifier of the ExecutionContext where these changes originated. |
Map<String,String> |
getData()
Get the data associated with these changes. |
String |
getProcessId()
Get the identifier of the process where these changes originated. |
String |
getSourceName()
Get the name of the source that was changed. |
DateTime |
getTimestamp()
Get the timestamp that the changes were made. |
String |
getUserName()
Get the user that made these changes. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final String processId
protected final String contextId
protected final String userName
protected final String sourceName
protected final DateTime timestamp
protected final Map<String,String> data
protected final List<ChangeRequest> changeRequests
Constructor Detail |
---|
public Changes(String processId, String contextId, String userName, String sourceName, DateTime timestamp, List<ChangeRequest> requests, Map<String,String> data)
processId
- the process identifier; may be nullcontextId
- the context identifier; may be nulluserName
- the username; may not be nullsourceName
- the source name; may not be nulltimestamp
- the timestamp; may not be nullrequests
- the requests; may not be null or emptydata
- the immutable customized map of data to be associated with these changes; or null if there is no such dataprotected Changes(Changes changes)
Method Detail |
---|
public String getUserName()
SecurityContext.getUserName()
public String getSourceName()
public DateTime getTimestamp()
public String getProcessId()
public String getContextId()
identifier
of the ExecutionContext
where these changes originated. This
identifier may be useful in preventing feedbacks.
public List<ChangeRequest> getChangeRequests()
public Map<String,String> getData()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public int compareTo(Changes that)
compareTo
in interface Comparable<Changes>
Comparable.compareTo(java.lang.Object)
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |