updated ItemObserved

This commit is contained in:
Francesco Mangiacrapa 2024-03-22 15:43:06 +01:00
parent 32d3f2fbb3
commit bab16ad14d
1 changed files with 4 additions and 4 deletions

View File

@ -119,7 +119,7 @@ public class ProfiledDocuments {
ItemObserved<Project> item = new ItemObserved<Project>();
EventManager.Event event = Event.PROJECT_CREATED;
AccountingInfo user = UserUtils.getCurrent().asInfo();
item.setCaller(user.getUser());
item.setUserCaller(user.getUser());
item.setContext(user.getContext());
item.setEvent(event);
item.setProject(theNewProject);
@ -152,7 +152,7 @@ public class ProfiledDocuments {
ItemObserved<Project> item = new ItemObserved<Project>();
EventManager.Event event = Event.PROJECT_UPDATED;
AccountingInfo user = UserUtils.getCurrent().asInfo();
item.setCaller(user.getUser());
item.setUserCaller(user.getUser());
item.setContext(user.getContext());
item.setEvent(event);
item.setProject(theUpdatedProject);
@ -209,7 +209,7 @@ public class ProfiledDocuments {
ItemObserved<Project> item = new ItemObserved<Project>();
EventManager.Event event = Event.PROJECT_DELETED;
AccountingInfo user = UserUtils.getCurrent().asInfo();
item.setCaller(user.getUser());
item.setUserCaller(user.getUser());
item.setContext(user.getContext());
item.setEvent(event);
// Referencing delete project
@ -301,7 +301,7 @@ public class ProfiledDocuments {
ItemObserved<Project> item = new ItemObserved<Project>();
EventManager.Event event = Event.LIFECYCLE_STEP_PERFORMED;
AccountingInfo user = UserUtils.getCurrent().asInfo();
item.setCaller(user.getUser());
item.setUserCaller(user.getUser());
item.setContext(user.getContext());
item.setEvent(event);
item.setProject(theProject);