public interface UserFacade
User
.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, UserAccessException
User
.UserNotAuthenticatedException
- If the current User
is not authenticated.UserAccessException
- If there is an issue while accessing the User
.com.google.common.base.Optional<User> getUserByName(@Nullable String name) throws UserAccessDeniedException, UserAccessException
User
by its name, if it exists.name
- The name of the user to find.UserAccessDeniedException
- If accessing user information is denied.UserAccessException
- If there is an issue while accessing the User
.Copyright © 2018 SAP SE. All rights reserved.