use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class RdsConfigController method getPublic.
@Override
public RDSConfigResponse getPublic(String name) {
IdentityUser user = authenticatedUserService.getCbUser();
RDSConfig rdsConfig = rdsConfigService.getPublicRdsConfig(name, user);
return conversionService.convert(rdsConfig, RDSConfigResponse.class);
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class RdsConfigController method getPrivate.
@Override
public RDSConfigResponse getPrivate(String name) {
IdentityUser user = authenticatedUserService.getCbUser();
RDSConfig rdsConfig = rdsConfigService.getPrivateRdsConfig(name, user);
return conversionService.convert(rdsConfig, RDSConfigResponse.class);
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class RdsConfigController method getPublics.
@Override
public Set<RDSConfigResponse> getPublics() {
IdentityUser user = authenticatedUserService.getCbUser();
Set<RDSConfig> rdsConfigs = rdsConfigService.retrieveAccountRdsConfigs(user);
return toJsonList(rdsConfigs);
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class RecipeController method getPublics.
@Override
public Set<RecipeResponse> getPublics() {
IdentityUser user = authenticatedUserService.getCbUser();
Set<Recipe> recipes = recipeService.retrieveAccountRecipes(user);
return toJsonSet(recipes);
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class RecipeController method getPrivates.
@Override
public Set<RecipeResponse> getPrivates() {
IdentityUser user = authenticatedUserService.getCbUser();
Set<Recipe> recipes = recipeService.retrievePrivateRecipes(user);
return toJsonSet(recipes);
}
Aggregations