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