Search in sources :

Example 1 with User

use of com.sequenceiq.cloudbreak.api.model.User in project cloudbreak by hortonworks.

the class UserController method evictCurrentUserDetails.

@Override
public User evictCurrentUserDetails() {
    IdentityUser user = authenticatedUserService.getCbUser();
    userDetailsService.evictUserDetails(user.getUserId(), user.getUsername());
    return new User(user.getUsername());
}
Also used : IdentityUser(com.sequenceiq.cloudbreak.common.model.user.IdentityUser) IdentityUser(com.sequenceiq.cloudbreak.common.model.user.IdentityUser) User(com.sequenceiq.cloudbreak.api.model.User)

Aggregations

User (com.sequenceiq.cloudbreak.api.model.User)1 IdentityUser (com.sequenceiq.cloudbreak.common.model.user.IdentityUser)1