use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class CredentialController method getPrivate.
@Override
public CredentialResponse getPrivate(String name) {
IdentityUser user = authenticatedUserService.getCbUser();
Credential credentials = credentialService.getPrivateCredential(name, user);
return convert(credentials);
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class FlexSubscriptionController method deletePublic.
@Override
public void deletePublic(String name) {
IdentityUser cbUser = authenticatedUserService.getCbUser();
FlexSubscription subscription = flexService.findByNameInAccount(name, cbUser.getUserId(), cbUser.getAccount());
flexService.delete(subscription);
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class FlexSubscriptionController method setUsedForControllerInAccount.
@Override
public void setUsedForControllerInAccount(Long id) {
IdentityUser identityUser = authenticatedUserService.getCbUser();
FlexSubscription flexSubscription = flexService.findOneById(id);
flexService.setUsedForControllerFlexSubscription(flexSubscription.getName(), identityUser);
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class FlexSubscriptionController method setUsedForControllerInAccount.
@Override
public void setUsedForControllerInAccount(String name) {
IdentityUser identityUser = authenticatedUserService.getCbUser();
flexService.setUsedForControllerFlexSubscription(name, identityUser);
}
use of com.sequenceiq.cloudbreak.common.model.user.IdentityUser in project cloudbreak by hortonworks.
the class FlexSubscriptionController method getPublic.
@Override
public FlexSubscriptionResponse getPublic(String name) {
IdentityUser identityUser = authenticatedUserService.getCbUser();
FlexSubscription subscription = flexService.findByNameInAccount(name, identityUser.getUserId(), identityUser.getAccount());
return toJsonConverter.convert(subscription);
}
Aggregations