updated the ItemObserved

This commit is contained in:
Francesco Mangiacrapa 2024-03-22 15:41:57 +01:00
parent 122fd7c882
commit 32d3f2fbb3
1 changed files with 20 additions and 1 deletions

View File

@ -21,7 +21,7 @@ import lombok.extern.slf4j.Slf4j;
@AllArgsConstructor
@Slf4j
public class ItemObserved<T extends Project> implements ItemObservable {
User caller;
User userCaller;
Context context;
UseCaseDescriptor useCaseDescriptor;
T project;
@ -66,4 +66,23 @@ public class ItemObserved<T extends Project> implements ItemObservable {
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();
}
}