@PermitAll public class UserServiceImpl extends Object implements UserService
UserService. Consumers should get an instance of this
via CDI. This class should not be directly instantiated by the consumers.| Constructor and Description |
|---|
UserServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
HawkularUser |
getById(String id)
Retrieves an
HawkularUser based in its ID. |
HawkularUser |
getCurrent()
Retrieves the current user for the request.
|
HawkularUser |
getOrCreateById(String id)
Retrieves an
HawkularUser based on its ID. |
@Produces public HawkularUser getCurrent()
UserServicePersona, which will be the correct choice most of the times.getCurrent in interface UserServicePersonaService.getCurrent()public HawkularUser getById(String id)
UserServiceHawkularUser based in its ID.getById in interface UserServiceid - the user IDpublic HawkularUser getOrCreateById(String id)
UserServiceHawkularUser based on its ID. If no user is found, a new one is created and returned.getOrCreateById in interface UserServiceid - the user IDHawkularUser instance representing the user with the given ID. It's never null.Copyright © 2015 Red Hat, Inc.. All rights reserved.