use of com.sequenceiq.cloudbreak.domain.ClusterTemplate in project cloudbreak by hortonworks.
the class ClusterTemplateService method get.
public ClusterTemplate get(Long id) {
ClusterTemplate clusterTemplate = clusterTemplateRepository.findOne(id);
if (clusterTemplate == null) {
throw new NotFoundException(String.format("ClusterTemplate '%s' not found.", id));
}
authorizationService.hasReadPermission(clusterTemplate);
return clusterTemplate;
}
Aggregations