use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class ImageCatalogService method get.
public ImageCatalog get(String name) {
ImageCatalog imageCatalog;
if (isEnvDefault(name)) {
imageCatalog = getCloudbreakDefaultImageCatalog();
} else {
IdentityUser user = authenticatedUserService.getCbUser();
imageCatalog = imageCatalogRepository.findByName(name, user.getUserId(), user.getAccount());
}
return imageCatalog;
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class NotificationController method executeAndNotify.
protected final void executeAndNotify(Consumer<IdentityUser> consumer, ResourceEvent resourceEvent) {
IdentityUser user = authenticatedUserService.getCbUser();
consumer.accept(user);
notify(user, resourceEvent);
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class ProxyConfigController method getPrivates.
@Override
public Set<ProxyConfigResponse> getPrivates() {
IdentityUser user = authenticatedUserService.getCbUser();
Set<ProxyConfig> proxyConfigs = proxyConfigService.retrievePrivateProxyConfigs(user);
return proxyConfigMapper.mapEntityToResponse(proxyConfigs);
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class ProxyConfigController method getPublics.
@Override
public Set<ProxyConfigResponse> getPublics() {
IdentityUser user = authenticatedUserService.getCbUser();
Set<ProxyConfig> proxyConfigs = proxyConfigService.retrieveAccountProxyConfigs(user);
return proxyConfigMapper.mapEntityToResponse(proxyConfigs);
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class ProxyConfigController method getPublic.
@Override
public ProxyConfigResponse getPublic(String name) {
IdentityUser user = authenticatedUserService.getCbUser();
ProxyConfig proxyConfig = proxyConfigService.getPublicProxyConfig(name, user);
return proxyConfigMapper.mapEntityToResponse(proxyConfig);
}
Aggregations