use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class ConstraintTemplateController method delete.
@Override
public void delete(Long id) {
IdentityUser user = authenticatedUserService.getCbUser();
constraintTemplateService.delete(id, user);
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class ConstraintTemplateController method deletePrivate.
@Override
public void deletePrivate(String name) {
IdentityUser user = authenticatedUserService.getCbUser();
constraintTemplateService.delete(name, user);
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class ConstraintTemplateController method getPrivates.
@Override
public Set<ConstraintTemplateResponse> getPrivates() {
IdentityUser user = authenticatedUserService.getCbUser();
Set<ConstraintTemplate> constraintTemplates = constraintTemplateService.retrievePrivateConstraintTemplates(user);
return convert(constraintTemplates);
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class ConstraintTemplateController method deletePublic.
@Override
public void deletePublic(String name) {
IdentityUser user = authenticatedUserService.getCbUser();
constraintTemplateService.delete(name, user);
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class CredentialController method getPublics.
@Override
public Set<CredentialResponse> getPublics() {
IdentityUser user = authenticatedUserService.getCbUser();
Set<Credential> credentials = credentialService.retrieveAccountCredentials(user);
return convertCredentials(credentials);
}
Aggregations