Search in sources :

Example 1 with DeleteRepositoryParams

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;
}
Also used : RepositoryId(com.enonic.xp.repository.RepositoryId) DeleteRepositoryParams(com.enonic.xp.repository.DeleteRepositoryParams)

Aggregations

DeleteRepositoryParams (com.enonic.xp.repository.DeleteRepositoryParams)1 RepositoryId (com.enonic.xp.repository.RepositoryId)1