public interface UserFacade
Modifier and Type | Method and Description |
---|---|
User |
getCurrentUser()
Returns the current
User . |
com.google.common.base.Optional<User> |
getUserByName(String name)
Returns the current
User by its name, if it exists. |
User getCurrentUser() throws UserNotAuthenticatedException
User
.UserNotAuthenticatedException
- If the current User
is not authenticated.com.google.common.base.Optional<User> getUserByName(@Nullable String name) throws UserAccessDeniedException
User
by its name, if it exists.UserAccessDeniedException
- If accessing user information is denied.Copyright © 2017 SAP SE. All rights reserved.