use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class LdapController method getPrivates.
@Override
public Set<LdapConfigResponse> getPrivates() {
IdentityUser user = authenticatedUserService.getCbUser();
Set<LdapConfig> configs = ldapConfigService.retrievePrivateConfigs(user);
return toJsonSet(configs);
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class NetworkController method getPublic.
@Override
public NetworkResponse getPublic(String name) {
IdentityUser user = authenticatedUserService.getCbUser();
Network network = networkService.getPublicNetwork(name, user);
return convert(network);
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class EmailSenderService method sendDownScaleSuccessEmail.
@Async
public void sendDownScaleSuccessEmail(String owner, String email, String ambariServer, String clusterName) {
IdentityUser user = userDetailsService.getDetails(owner, UserFilterField.USERID);
sendEmail(user, email, successClusterMailTemplatePath, String.format(CLUSTER_READY_SUBJECT, clusterName), getEmailModel(user.getGivenName(), ambariServer, State.DOWN_SCALE_SUCCESS, clusterName));
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class EmailSenderService method sendProvisioningSuccessEmail.
@Async
public void sendProvisioningSuccessEmail(String owner, String email, String ambariServer, String clusterName, Boolean gatewayEnabled) {
IdentityUser user = userDetailsService.getDetails(owner, UserFilterField.USERID);
sendEmail(user, email, successClusterMailTemplatePath, String.format(CLUSTER_READY_SUBJECT, clusterName), getEmailModel(user.getGivenName(), ambariServer, State.PROVISIONING_SUCCESS, clusterName, gatewayEnabled));
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class EmailSenderService method sendProvisioningFailureEmail.
@Async
public void sendProvisioningFailureEmail(String owner, String email, String clusterName) {
IdentityUser user = userDetailsService.getDetails(owner, UserFilterField.USERID);
sendEmail(user, email, failedClusterMailTemplatePath, "Cluster install failed", getEmailModel(user.getGivenName(), null, State.PROVISIONING_FAILURE, clusterName));
}
Aggregations