Search in sources :

Example 1 with RemoveProjectsFromTrashResult

use of edu.stanford.bmir.protege.web.shared.project.RemoveProjectsFromTrashResult 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()));
}
Also used : RemoveProjectsFromTrashResult(edu.stanford.bmir.protege.web.shared.project.RemoveProjectsFromTrashResult) ProjectMovedFromTrashEvent(edu.stanford.bmir.protege.web.shared.event.ProjectMovedFromTrashEvent) ArrayList(java.util.ArrayList) ProjectId(edu.stanford.bmir.protege.web.shared.project.ProjectId) Nonnull(javax.annotation.Nonnull)

Aggregations

ProjectMovedFromTrashEvent (edu.stanford.bmir.protege.web.shared.event.ProjectMovedFromTrashEvent)1 ProjectId (edu.stanford.bmir.protege.web.shared.project.ProjectId)1 RemoveProjectsFromTrashResult (edu.stanford.bmir.protege.web.shared.project.RemoveProjectsFromTrashResult)1 ArrayList (java.util.ArrayList)1 Nonnull (javax.annotation.Nonnull)1