public class ScpNeoUserFacade extends Object implements UserFacade
Constructor and Description |
---|
ScpNeoUserFacade() |
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. |
public User getCurrentUser() throws UserNotAuthenticatedException
UserFacade
User
.getCurrentUser
in interface UserFacade
UserNotAuthenticatedException
- If the current User
is not authenticated.public com.google.common.base.Optional<User> getUserByName(@Nullable String name)
UserFacade
User
by its name, if it exists.getUserByName
in interface UserFacade
Copyright © 2017 SAP SE. All rights reserved.