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));
}
Aggregations