class ClusterTemplateV4Controller extends NotificationController implements ClusterTemplateV4Endpoint {

    @Override
    @DisableCheckPermissions
    public ClusterTemplateViewV4Responses list(Long workspaceId) {
        blueprintService.updateDefaultBlueprintCollection(workspaceId);
        clusterTemplateService.updateDefaultClusterTemplates(workspaceId);
        Set<ClusterTemplateViewV4Response> result = clusterTemplateService.listInWorkspaceAndCleanUpInvalids(workspaceId);
        return new ClusterTemplateViewV4Responses(result);
    }

}