SPR-6416, adding basic conversation object tests, improving the access time of the conversation object

This commit is contained in:
Micha Kiener
2011-04-12 19:51:50 +00:00
parent 3244e0a644
commit 8adb9a88d0
2 changed files with 103 additions and 0 deletions

View File

@@ -118,6 +118,7 @@ public class DefaultConversation implements MutableConversation, Serializable {
public void clear() {
attributes.clear();
touch();
}
public void setId(String id) {
@@ -157,6 +158,8 @@ public class DefaultConversation implements MutableConversation, Serializable {
public void addChildConversation(MutableConversation conversation, boolean isIsolated) {
checkValidity();
touch();
if (conversation instanceof DefaultConversation) {
// set this conversation as the parent within the given child conversation
((DefaultConversation)conversation).setParentConversation(this, isIsolated);
@@ -170,6 +173,7 @@ public class DefaultConversation implements MutableConversation, Serializable {
}
public void removeChildConversation(MutableConversation conversation) {
touch();
if (children != null) {
children.remove(conversation);
if (children.size() == 0) {