public final class UserAccessor extends Object
Constructor and Description |
---|
UserAccessor() |
Modifier and Type | Method and Description |
---|---|
static User |
getCurrentUser() |
static com.google.common.base.Optional<User> |
getUserByName(String name) |
static UserFacade |
getUserFacade()
Returns the
UserFacade instance. |
static void |
setUserFacade(UserFacade userFacade)
Replaces the default
UserFacade instance. |
public static void setUserFacade(UserFacade userFacade)
UserFacade
instance. This method is for internal use only.public static User getCurrentUser() throws UserNotAuthenticatedException
UserNotAuthenticatedException
- If the user is not authenticated.public static com.google.common.base.Optional<User> getUserByName(@Nullable String name) throws UserAccessDeniedException
UserAccessDeniedException
- If access to users is denied.@Nullable @Generated(value="lombok") public static UserFacade getUserFacade()
UserFacade
instance. For internal use only.Copyright © 2017 SAP SE. All rights reserved.