use of edu.stanford.bmir.protege.web.shared.event.ProjectMovedFromTrashEvent in project webprotege by protegeproject.
the class RemoveProjectsFromTrashActionHandler method execute.
@Nonnull
@Override
public RemoveProjectsFromTrashResult execute(@Nonnull RemoveProjectFromTrashAction action, @Nonnull ExecutionContext executionContext) {
List<ProjectMovedFromTrashEvent> events = new ArrayList<>();
ProjectId projectId = action.getProjectId();
projectDetailsManager.setInTrash(projectId, false);
events.add(new ProjectMovedFromTrashEvent(projectId));
return new RemoveProjectsFromTrashResult(new EventList<>(EventTag.getFirst(), events, EventTag.getFirst()));
}
Aggregations