Search in sources :

Example 1 with ProjectDeletedEvent

use of org.obiba.mica.project.event.ProjectDeletedEvent in project mica2 by obiba.

the class ProjectService method delete.

/**
 * Delete a {@link Project}.
 *
 * @param id
 * @throws NoSuchProjectException
 */
public void delete(@NotNull String id) throws NoSuchProjectException {
    Project project = findById(id);
    fileSystemService.delete(FileUtils.getEntityPath(project));
    projectStateRepository.delete(id);
    projectRepository.delete(id);
    gitService.deleteGitRepository(project);
    eventBus.post(new ProjectDeletedEvent(project));
}
Also used : Project(org.obiba.mica.project.domain.Project) ProjectDeletedEvent(org.obiba.mica.project.event.ProjectDeletedEvent)

Aggregations

Project (org.obiba.mica.project.domain.Project)1 ProjectDeletedEvent (org.obiba.mica.project.event.ProjectDeletedEvent)1