updated the ItemObserved
This commit is contained in:
parent
122fd7c882
commit
32d3f2fbb3
|
@ -21,7 +21,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class ItemObserved<T extends Project> implements ItemObservable {
|
public class ItemObserved<T extends Project> implements ItemObservable {
|
||||||
User caller;
|
User userCaller;
|
||||||
Context context;
|
Context context;
|
||||||
UseCaseDescriptor useCaseDescriptor;
|
UseCaseDescriptor useCaseDescriptor;
|
||||||
T project;
|
T project;
|
||||||
|
@ -66,4 +66,23 @@ public class ItemObserved<T extends Project> implements ItemObservable {
|
||||||
return documentAsMap;
|
return documentAsMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder builder = new StringBuilder();
|
||||||
|
builder.append("ItemObserved [userCaller=");
|
||||||
|
builder.append(userCaller);
|
||||||
|
builder.append(", context=");
|
||||||
|
builder.append(context);
|
||||||
|
builder.append(", useCaseDescriptor=");
|
||||||
|
builder.append(useCaseDescriptor.getId());
|
||||||
|
builder.append(", project=");
|
||||||
|
builder.append(project.getId());
|
||||||
|
builder.append(", event=");
|
||||||
|
builder.append(event);
|
||||||
|
builder.append("]");
|
||||||
|
return builder.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue