use of com.enonic.xp.repository.DeleteRepositoryParams in project xp by enonic.
the class ProjectServiceImpl method doDelete.
private boolean doDelete(final ProjectName projectName) {
final DeleteRepositoryParams params = DeleteRepositoryParams.from(projectName.getRepoId());
final RepositoryId deletedRepositoryId = this.repositoryService.deleteRepository(params);
if (!ProjectConstants.DEFAULT_PROJECT_NAME.equals(projectName)) {
DeleteProjectRolesCommand.create().securityService(securityService).projectName(projectName).build().execute();
}
return deletedRepositoryId != null;
}
Aggregations